April 24, 2014, 11:09:57 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Net sharing prob  (Read 1596 times)

Offline abc1234

  • New Member
  • Posts: 3
Net sharing prob
« 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

Offline Ricky

  • LST CareTaker
  • Specially Skilled
  • *****
  • Posts: 2378
Net sharing prob
« Reply #1 on: December 27, 2003, 06:25:03 AM »
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..