mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 01:37:59 +02:00
Generate a warning when Limit is invoked.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
3ec6745df9
commit
b215cf379a
@ -1605,6 +1605,8 @@ sub Limit( $$$$ ) {
|
|||||||
|
|
||||||
require_capability( 'RECENT_MATCH' , 'Limit rules' , '' );
|
require_capability( 'RECENT_MATCH' , 'Limit rules' , '' );
|
||||||
|
|
||||||
|
warning_message "The Limit action is deprecated in favor of per-IP rate limiting using the RATE LIMIT column";
|
||||||
|
|
||||||
add_irule $chainref, recent => "--name $set --set";
|
add_irule $chainref, recent => "--name $set --set";
|
||||||
|
|
||||||
if ( $level ne '' ) {
|
if ( $level ne '' ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user