forked from extern/shorewall_code
Fix bad bug in 'generate'
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3245 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
e15aec24ff
commit
b17bc9f62e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user