Jump to content
Compatible Support Forums
Sign in to follow this  

How to share internet connection between 2 PC's

Recommended Posts

Hi. I have an Internet connection configured in Linux (Redhat 9.0) and I would like to know how I can share that internet connection with another local computer that uses Windows XP. I have already done this for Windows XP (using "bridge"), but now I don't know how I do that in Linux. Any help is appreciated!

Share this post

Link to post
Share on other sites

What kind of connection do you have?

If you already navigating try this:


copy everything inside a file...

change the " " with your data

and run it..


Here it goes....




LAN_IP_NET="your lan ip range (maybe"

LAN_NIC="the internal network interface (eth0 or eth1)"

OUT_NIC="external network interface (eth0, eth1 or ppp0 and so on)"



iptables -A FORWARD -j ACCEPT -i $LAN_NIC -s $LAN_IP_NET

iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT



You should be navigating on XP by now....

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this