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.
The backgroud information:
ETH0 is a gigabit card for the internal network.
ETH1 is a 10/100 for the Internet connection to be shared
For whatever reason, when I installed linux, the first ethernet card was assigned ETH1 and the second was ETH0. IP_FORWARD does have a value of 1, but it isn't forwarding traffic.
Is this because ETH0 should be the ISP assigned address and not the other way around?
Is there a way to switch the NICs value so that ETH0 is the 10/100? Would that help?
Any suggestions if I'm on the wrong track with my questions.
Thanks everyone
There shouldn't be a problem having eth1 go to your isp, just check /sbin/route to make sure that your routing table is set up right.
To get IP Forwarding to start working, you need to set up some rules in iptables that implement NAT. I grabbed the latest rc.firewall script from http://www.ecst.csuchico.edu/~dranch...masq/examples/ and it started working, now I am customizing that script for my network.
Trying to share an Internet connection with the home network. I used the same firewall I've used before which had NAT working perfectly, but I switched the ETH0 and ETH1 cause the other machine was setup so that ETH0 was the Internet
I'm going to check into the ideas above to see if that helps.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.