LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-25-2008, 08:26 AM   #1
husten
Member
 
Registered: Apr 2006
Distribution: Suse 11.4
Posts: 48

Rep: Reputation: 16
How to network USB modem and clients behind external router for internet access?


Hi
On my suse box I have sucessfully installed a UMTS/HSPDA modem as modem0, works fine. Eth0 works fine as well.

I would like to connect this box via eth0 to my old wireless router (with built-in DSL modem) to hook up various cable and wireless clients (laptop, internet radio etc).

eth0 and modem0 can run at the same time in knetworkmanager. On this box I can ping the little router and laptops attached. I can ping the internet.

However, the clients on the router can not see the internet.

I tried a few things along the lines of this description <http://www.novell.com/coolsolutions/feature/16579.html>, but they used a hub which is different.

Any ideas?

Here some details:
-----------------------------------------------------------
eth0 Protokoll:Ethernet Hardware Adresse 00:15:F2:5B:8A:4E
inet Adresse:192.168.1.64 Bcast:192.168.1.255 Maske:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10955 errors:0 dropped:0 overruns:0 frame:0
TX packets:9929 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:1000
RX bytes:1260895 (1.2 Mb) TX bytes:817254 (798.0 Kb)
Interrupt:17 Basisadresse:0x6000

lo Protokoll:Lokale Schleife
inet Adresse:127.0.0.1 Maske:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2258 errors:0 dropped:0 overruns:0 frame:0
TX packets:2258 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:0
RX bytes:605883 (591.6 Kb) TX bytes:605883 (591.6 Kb)

modem0 Protokoll:Punkt-zu-Punkt Verbindung
inet Adresse:10.141.147.148 P-z-P:10.64.64.64 Maske:255.255.255.255
UP PUNKTZUPUNKT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:5210 errors:0 dropped:0 overruns:0 frame:0
TX packets:5443 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 Sendewarteschlangenlänge:3
RX bytes:3496920 (3.3 Mb) TX bytes:701028 (684.5 Kb)
------------------------------------------------------------------
route -n
10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 modem0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0
--------------------------------------------------------------------

(DSL) router is Speedtouch 580 with WLAN and 4 cable ports .


Any ideas? Can it be done without hacking the speedtouch?

Thanks
Husten
 
Old 10-25-2008, 09:18 AM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
Does the speedtouch modem allow you to specify the DHCP parameters sent on to the clients? Otherwise it's best to set "static" IPs and set the appropriate routing information on the clients so that packets to unknown destinations are sent to your computer with the modem.
 
Old 10-25-2008, 09:45 AM   #3
husten
Member
 
Registered: Apr 2006
Distribution: Suse 11.4
Posts: 48

Original Poster
Rep: Reputation: 16
Pinniped,
I think I could manage to "reserve" IPs or perhaps even use static IPs for the clients on the speedtouch router. Could you please explain what you mean by "set the appropriate routing information on the client". Is that something I need to do on the wireless router? or on the suse box with the usb-internet connection??
Thanks
Husten
 
Old 10-25-2008, 11:31 PM   #4
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
You will need to put in rules on each machine to use the computer with modem as the 'gateway' machine; you also need to manually set the DNS addresses. The computer with the modem needs to have its iptables rules set to forward packets (NAT) and preferably also set up firewall rules.
 
Old 10-26-2008, 08:07 AM   #5
husten
Member
 
Registered: Apr 2006
Distribution: Suse 11.4
Posts: 48

Original Poster
Rep: Reputation: 16
In yast there is a routing utility which I played with previously. So as far as I understand on the clients I set
Standard gateway = modem-machine eth0, e.g. 192.168.1.64
IPforward = tick box = yes (Dies this mean NAT????)

I believe I tried it before and it did not work. I did not have fixed IPs then but I knew what they were. There is more expert routing options but I never touched those. I will give it a shot.

BTW I had lots of martian errors in /var/log/messages in the main box, I heard this means the internal routing has been screwed - any idea how to sort this out? Any expert route commands?

Just tobe clear:
............................................................client2
................................................................|
internet modem-->|ttyusb0--PC1--eth0|<-->Router<-->client3
.....................................(=client1)..............|
............................................................client4

Thanks!


Quote:
Originally Posted by pinniped View Post
You will need to put in rules on each machine to use the computer with modem as the 'gateway' machine; you also need to manually set the DNS addresses. The computer with the modem needs to have its iptables rules set to forward packets (NAT) and preferably also set up firewall rules.

Last edited by husten; 10-26-2008 at 09:21 AM.
 
  


Reply

Tags
dhcp, modem, router


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSL USB Modem / Router connecting ( through USB ) but cannot connect to internet DJ Shaji Linux - Networking 1 03-28-2008 04:24 AM
CentoOS router/firewall prob - local network works but router can't access Internet elementalvoid Linux - Networking 6 12-12-2006 04:39 PM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 01:33 PM
Intermittent Internet Access Since Router/ADSL Modem change yogiman Linux - Networking 4 11-22-2005 02:26 PM
Connect to internet with USB external modem rssguy Linux - Newbie 5 04-28-2005 08:58 PM


All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration