Not getting internet connection with masquerade on iptables
I'm trying to share internet from my laptop to my t2000 server. I'm running slackware 14 on the laptop, solaris 11 on server. Laptop is connected to internet via wlan0, t2000 is connected to laptop on eth0.
I've done this on the laptop:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
I have my laptop eth0 set at 192.168.200.105, netmask 255.255.255.0
T2000 set at 192.168.200.100, netmask 255.255.255.0, default route 192.168.200.105, and nameserver 8.8.8.8.
The thing is I have ports 22 and 80 forwarded to my server, and I can ssh into it from an outside network. But I try pinging google.com on it, and it won't reach it. I dont understand why it can't get internet access, but yet I can ssh into it and access it from outside the network. Any ideas?
|