Allow iptables rule delete to fail
After this rule is deleted the first time, it won't exist any longer, so we need to allow the command to fail by adding a '|| true'. Change-Id: I76c81b2456509dc7ef12e734caf2bfc43630296f
This commit is contained in:
parent
cefa34bb18
commit
b32b22f327
@ -21,5 +21,4 @@ iptables -t nat -X BOOTSTACK_MASQ || true
|
||||
# Rename the new chain into permanence.
|
||||
iptables -t nat -E BOOTSTACK_MASQ_NEW BOOTSTACK_MASQ
|
||||
# remove forwarding rule (fixes bug 1183099)
|
||||
iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited
|
||||
|
||||
iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited || true
|
||||
|
Loading…
Reference in New Issue
Block a user