[openwrt/openwrt] 464xlat: delete SNATed conntracks on interface teardown
LEDE Commits
lede-commits at lists.infradead.org
Mon Jun 27 13:35:54 PDT 2022
hauke pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/d8f8c78d967c4c0b83e3ff045a4340932af38e4e
commit d8f8c78d967c4c0b83e3ff045a4340932af38e4e
Author: Alin Nastac <alin.nastac at gmail.com>
AuthorDate: Wed Jun 8 11:58:00 2022 +0200
464xlat: delete SNATed conntracks on interface teardown
Existing conntracks will continue to be SNATed to 192.0.0.1 even after
464xlat interface gets teared down. To prevent this, matching
conntracks must be killed.
Signed-off-by: Alin Nastac <alin.nastac at gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh at gmail.com> [PKG_RELEASE increase]
(cherry picked from commit 289c46869b969864676cf9abde4e1e0df33bcf37)
---
package/network/ipv6/464xlat/Makefile | 2 +-
package/network/ipv6/464xlat/files/464xlat.sh | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/package/network/ipv6/464xlat/Makefile b/package/network/ipv6/464xlat/Makefile
index c792323235..ab09b1e6dd 100644
--- a/package/network/ipv6/464xlat/Makefile
+++ b/package/network/ipv6/464xlat/Makefile
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=464xlat
-PKG_RELEASE:=12
+PKG_RELEASE:=13
PKG_SOURCE_DATE:=2018-01-16
PKG_MAINTAINER:=Hans Dedecker <dedeckeh at gmail.com>
diff --git a/package/network/ipv6/464xlat/files/464xlat.sh b/package/network/ipv6/464xlat/files/464xlat.sh
index c90ac1af59..dbe38b3cac 100755
--- a/package/network/ipv6/464xlat/files/464xlat.sh
+++ b/package/network/ipv6/464xlat/files/464xlat.sh
@@ -98,6 +98,9 @@ proto_464xlat_teardown() {
ip -6 rule del from all lookup local
ip -6 rule add from all lookup local pref 0
fi
+
+ # Kill conntracks SNATed to 192.0.0.1
+ echo 192.0.0.1 > /proc/net/nf_conntrack
}
proto_464xlat_init_config() {
More information about the lede-commits
mailing list