glfs/postlfs/security/firewalling/status.xml
Larry Lawrence 1aacd4b52e add imlib2 and openquicktime, edited firewalling chapter
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1047 af4574ff-66df-0310-9fd7-8a98e5e911e0
2003-09-11 19:44:39 +00:00

24 lines
655 B
XML

<sect3 id="postlfs-security-fw-status" xreflabel="/etc/rc.d/init.d/firewall.status">
<title>firewall.status</title>
<para>If you'd like to have a look at the chains your firewall consists of and
the order in which the rules take effect:</para>
<screen><userinput><command>cat &gt; /etc/rc.d/init.d/firewall.status &lt;&lt; "EOF"</command>
#!/bin/sh
# Begin $rc_base/init.d/firewall.status
echo "iptables.mangling:"
iptables -t mangle -v -L -n --line-numbers
echo
echo "iptables.nat:"
iptables -t nat -v -L -n --line-numbers
echo
echo "iptables.filter:"
iptables -v -L -n --line-numbers
<command>EOF</command></userinput></screen>
</sect3>