diff options
author | Alin Nastac <alin.nastac@gmail.com> | 2022-06-08 11:58:00 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2022-06-19 21:54:05 +0200 |
commit | 289c46869b969864676cf9abde4e1e0df33bcf37 (patch) | |
tree | b924b7aa0d8834c8f6baa44febf66d188812c166 /package/network/ipv6/464xlat/files/464xlat.sh | |
parent | 36e46c3c131cb187e94df9bb4c1ef56e3376c268 (diff) |
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@gmail.com>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_RELEASE increase]
Diffstat (limited to 'package/network/ipv6/464xlat/files/464xlat.sh')
-rwxr-xr-x | package/network/ipv6/464xlat/files/464xlat.sh | 3 |
1 files changed, 3 insertions, 0 deletions
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() { |