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:
teastep 2007-10-10 19:40:53 +00:00
parent dcca568584
commit c90e3213be

View File

@ -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' );