You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/10/31 13:22:36 UTC
[incubator-nuttx] branch master updated: script: fix simhostroute.sh to remove nat rule correctly
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new eeb4d41f55 script: fix simhostroute.sh to remove nat rule correctly
eeb4d41f55 is described below
commit eeb4d41f5554f8b232bd4eab9c6bf56797275482
Author: Zhe Weng <we...@xiaomi.com>
AuthorDate: Thu Oct 20 16:28:26 2022 +0800
script: fix simhostroute.sh to remove nat rule correctly
Signed-off-by: Zhe Weng <we...@xiaomi.com>
---
tools/simhostroute.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/simhostroute.sh b/tools/simhostroute.sh
index ff9c900014..53a012e9b2 100755
--- a/tools/simhostroute.sh
+++ b/tools/simhostroute.sh
@@ -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