mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-07 17:57:47 +08:00
24 lines
653 B
XML
24 lines
653 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>
|
||
|
|
||
|
<para><screen><userinput>cat > /etc/rc.d/init.d/firewall.status << "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>
|