Re: ipchains -> iptables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 10 Oct 2004 15:33:26 +0300, Janis K wrote:

> 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.

That's because 'iptables -L' only lists the default 'filter' table
and not the 'nat' table. Use 'iptables -t nat -L' or even better,
'iptables-save' to display the rules.
 
-- 
Fedora Core release 2 (Tettnang) - Linux 2.6.8-1.521
loadavg: 1.00 1.07 0.77


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux