[NBLUG/talk] iptables -L and PREROUTING
Bob Blick
bobblick at ftml.net
Fri Apr 18 17:52:51 PDT 2008
Ron Wickersham wrote:
> you have to explicly say which table you want to display.
>
> so if i'm examining the nat table then the command to show a PREROUTING
> chain would be:
>
> alembic-rtr:/etc/rc2.d# iptables -t nat -L
Thanks, that's a perfect clarification.
> hth. (don't know situation on saving, i use explicit shell scripts to
> initiate the rules on startup).
Found the Ubuntu spellbook on that one, they suggest adding this:
pre-up iptables-restore < /etc/iptables.rules
post-down iptables-save -c > /etc/iptables.rules
to /etc/interfaces in the section after the appropriate interface(eth0
in this case). It'll restore and save the current rules at ifup/ifdown.
That info comes from:
https://help.ubuntu.com/community/IptablesHowTo
Cheerful regards,
Bob
More information about the talk
mailing list