diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index 57313c175..fb58bd4ad 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -8153,21 +8153,6 @@ EOF emit <<"EOF"; rm -f \${VARDIR}/.UPnP rm -f \${VARDIR}/.forwardUPnP -EOF - - if ( have_capability 'IPTABLES_S' ) { - emit( qq(if [ "\$COMMAND" = stop -o "\$COMMAND" = clear ]; then), - qq( if chain_exists dynamic; then), - qq( $tool -S dynamic | tail -n +2 > \${VARDIR}/.dynamic) ); - } else { - emit( qq(if [ "\$COMMAND" = stop -o "\$COMMAND" = clear ]; then), - qq( if chain_exists dynamic; then), - qq( $utility -t filter | grep '^-A dynamic ' > \${VARDIR}/.dynamic) ); - } - -emit <<"EOF"; - fi -fi EOF emit( '' ), save_docker_rules( $tool ) if $config{DOCKER};