Redhat9 and Windows XP -Internet Sharing...

hello all,

i'm new to linux and i have been having trouble connecting two systems together to share internet.  I have a dell poweredge server running redhat 9 and another box running windows xp. I'm also using a cable connection.  Any assistance to do this is highly appreciated.  I'll post the necessary files for you to view and offer suggestions for corrections.  Thanks in advance for your assistance.
Who is Participating?
jacaucConnect With a Mentor Commented:
I'd assume that your cable connection is connected to the Linux box, and the Linux should act as the gateway?

If this is the case, there quite a couple of configurations that can be done to make this work.
here's a couple common solutions
1) Simply routing all traffic from the other PC back and forth to the internet (not recommended)

2) setting up NAT on the Linux box, so that IP masquerading is done to the internet (MUCH more secure than 1)
more info on

and then (my favorite) - as an addon to option 2:
3) Having NAT work together with squid proxy to act as a Transparent proxy server (all traffic passes through the proxy - no client config neccessary)
This config is actually much more simple than i thought at first.. :D
In effect all that needs to be done (assuming squid and iptables is installed) is:
  These 4 lines need to be in /etc/squid.conf  
     httpd_accel_host virtual
     httpd_accel_port 80
     httpd_accel_with_proxy on
     httpd_accel_uses_host_header on
  execute the following commands
     squid -z
     service squid restart
     iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128

more info on

Hope this helps   :D

cossy64Author Commented:
i'm reviewing the options above and i'll let you guys know how they turn out.  Thanks for your replies...
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.