Network Troublshooting > General Networking Support in Linux
Net sharing prob
(1/1)
abc1234:
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
Ricky:
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..
Navigation
[0] Message Index
Go to full version