forked from extern/shorewall_code
Retry return status 4 from iptables -- Take 2
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7768 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
43b00fbe35
commit
3247844fa4
@ -179,32 +179,32 @@ debug_restore_input() {
|
|||||||
#
|
#
|
||||||
# Clear the ruleset
|
# Clear the ruleset
|
||||||
#
|
#
|
||||||
qt $IPTABLES -t mangle -F
|
qt1 $IPTABLES -t mangle -F
|
||||||
qt $IPTABLES -t mangle -X
|
qt1 $IPTABLES -t mangle -X
|
||||||
|
|
||||||
for chain in PREROUTING INPUT FORWARD POSTROUTING; do
|
for chain in PREROUTING INPUT FORWARD POSTROUTING; do
|
||||||
qt $IPTABLES -t mangle -P $chain ACCEPT
|
qt1 $IPTABLES -t mangle -P $chain ACCEPT
|
||||||
done
|
done
|
||||||
|
|
||||||
qt $IPTABLES -t raw -F
|
qt1 $IPTABLES -t raw -F
|
||||||
qt $IPTABLES -t raw -X
|
qt1 $IPTABLES -t raw -X
|
||||||
|
|
||||||
for chain in PREROUTING OUTPUT; do
|
for chain in PREROUTING OUTPUT; do
|
||||||
qt $IPTABLES -t raw -P $chain ACCEPT
|
qt1 $IPTABLES -t raw -P $chain ACCEPT
|
||||||
done
|
done
|
||||||
|
|
||||||
run_iptables -t nat -F
|
run_iptables -t nat -F
|
||||||
run_iptables -t nat -X
|
run_iptables -t nat -X
|
||||||
|
|
||||||
for chain in PREROUTING POSTROUTING OUTPUT; do
|
for chain in PREROUTING POSTROUTING OUTPUT; do
|
||||||
qt $IPTABLES -t nat -P $chain ACCEPT
|
qt1 $IPTABLES -t nat -P $chain ACCEPT
|
||||||
done
|
done
|
||||||
|
|
||||||
qt $IPTABLES -t filter -F
|
qt1 $IPTABLES -t filter -F
|
||||||
qt $IPTABLES -t filter -X
|
qt1 $IPTABLES -t filter -X
|
||||||
|
|
||||||
for chain in INPUT FORWARD OUTPUT; do
|
for chain in INPUT FORWARD OUTPUT; do
|
||||||
qt $IPTABLES -t filter -P $chain -P ACCEPT
|
qt1 $IPTABLES -t filter -P $chain -P ACCEPT
|
||||||
done
|
done
|
||||||
|
|
||||||
while read first second rest; do
|
while read first second rest; do
|
||||||
|
@ -116,7 +116,7 @@ qt()
|
|||||||
# Determine if Shorewall is "running"
|
# Determine if Shorewall is "running"
|
||||||
#
|
#
|
||||||
shorewall_is_started() {
|
shorewall_is_started() {
|
||||||
qt $IPTABLES -L shorewall -n
|
qt1 $IPTABLES -L shorewall -n
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -387,7 +387,7 @@ in_network() # $1 = IP address, $2 = CIDR network
|
|||||||
#
|
#
|
||||||
chain_exists() # $1 = chain name
|
chain_exists() # $1 = chain name
|
||||||
{
|
{
|
||||||
qt $IPTABLES -L $1 -n
|
qt1 $IPTABLES -L $1 -n
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user