On 11/2/2014 7:35 AM, Tom Eastep wrote: > > I've discovered a defect in Beta 3 that is corrected by the attached patch. > > . /usr/share/shorewall/shorewallrc > patch $PERLLIBDIR/Shorewall/Chains.pm < OPTION.patch > > Symptom of the defect is that iptables-restore fails.
I've discovered another problem. 'start -fC' only preserves counters
when LEGACY_FASTSTART=Yes. Patch attached.
patch /usr/share/shorewall/lib.cli-std < DASH-FC.patch
-Tom
--
Tom Eastep \ When I die, I want to go like my Grandfather who
Shoreline, \ died peacefully in his sleep. Not screaming like
Washington, USA \ all of the passengers in his car
http://shorewall.net \________________________________________________
diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std
index 5f04c5c..a7be3d8 100644
--- a/Shorewall/lib.cli-std
+++ b/Shorewall/lib.cli-std
@@ -574,14 +574,14 @@ start_command() {
esac
if [ -n "${g_fast}${AUTOMAKE}" ]; then
- if [ -z "$g_fast" -o -z "$LEGACY_FASTSTART" ]; then
+ if [ -z "$g_fast" -o -z "${LEGACY_FASTSTART}${g_counters}" ]; then
#
- # Automake or LEGACY_FASTSTART=No -- use the last compiled script
+ # Automake or ( LEGACY_FASTSTART=No and not -C ) -- use the last
compiled script
#
object=firewall
else
#
- # 'start -f' with LEGACY_FASTSTART=Yes -- use last saved
configuration
+ # 'start -f' with ( LEGACY_FASTSTART=Yes or -C ) -- use last saved
configuration
#
object=$RESTOREFILE
fi
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
