forked from extern/shorewall_code
Fix addrule
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1650 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
7a74380f7e
commit
789e3fe757
@ -307,7 +307,7 @@ ensurechain() # $1 = chain name
|
||||
addrule() # $1 = chain name, remainder of arguments specify the rule
|
||||
{
|
||||
ensurechain $1
|
||||
run_iptables -A $@
|
||||
run_iptable2s -A $@
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -293,7 +293,7 @@ ensurechain1() # $1 = chain name
|
||||
addrule() # $1 = chain name, remainder of arguments specify the rule
|
||||
{
|
||||
ensurechain $1
|
||||
run_iptables -A $@
|
||||
run_iptables2 -A $@
|
||||
}
|
||||
|
||||
#
|
||||
|
@ -295,7 +295,7 @@ ensurechain1() # $1 = chain name
|
||||
addrule() # $1 = chain name, remainder of arguments specify the rule
|
||||
{
|
||||
ensurechain $1
|
||||
run_iptables -A $@
|
||||
run_iptables2 -A $@
|
||||
}
|
||||
|
||||
#
|
||||
@ -5893,7 +5893,7 @@ add_common_rules() {
|
||||
done
|
||||
|
||||
for interface in $interfaces; do
|
||||
file/=proc/sys/net/ipv4/conf/$interface/log_martians
|
||||
file=proc/sys/net/ipv4/conf/$interface/log_martians
|
||||
if [ -f $file ]; then
|
||||
run_and_save_command "echo 1 > $file"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user