mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-24 15:18:53 +01:00
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