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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi gurus,
how do I do a simple internet sharing on Linux? I know I have to use iptables and add some routes. I have two network cards. One connects to the ADSL Modem, while the other connects to the internal network. How do I set this up?
Thanks
Originally posted by friendklay Hi gurus,
how do I do a simple internet sharing on Linux? I know I have to use iptables and add some routes. I have two network cards. One connects to the ADSL Modem, while the other connects to the internal network. How do I set this up?
Thanks
very good document on using the best Squid proxy server :
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
at end add this line(echo 1 >/proc/sys/net/ipv4/ip_forward) to /etc/rc.d/rc.local file.
good luck.
My adsl interface is eth0, since I am using an ADSL Modem/Router combo box. I also have two network cards, to seperate my internal network and the internet. I have got it all working now. However, I can't access my adsl console anymore, nor can I ping out. What's amiss?
I have got that part done. How do I setup gateway IPs for the two interfaces? The thing is I thought to put the IP of eth0 as the gateway IP of eth1. But this didn't work. It seems it only works when I leave the gateway IP of eth1 blank.
Why do you need gateway ips? eth0 should get it's gateway from the adsl automatically, the eth1 does not need one. You only need to assign the gateway on the second computer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.