script: fix simhostroute.sh to remove nat rule correctly
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
parent
a98949d0f6
commit
eeb4d41f55
|
@ -68,7 +68,7 @@ else
|
|||
ip route delete $IP_NUTTX/32
|
||||
|
||||
# delete nat rules to clean up
|
||||
iptables -t nat -A POSTROUTING -o $IF_HOST -j MASQUERADE
|
||||
iptables -t nat -D POSTROUTING -o $IF_HOST -j MASQUERADE
|
||||
iptables -D FORWARD -i $IF_HOST -o $IF_BRIDGE -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
iptables -D FORWARD -i $IF_BRIDGE -o $IF_HOST -j ACCEPT
|
||||
|
||||
|
|
Loading…
Reference in New Issue