I have recently installed SuSE 9.1 onto an old PMMX laptop that has two PCMCIA cards installed. One is assinged DHCP through my cable modem (eth1) and the other is configured as 192.168.111.254 (eth0). I turned on ip forwarding in the NIC management portion of YAST.
I have internet connectivity and LAN connectivity from the Laptop. The machines on the LAN can ping 192.168.111.254 but will not route through the interface to the internet. I have used several different iptables configs with no avail. Is the only commands/iptables entry I absolutely need to get the laptop to forward:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
When I try this I get "destination unreachable" from the LAN machines ping an internet ip.
I have disabled the SuSEfirewall2 service and used: iptables -F; iptables -t nat -F; iptables -t mangle -F
to clean the iptables before trying the above mentioned commands.
What have I missed or done wrong? I know this should work, I had this same config running on this laptop until I tried recompiling the kernel to 2.6.9 and jacked it all up and had to reload. When I reloaded I upgraded to 9.1 (which installs a 2.6 kernel which I then upgraded to 2.6.9).