I have a home network which connects to my
provider through a cable modem. My Pc is
connected to the cable modem with a network card
(eth1) and any other PC's connect to the internet
on my Linux Server through a hub connected to a
network card (eth0) on it.
I built Kernel 2.4.17 with iptables (vers. 1.2.5) and
ipchains. Masquerading works with ipchains, but
not with iptables. I can't ping my providers Gateway IP
from my PC but I can ping it from my Linux server.
I can ping the IP my provider assigned to me from
my PC.
I've tried all of the example lines of iptables rules given
in the howto pages and elsewhere :
i.e
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to <ext ip>
and one with
iptables -t nat -A POSTROUTING -p tcp -o eth1 -j SNAT --to <ext ip>:1-1023
Could anyone help ?