glfs/postlfs/security/firewalling/status.xml

24 lines
653 B
XML
Raw Normal View History

<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>
<para><screen><userinput>cat &gt; /etc/rc.d/init.d/firewall.status &lt;&lt; "EOF"</userinput>
#!/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
<userinput>EOF</userinput></screen></para>
</sect3>