2002-07-08 04:28:42 +08:00
|
|
|
<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>
|
|
|
|
|
2003-09-12 03:44:39 +08:00
|
|
|
<screen><userinput><command>cat > /etc/rc.d/init.d/firewall.status << "EOF"</command>
|
2002-07-08 04:28:42 +08:00
|
|
|
#!/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
|
2003-09-12 03:44:39 +08:00
|
|
|
<command>EOF</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect3>
|