LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-17-2006, 11:24 PM   #1
LordHendrix
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, 01:58 AM   #2
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
man iptables
 
Old 09-18-2006, 09:48 PM   #3
dalek
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. forums.gentoo.org if you need the link.

Post back if you need more help.

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

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


Reply


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 08:15 PM
internet connection sharing anwar_lpk Linux - Networking 2 07-02-2003 11:27 AM
Internet Connection Sharing bravo Linux - Networking 3 02-25-2003 04:51 AM
Internet Connection Sharing Chijtska Linux - Networking 7 09-02-2002 11:50 AM
Sharing an internet connection Disarray0019 Linux - Networking 2 10-17-2001 12:26 AM


All times are GMT -5. The time now is 10:33 AM.

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