script: fix simhostroute.sh to remove nat rule correctly

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
Zhe Weng 2022-10-20 16:28:26 +08:00 committed by Xiang Xiao
parent a98949d0f6
commit eeb4d41f55
1 changed files with 1 additions and 1 deletions

View File

@ -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