I've got a problem that i need some help on.
I have a Slackware box that uses a USB modem (device: ppp0) and i have a Windows box. They are connected by a crossover cable.
I need to allow the Windows box to use the internet. With some help i have written this script:
Originally Posted by /etc/rc.d/rc.firewall
echo 1 > /proc/sys/net/ipv4/ip_forward
/usr/sbin/iptables -t nat -P POSTROUTING DROP
/usr/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
/usr/sbin/iptables -A FORWARD -i eth0 -o ppp0 -m state --state ESTABLISHED,RELATED -j ACCEPT
When i run this script, my Slackware box can conenct to the internet and ping the Windows box. The windows box can ping the Slackware box, and ping Ip addresses. It can also open an ip address of a website in the browser. But the windows box won't open domain names ina browser or ping them.
google .com 's IP is 184.108.40.206
If i ping that IP address form my Windows box, i get a reply, but if i ping the URL i don't. Also if i put the IP address in a browser i can se google.com, but if i put the URL in, i can't.
I don't know what to do next, can anyoen suggest what to do?