mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-01 21:12:12 +08:00
1aacd4b52e
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1047 af4574ff-66df-0310-9fd7-8a98e5e911e0
24 lines
655 B
XML
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 > /etc/rc.d/init.d/firewall.status << "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>
|