LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to network USB modem and clients behind external router for internet access? (http://www.linuxquestions.org/questions/linux-networking-3/how-to-network-usb-modem-and-clients-behind-external-router-for-internet-access-678971/)

husten 10-25-2008 07:26 AM

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

pinniped 10-25-2008 08:18 AM

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.

husten 10-25-2008 08:45 AM

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

pinniped 10-25-2008 10:31 PM

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.

husten 10-26-2008 07:07 AM

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 (Post 3322027)
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.



All times are GMT -5. The time now is 09:40 AM.