ipchains -> iptables

Janis K janis.vzp at latnet.lv
Sun Oct 10 12:33:26 UTC 2004


Hello Fedora List users


I have Googled through the many sites and still cannot understand such
thing.

Before I migrated from Debian to FC2, i used this:
"/sbin/ipchains -A forward -s 192.168.0.0/24 -d 0.0.0.0/0 -j MASQ" and it
works perfectly.

Now I have FC2 with kernel 2.6.5-1.358 (not yet updated) and I need the same
thing using iptables command.

please help me.

I tried this: "/sbin/iptables -t nat -A POSTROUTING -o eth0 -s
192.168.0.0/24 -j MASQUERADE"
but it doesn't work. When I try "/sbin/iptables -L -n" it shows nothing,
except empty chains INPUT, FORWARD and OUTPUT.


Thank You a lot




More information about the fedora-list mailing list