Run these commands on Linux (as root) or prefix "sudo " to these commands
Code:
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
Yout /etc/network/interfaces should look like this
Code:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
mapping hotplug
script grep
map eth2
iface eth2 inet dhcp
iface eth1 inet static
address 192.168.0.1
netmask 255.255.255.0
auto eth2
auto eth1
And your /etc/resolv.conf should have your dns entries
Code:
search somedomain.com
nameserver X.X.X.x
nameserver x.x.x.x
Replace somedomain.com with your isp's domain and "x.x.x.x" with your isp's dns ipaddresses.
Now, your windows XP machine must have configuration similar to this
ipaddress = 192.168.0.x
subnet mask = 255.255.255.0
default gateway = 192.168.0.1 (hint - linux eth1)
primary dns = your first dns (hint -used in /etc/resolv.conf on linux machine)
secondary dns = your second dns
If all this is correct and u have proper cabling, etc. Your internet connection sharing must work for sure. (I have this configuration...and it works).