mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue