iptables : masquerading not possible
Hi,
I have an ethernet internet connection. I wish to share this with a laptop. I have 2 NICs on the server and have connected to the laptop through a crossover cable connection. The specs are:
host
internet
eth0: 192.168.11.x
gateway : 192.168.11.1
eth1
192.168.0.1
gateway: none
Laptop
eth0: 192.168.0.2
gateway: 192.168.0.1
Both comps have WinXP/FC3 dual boot. This setting works fine when the server is in windows and the laptop in linux/windows. However when the server is in linux, though two-way ping is possible and Samba, NFS file sharing also works, Internet access is not possible from the laptop. The problem seems to be with iptables. IP Masquerading does not seem to work though i added the rules ip_forward = 1and enabled POSTROUTING. I tried using firestarter, however that too doesn't work. Does it have anything to do with recompiling the kernel? Also i cannot run iptables other than as root. Does that have something to do with this?
Please do help.
Vish
|