Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-18-2006, 12:24 AM   #1
LQ Newbie
Registered: May 2006
Posts: 16

Rep: Reputation: 0
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.
Old 09-18-2006, 02:58 AM   #2
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
man iptables
Old 09-18-2006, 10:48 PM   #3
Senior Member
Registered: Jul 2003
Location: Mississippi USA
Distribution: Gentoo
Posts: 2,058
Blog Entries: 2

Rep: Reputation: 79
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. if you need the link.

Post back if you need more help.

Old 11-12-2006, 08:42 PM   #4
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
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:
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.)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Connection Sharing basix Red Hat 2 06-25-2004 09:15 PM
internet connection sharing anwar_lpk Linux - Networking 2 07-02-2003 12:27 PM
Internet Connection Sharing bravo Linux - Networking 3 02-25-2003 05:51 AM
Internet Connection Sharing Chijtska Linux - Networking 7 09-02-2002 12:50 PM
Sharing an internet connection Disarray0019 Linux - Networking 2 10-17-2001 01:26 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration