Correct Code

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3122 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-12-06 19:11:58 +00:00
parent abbd2312c8
commit 88784dc6a0

View File

@ -147,9 +147,10 @@ SSHKnock net loc:192.168.1.5 tcp 22 -
<programlisting>run_iptables -A $CHAIN -m recent --name SSHA --set
if [ -n "$LEVEL" ]; then
log_rule_limit $LEVEL $CHAIN SSHLimit REJECT "" "$TAG" -A -m recent --name SSHA --seconds 60 --hitcount 3
log_rule_limit $LEVEL $CHAIN SSHLimit REJECT "" "$TAG" -A -m recent --name SSHA --update --seconds 60 --hitcount 4
fi
run_iptables -A $CHAIN -m recent --name SSHA --seconds 60 --hitcount 3 -j reject</programlisting>
run_iptables -A $CHAIN -m recent --update --name SSHA --seconds 60 --hitcount 4 -j reject
run_iptables -A $CHAIN -j ACCEPT</programlisting>
</listitem>
<listitem>