Merge pull request #204 from kdarbyshirebryant/miniupnpdpost
authorMarkus Stenberg <fingon@iki.fi>
Wed, 13 Jul 2016 05:52:31 +0000 (07:52 +0200)
committerGitHub <noreply@github.com>
Wed, 13 Jul 2016 05:52:31 +0000 (07:52 +0200)
miniupnpd: add igd2 postrouting table

miniupnpd/Makefile
miniupnpd/files/firewall.include

index fbbcfee4828b713da549d6f4b0456db7afcbffae..97f0b6cb86c343257b58bae5be64133d4eab231a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=miniupnpd
 PKG_VERSION:=2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL:=http://miniupnp.free.fr/files
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
index 818af9dbc4446c3d4ae2ec69dcb74b8dbdb0c184..0eb96d7cce31edc05a53a7916cad46085935edc9 100644 (file)
@@ -5,6 +5,7 @@ IP6TABLES=/usr/sbin/ip6tables
 
 iptables -t filter -N MINIUPNPD 2>/dev/null
 iptables -t nat -N MINIUPNPD 2>/dev/null
+iptables -t nat -N MINIUPNPD-POSTROUTING 2>/dev/null
 
 [ -x $IP6TABLES ] && $IP6TABLES -t filter -N MINIUPNPD 2>/dev/null
 
@@ -20,6 +21,7 @@ add_extzone_rules() {
     # IPv4 - due to NAT, need to add both to nat and filter table
     iptables -t filter -I zone_${ext_zone}_forward -j MINIUPNPD
     iptables -t nat -I zone_${ext_zone}_prerouting -j MINIUPNPD
+    iptables -t nat -I zone_${ext_zone}_postrouting -j MINIUPNPD-POSTROUTING
 
     # IPv6 if available - filter only
     [ -x $IP6TABLES ] && {