From b17bc9f62e75aa9455d4c99f8cc3d4c3b2bf5017 Mon Sep 17 00:00:00 2001 From: teastep Date: Sat, 7 Jan 2006 16:33:17 +0000 Subject: [PATCH] Fix bad bug in 'generate' git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3245 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index 549c79e87..e863e0a85 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -8902,7 +8902,9 @@ generate_firewall() # $1 = File Name RESTOREBASE=$(mktempfile /var/lib/shorewall) - STATEDIR=$TMP_DIR + STATEDIR=/var/lib/shorewall/.compiler + + [ -d $STATEDIR ] || mkdir $STATEDIR [ -n "$RESTOREBASE" ] || startup_error "Cannot create temporary file in /var/lib/shorewall" @@ -8935,13 +8937,16 @@ generate_firewall() # $1 = File Name setup_providers $(find_file providers) [ -n "$ROUTEMARK_INTERFACES" ] && setup_routes - echo "Compiling NAT..."; setup_nat echo "Compiling NETMAP..."; setup_netmap echo "Compiling Common Rules"; add_common_rules + save_progress_message "Restoring SYN Flood Protection..." + setup_syn_flood_chains + save_progress_message "Restoring IPSEC management..." + setup_ipsec maclist_hosts=$(find_hosts_by_option maclist)