forked from extern/shorewall_code
Be silent about deleting temporary NAT chain
This commit is contained in:
parent
be574ea426
commit
897748aa83
@ -834,8 +834,8 @@ determine_capabilities() {
|
|||||||
if [ -n "$NAT_ENABLED" ]; then
|
if [ -n "$NAT_ENABLED" ]; then
|
||||||
if qt $IPTABLES -t nat -N $chain; then
|
if qt $IPTABLES -t nat -N $chain; then
|
||||||
qt $IPTABLES -t nat -A $chain -j SNAT --to-source 1.2.3.4 --persistent && PERSISTENT_SNAT=Yes
|
qt $IPTABLES -t nat -A $chain -j SNAT --to-source 1.2.3.4 --persistent && PERSISTENT_SNAT=Yes
|
||||||
$IPTABLES -t nat -F $chain
|
qt $IPTABLES -t nat -F $chain
|
||||||
$IPTABLES -t nat -X $chain
|
qt $IPTABLES -t nat -X $chain
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user