problems with internet connection sharing via a usb modem
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
problems with internet connection sharing via a usb modem
Hello all.
On my network I have always used windows xp to share my internet connection to 3 other pc's. But I now wish to switch the "internet server" to linux (opensuse 10.2).
I have managed to setup my modem (alcatel speedtouch 330 usb modem) to connect to the internet, which was fairly painless.
However... I cannot seem to share this connection to any of my other machines on my network. I have sieved through forums and tutorials for well over a week now and haven't had much luck.
I have tried various commands to attempt masquerading but nothing gives.
To "share" a connection you have to do two things:
Enable ip-forwarding
Provide a MASQUERADE rule in iptables.
I don't what, if any, GUI tools might be available for this, but from the command line you could put the following in a startup script (perhaps rc.local if your distro uses it):
You will also need to make sure that the network interfaces are configured on the machines that will use this. Either you will need to configure them manually (if they aren't already) or else you will need to run a DHCP server.
Last edited by blackhole54; 03-30-2007 at 05:00 AM.
is this still sufficient for connecting through the linux box once its setup?
It looks to me like you're good to go!
Edit: Maybe I was too hasty. You will need to provide them with addresses for one or more DNS servers it you want them to be able to find anything on the Internet. (Maybe you have already done this and you just neglected to list it.) It might be in a different tab or dialog box from IP/subnet/gateway.
Last edited by blackhole54; 03-31-2007 at 07:47 AM.
well what does and doesn't work? i'd not be suprised if was actually just dns... you've not mentioned if your main box has a dns server running on it. try pinging google.com by ip address not by dns name for example.
Yeah sorry I do have the DNS also set to: 192.168.0.1
Unless you have a DNS server running on 192.168.0.1 that won't work. For simple set-ups, you would usually set the DNS directly to your ISP's DNS servers. If you don't know what these are, you can usually find out by examing the system logs on the box that is making the connection.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.