LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-19-2004, 03:10 AM   #1
Free-Blade
Member
 
Registered: Sep 2004
Posts: 37

Rep: Reputation: 15
How to share internet


I have 2 computers 1 linux redhat 9 and one windows computer. I have an ethernet switch and i also have 2 lan cards in my linux computer. i have everything set up and my local area connection is working fine, but i want to get on the internet with my windows computer.

My friends says i have to somehow enable share internet on the linux mashine, but he uses mandrake and does not know where this option is on redhat 9

so my question is, can someone tell me how enable share internet on linux redhat 9.0. or if that is not possible, how i could actually connect both computers to the internet using 2 lan cards and a switch (i actually have 3 lan cards if you count the one in my windows computer)

thanks already in advance
 
Old 09-19-2004, 03:24 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

i have ben doing the other way(sharing net on windowx and accessing through linux)b ut i no that u can share internet by configuring a either proxy(squid)
or by Ip forwarding

maybe u can look in this direction

regards
 
Old 09-19-2004, 04:00 AM   #3
kostason
Member
 
Registered: Aug 2004
Location: Greece
Distribution: Fedora Core 2, DeLi Linux 0.6.1, Slackware 10.0
Posts: 105

Rep: Reputation: 15
hi,

you have to use IP forwarding and Masquerading

try the following link: "http://www.linux.org/docs/ldp/howto/Masquerading-Simple-HOWTO/index.html"
for a made simple howto

and the TLDP howto "http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html"
 
Old 09-19-2004, 04:28 AM   #4
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
yep I have done this before and you have to set up IP Masquerading
 
Old 09-19-2004, 04:30 AM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

for ip forwarding ur kernel should support that or u have to compile ur kenel for that

or try going for squid proxy

regards
 
Old 09-19-2004, 05:10 AM   #6
colabus
Member
 
Registered: Mar 2004
Distribution: Debian Sarge, FC4
Posts: 100

Rep: Reputation: 15
Code:
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
That's what I use. I'm dial up for you'll probably need to modify it.
 
  


Reply



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
how to share internet? Dentist Linux - Networking 2 08-13-2009 03:50 PM
how to share internet with XP naveen_varma Linux - Networking 10 12-23-2008 02:21 AM
how to share internet asimhafeez Linux - Networking 3 03-15-2005 02:15 PM
MD 10.0 and internet share fatcpu Mandriva 0 03-16-2004 06:43 PM
internet share raheelforme Linux - Networking 1 12-15-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:51 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
Open Source Consulting | Domain Registration