mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-15 04:04:10 +01:00
Preserve dynamic blacklist during stop/clear/restore
This commit is contained in:
parent
44665775b2
commit
1c870b532a
@ -2394,6 +2394,17 @@ EOF
|
|||||||
|
|
||||||
case $COMMAND in
|
case $COMMAND in
|
||||||
stop|clear|restore)
|
stop|clear|restore)
|
||||||
|
if chain_exists dynamic; then
|
||||||
|
EOF
|
||||||
|
|
||||||
|
if ( $family == F_IPV4 ) {
|
||||||
|
emit( ' ${IPTABLES}-save -t filter | grep \'^-A dynamic\' > ${VARDIR}/.dynamic' );
|
||||||
|
} else {
|
||||||
|
emit( ' ${IP6TABLES}-save -t filter | grep \'^-A dynamic\' > ${VARDIR}/.dynamic' );
|
||||||
|
}
|
||||||
|
|
||||||
|
emit <<'EOF';
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
set +x
|
set +x
|
||||||
|
Loading…
Reference in New Issue
Block a user