mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-19 13:10:05 +02:00
Correct Port Knocking HOWTO for iptables 1.4.12
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@@ -108,7 +108,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' );
|
||||||
|
Reference in New Issue
Block a user