mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-22 15:43:30 +01: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,
|
||||
'add',
|
||||
'-p tcp --dport 22 -m recent --rcheck --name SSH' );
|
||||
'-p tcp --dport 22 -m recent --rcheck --name SSH ' );
|
||||
|
||||
log_rule_limit( $level,
|
||||
$chainref,
|
||||
@ -119,7 +119,7 @@ if ( $level ) {
|
||||
'',
|
||||
$tag,
|
||||
'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' );
|
||||
|
Loading…
Reference in New Issue
Block a user