summaryrefslogtreecommitdiff
path: root/package/network/config/firewall/files/lib
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-28 15:53:44 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2013-01-28 15:53:44 +0000
commit97e868a3e7bc81075df3f8ad2e9914c13f43f864 (patch)
tree2a800d5921d3ddb411660bb4a1b25e94aa491ff6 /package/network/config/firewall/files/lib
parentd13c2f4628849e9b804e636bc6b62dfe7b44de3d (diff)
firewall: flush conntrack table after changing interface rules
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35348 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config/firewall/files/lib')
-rw-r--r--package/network/config/firewall/files/lib/core_interface.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/config/firewall/files/lib/core_interface.sh b/package/network/config/firewall/files/lib/core_interface.sh
index 3d6718431f..7400e2d351 100644
--- a/package/network/config/firewall/files/lib/core_interface.sh
+++ b/package/network/config/firewall/files/lib/core_interface.sh
@@ -106,6 +106,9 @@ fw_configure_interface() {
fw $action $mode r PREROUTING ${chain}_notrack $ { -i "$ifname" $inet }
fw $action $mode n POSTROUTING ${chain}_nat $ { -o "$ifname" $onet }
+ # Flush conntrack table
+ echo f >/proc/net/nf_conntrack 2>/dev/null
+
lock -u /var/run/firewall-interface.lock
}