mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
firewall: flush conntrack table after changing interface rules
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35348 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
88d95b7acc
commit
1b4e6e5e76
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2008-2012 OpenWrt.org
|
||||
# Copyright (C) 2008-2013 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||
PKG_NAME:=firewall
|
||||
|
||||
PKG_VERSION:=2
|
||||
PKG_RELEASE:=56
|
||||
PKG_RELEASE:=57
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user