mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-22 21:48:39 +01:00
Minor cleanup -- shouldn't have externally-visible effects
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@4498 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
a6373c68bd
commit
fcee2d620b
@ -409,7 +409,7 @@ addnatrule() # $1 = chain name, remainder of arguments specify the rule
|
||||
#
|
||||
deletechain() # $1 = name of chain
|
||||
{
|
||||
save_command "qt $IPTABLES -L $1 -n && qt $IPTABLES -F $1 && qt $IPTABLES -X $1"
|
||||
save_command "qt \$IPTABLES -L $1 -n && qt \$IPTABLES -F $1 && qt \$IPTABLES -X $1"
|
||||
}
|
||||
|
||||
#
|
||||
@ -3149,7 +3149,7 @@ default_policy() # $1 = client $2 = server
|
||||
apply_default()
|
||||
{
|
||||
#
|
||||
# Generate policy file column values from the policy chain
|
||||
# Generate policy file column values for the policy chain
|
||||
#
|
||||
eval policy=\$${chain1}_policy
|
||||
eval loglevel=\$${chain1}_loglevel
|
||||
@ -4574,13 +4574,13 @@ __EOF__
|
||||
}
|
||||
|
||||
#
|
||||
# Compile a Restore Script
|
||||
# Compile a Firewall Script
|
||||
#
|
||||
compile_firewall() # $1 = File Name
|
||||
{
|
||||
local IPTABLES_COMMAND=run_iptables
|
||||
local INDENT=""
|
||||
local checking=
|
||||
local checking= outfile=$1 dir=
|
||||
|
||||
setup_mss()
|
||||
{
|
||||
@ -4596,18 +4596,6 @@ compile_firewall() # $1 = File Name
|
||||
run_iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS $option
|
||||
}
|
||||
|
||||
outfile=$1 dir=
|
||||
#
|
||||
# Overload a function from the library
|
||||
#
|
||||
deletechain() # $1 = name of chain
|
||||
{
|
||||
save_command "qt \$IPTABLES -L $1 -n && qt \$IPTABLES -F $1 && qt \$IPTABLES -X $1"
|
||||
}
|
||||
#
|
||||
# END OVERLOADED FUNCTIONS
|
||||
#
|
||||
|
||||
#
|
||||
# So that mktempdir doesn't have to jump through hoops when there isn't a working 'mktemp',
|
||||
# we create the compiler's temporary directory in TMP_DIR
|
||||
|
Loading…
Reference in New Issue
Block a user