mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-26 12:42:40 +02:00
Correct handling of DYNAMIC_BLACKLIST options
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
941604ad01
commit
eb6ae5e186
@ -3813,6 +3813,9 @@ setup_dbl() {
|
|||||||
|
|
||||||
[ -n "$g_disconnect" ] && g_disconnect=src-dst
|
[ -n "$g_disconnect" ] && g_disconnect=src-dst
|
||||||
;;
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
case $DYNAMIC_BLACKLIST in
|
||||||
ipset*,timeout*)
|
ipset*,timeout*)
|
||||||
#
|
#
|
||||||
# This utility doesn't need to know about 'timeout=nnn'
|
# This utility doesn't need to know about 'timeout=nnn'
|
||||||
|
@ -8506,7 +8506,7 @@ sub create_load_ipsets() {
|
|||||||
emit( ' #',
|
emit( ' #',
|
||||||
' # Update the dynamic blacklisting ipset timeout value',
|
' # Update the dynamic blacklisting ipset timeout value',
|
||||||
' #',
|
' #',
|
||||||
qq( awk '/create $set/ { sub( /timeout [0-9]+/, \"timeout $globals{DBL_TIMEOUT}\" ) }; {print};' \${VARDIR}/ipsets.save > \${VARDIR}/ipsets.temp),
|
qq( awk '/create $set/ { sub( /timeout [0-9]+/, "timeout $globals{DBL_TIMEOUT}" ) }; {print};' \${VARDIR}/ipsets.save > \${VARDIR}/ipsets.temp),
|
||||||
' zap_ipsets',
|
' zap_ipsets',
|
||||||
' $IPSET restore < ${VARDIR}/ipsets.temp',
|
' $IPSET restore < ${VARDIR}/ipsets.temp',
|
||||||
' fi' );
|
' fi' );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user