I am having two systems one installed Debian lenny and the other CentOs
Have broadband connection through ADSL and earlier I used squid to share internet to my CentOS machine (Debian lenny is acting as router).
Now I reinstalled Debian lenny as the harddisk crashed and tried to share internet to Cent OS by iptables.
CentOS machine - ipno 192.168.0.4
Lenny - ipno 192.168.0.3
issued the commands on Lenny
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth1 -j ACCEPT
Now my local network is ok
and I can ping to the dhcp address assigned to my internet router from the CentOS machine. I can also get the google home page by
http://209.85.231.147/
But can't get
http://www.google.com from my CentOS machine.
I think everything is OK except the DNS entry for CentOS
I have entered "nameserver 192.168.0.3" in my /etc/resolv.conf file of the CentOS machine.
I know this is not the proper way. But as the ADSL is assigning dhcp to the external interface, how can I identify their DNS. They have not supplied the same.
Can I connect to FTP sites from CentOS when internet is shared through proxy server?