1.The chains INPUT and OUTPUT will apply to lo interface as if it were a
normal interface.

2. to list the nat table you should issue
iptables -t nat -L

iptables -L lists the default table named "filter".

----- Original Message -----
From: "Keith Smith" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 13, 2002 1:03 PM
Subject: 2 iptables config questions


> Hi:
>
> Q: What chains apply to lo (loopback) interface communications?
>
> I have "named" running locally and am trying to connect to it using
> "nslookup".  Based on my observations, both INPUT and OUTPUT chains
> are traversed in this particular (localhost <-> localhost)
> communication.
>
> Q: When I setup Masquerading, my rules don't appear when I try to list
> them.  In addition, they don't seem to have any affect.
>
> > iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
> > iptables -L
> doesn't show this rule as being added, however doing an iptables-save
> does record the existence of said rule in /etc/sysconfig/iptables.
> Note that simply changing the default forwarding policy to ACCEPT
> (with or without a rule) *does* function correctly.
>
> My s/w versions are:
> linux redhat 7.2, kernel 2.4.7-10
> iptables-1.2.3-1
>


Reply via email to