LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Internet Connection Sharing (https://www.linuxquestions.org/questions/linux-newbie-8/internet-connection-sharing-484507/)

LordHendrix 09-17-2006 11:24 PM

Internet Connection Sharing
 
Can Someone Help me Setting Up my Linux Ubuntu to Share internet on my Clients.

1. I have Eth0 and Eth1.
2. Eth0 is connected to the internet.
3. Eth1 is connected to my Private Network.

Need help?
1. how to share internet?
2. how to set it automatically every time i power Up my PC?

Thanks in Advance.

Samotnik 09-18-2006 01:58 AM

man iptables

dalek 09-18-2006 09:48 PM

Yep, iptables should do the job nicely. I use it myself. If you search the Gentoo forums with the same username as mine, you should find the commands to make it share. forums.gentoo.org if you need the link.

Post back if you need more help.

:D :D :D :D :D

archtoad6 11-12-2006 07:42 PM

In order to have traffic route between your 2 interfaces -- I assume that is what you mean by "share" -- you will also need to execute the following:
Code:

echo 1 > /proc/sys/net/ipv4/ip_forward
(That is if I have tracked down the right item on my MEPIS 3.3.2 box, kernel 2.6.12-586tsc.)


All times are GMT -5. The time now is 04:11 AM.