Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => General Networking Support in Linux => Topic started by: abc1234 on December 27, 2003, 01:34:11 AM
-
Hello !!!
I have given a code to share the net thru masquerade, but the client (windows) are not able to browse. Can anybody tell me whatz the prob ??
eth0 - is the ISP Provider
eth1 - is the LAN 192.168.1.1
In the client side the IP address is as follows
IP : 192.168.1.2
subnet : 255.255.255.0
gateway : 192.168.1.1
dns : 192.168.1.1
The code is as follows :
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
-
Your code is right.
Problem is in client side..
In client side change the dns from 192.168.1.1 to the dns of your ISP. else is fine..