[package] miniupnpd: fix iptables rule order (#7965)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23096 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
0aba81eb47
commit
3593966dfe
@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
|
|
||||||
PKG_NAME:=miniupnpd
|
PKG_NAME:=miniupnpd
|
||||||
PKG_VERSION:=1.4
|
PKG_VERSION:=1.4
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
PKG_MD5SUM:=ffa33d4ed8732c662bdb7d511e86db76
|
PKG_MD5SUM:=ffa33d4ed8732c662bdb7d511e86db76
|
||||||
|
|
||||||
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
|
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
|
||||||
|
@ -10,9 +10,9 @@ miniupnpd_add_rules() {
|
|||||||
logger -t miniupnpd "adding firewall rules for $iface to zone $zone"
|
logger -t miniupnpd "adding firewall rules for $iface to zone $zone"
|
||||||
|
|
||||||
iptables -t nat -N MINIUPNPD 2>/dev/null
|
iptables -t nat -N MINIUPNPD 2>/dev/null
|
||||||
iptables -t nat -A zone_${zone}_prerouting -i $iface -j MINIUPNPD
|
iptables -t nat -I zone_${zone}_prerouting -i $iface -j MINIUPNPD
|
||||||
iptables -t filter -N MINIUPNPD 2>/dev/null
|
iptables -t filter -N MINIUPNPD 2>/dev/null
|
||||||
iptables -t filter -A zone_${zone}_forward -i $iface ! -o $iface -j MINIUPNPD
|
iptables -t filter -I zone_${zone}_forward -i $iface ! -o $iface -j MINIUPNPD
|
||||||
|
|
||||||
uci_set_state upnpd state "" state
|
uci_set_state upnpd state "" state
|
||||||
uci_set_state upnpd state zone "$zone"
|
uci_set_state upnpd state zone "$zone"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user