LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-01-2003, 09:01 AM   #1
zhangxd6
LQ Newbie
 
Registered: Sep 2003
Posts: 8

Rep: Reputation: 0
internet sharing help needed


I have two computers.one is running rh 8.0 the other runs winxp.there are two NIC on linux,which can connect the internet thru lan .one NIC on winxp.I connect these two using netcable.now I wanna share internet with winxp with the linux as gateway.How can I do it?
I am a newbie for linux and computer hardwares.
 
Old 09-01-2003, 09:23 AM   #2
folavo
LQ Newbie
 
Registered: Jul 2003
Location: Lisbon, Portugal
Distribution: Red Hat 9.0
Posts: 16

Rep: Reputation: 0
First enable routing on your linux box:
"echo 1 > /proc/sys/net/ipv4/ip_forward"

Then enable masquerading of the packets that go out to the public network (lets presume that its eth0 that its conencted to internet):
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE"

This should be enough. Hope it helps
 
Old 09-01-2003, 10:18 AM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
In RedHat (and Mandrake), if you want to set up Internet Connection Sharing (also known as IP Forwarding and Masquerading), take a look at this thread.
http://www.linuxquestions.org/questi...threadid=82005

If you have some difficulties and want to debug, these threads have some debugging techniques.
http://www.linuxquestions.org/questi...threadid=80256
http://www.linuxquestions.org/questi...threadid=83082
 
  


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
Help needed: Sharing PPPoE with Edimax BR-6104K weiss Linux - Networking 3 09-27-2005 02:29 AM
Help Needed Network-sharing a thin-client printer ?? asdzxc Debian 1 09-10-2005 03:55 PM
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
file sharing clients needed ankscorek Linux - Software 5 04-05-2005 10:39 PM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:54 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