mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-25 04:01:45 +02:00
Correct Code
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3122 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
abbd2312c8
commit
88784dc6a0
@ -147,9 +147,10 @@ SSHKnock net loc:192.168.1.5 tcp 22 -
|
|||||||
|
|
||||||
<programlisting>run_iptables -A $CHAIN -m recent --name SSHA --set
|
<programlisting>run_iptables -A $CHAIN -m recent --name SSHA --set
|
||||||
if [ -n "$LEVEL" ]; then
|
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
|
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>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user