Solved

Redhat9 and Windows XP -Internet Sharing...

Posted on 2004-10-02
5
190 Views
Last Modified: 2010-03-18
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.
0
Comment
Question by:cossy64
5 Comments
 
LVL 16

Accepted Solution

by:
xDamox earned 125 total points
Comment Utility
0
 
LVL 3

Assisted Solution

by:jacauc
jacauc earned 125 total points
Comment Utility
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 http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/

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 http://www.faqs.org/docs/Linux-mini/TransparentProxy.html


Hope this helps   :D

Cheers
J
0
 

Author Comment

by:cossy64
Comment Utility
i'm reviewing the options above and i'll let you guys know how they turn out.  Thanks for your replies...
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
*STABLE* and free Linux Firewall distribution 6 76
Fail2ban says an IP is banned, but not 12 107
Open BDS Pf 3 44
LDAP setup? 9 82
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now