mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
Correct PortKnocking Perl Code
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7445 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
dcca568584
commit
c90e3213be
@ -110,7 +110,7 @@ if ( $level ) {
|
|||||||
'',
|
'',
|
||||||
$tag,
|
$tag,
|
||||||
'add',
|
'add',
|
||||||
'-p tcp --dport 22 -m recent --rcheck --name SSH' );
|
'-p tcp --dport 22 -m recent --rcheck --name SSH ' );
|
||||||
|
|
||||||
log_rule_limit( $level,
|
log_rule_limit( $level,
|
||||||
$chainref,
|
$chainref,
|
||||||
@ -119,7 +119,7 @@ if ( $level ) {
|
|||||||
'',
|
'',
|
||||||
$tag,
|
$tag,
|
||||||
'add',
|
'add',
|
||||||
'-p tcp --dport ! 22' );
|
'-p tcp --dport ! 22 ' );
|
||||||
}
|
}
|
||||||
|
|
||||||
add_rule( $chainref, '-p tcp --dport 22 -m recent --rcheck --seconds 60 --name SSH -j ACCEPT' );
|
add_rule( $chainref, '-p tcp --dport 22 -m recent --rcheck --seconds 60 --name SSH -j ACCEPT' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user