diff --git a/Shorewall/changelog.txt b/Shorewall/changelog.txt index 820a54007..2d69f1b51 100755 --- a/Shorewall/changelog.txt +++ b/Shorewall/changelog.txt @@ -96,3 +96,6 @@ Changes in 3.1.x. 3.1.9 41) Fix Provider route generation when a specific gateway is specified. + +42) Be sure that restore file name is preserved regardless of 'set --' in + define_firewall().) diff --git a/Shorewall/compiler b/Shorewall/compiler index 709303fe9..f58c46d06 100755 --- a/Shorewall/compiler +++ b/Shorewall/compiler @@ -8586,6 +8586,7 @@ __EOF__ # Start/Restart/Reload the firewall # define_firewall() { + local restore_file=\$1 __EOF__ INDENT=" " @@ -8686,7 +8687,7 @@ __EOF__ cat >&3 << __EOF__ if [ \$COMMAND = restore ]; then - iptables-restore < \$1 + iptables-restore < \$restore_file fi __EOF__ diff --git a/Shorewall/releasenotes.txt b/Shorewall/releasenotes.txt index fb1f93c1c..a29e94966 100755 --- a/Shorewall/releasenotes.txt +++ b/Shorewall/releasenotes.txt @@ -32,6 +32,9 @@ Problems Corrected in 3.1.9 1) Route generation is now correct when a specific gateway IP address is given in the GATEWAY column of the providers file. +2) If any action has an associated extension script (like the 'Limit' + standard action) then 'shorewall restore' would fail. + Other changes in 3.1.9 None. @@ -328,6 +331,3 @@ New Features: 07:09:05 Restarting Shorewall.... 07:09:08 done. gateway:/etc/shorewall # - - -