diff --git a/net/upnp/Makefile b/net/upnp/Makefile index ad55189cf..44cfe30a3 100644 --- a/net/upnp/Makefile +++ b/net/upnp/Makefile @@ -1,6 +1,5 @@ PLUGIN_NAME= upnp -PLUGIN_VERSION= 1.5 -PLUGIN_REVISION= 6 +PLUGIN_VERSION= 1.6 PLUGIN_DEPENDS= miniupnpd PLUGIN_COMMENT= Universal Plug and Play (UPnP IGD & PCP/NAT-PMP) Service PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/net/upnp/src/etc/inc/plugins.inc.d/miniupnpd.inc b/net/upnp/src/etc/inc/plugins.inc.d/miniupnpd.inc index 54a44a6c6..3fdf21214 100644 --- a/net/upnp/src/etc/inc/plugins.inc.d/miniupnpd.inc +++ b/net/upnp/src/etc/inc/plugins.inc.d/miniupnpd.inc @@ -232,7 +232,7 @@ function miniupnpd_configure_do($verbose = false) /* Allow UPnP IGD or PCP/NAT-PMP as requested */ $config_text .= "enable_upnp=" . ( $upnp_config['enable_upnp'] ? "yes\n" : "no\n" ); - $config_text .= "enable_natpmp=" . ( $upnp_config['enable_natpmp'] ? "yes\n" : "no\n" ); + $config_text .= "enable_pcp_pmp=" . ( $upnp_config['enable_natpmp'] ? "yes\n" : "no\n" ); /* configure lifetimes to force periodic expire */ $config_text .= "clean_ruleset_interval=600\n"; diff --git a/net/upnp/src/www/services_upnp.php b/net/upnp/src/www/services_upnp.php index 077c3bae7..e56e08a43 100644 --- a/net/upnp/src/www/services_upnp.php +++ b/net/upnp/src/www/services_upnp.php @@ -221,9 +221,12 @@ include("head.inc"); - + /> + diff --git a/net/upnp/src/www/status_upnp.php b/net/upnp/src/www/status_upnp.php index d0c5d4fcd..0a9a983d8 100644 --- a/net/upnp/src/www/status_upnp.php +++ b/net/upnp/src/www/status_upnp.php @@ -62,41 +62,42 @@ include("head.inc");
- +
- - - - - + + + + + + + + (.*) port (.*)/", $rdr_entry, $matches)) { + if (!preg_match("/on (?P.*) inet proto (?P.*) from (?P.*) (port (?P.*) )?to (?P.*) port = (?P.*) keep state (label \"(?P.*)\" )?rtable [0-9] -> (?P.*) port (?P.*)/", $rdr_entry, $matches)) { continue; } - $rdr_proto = $matches[2]; - $rdr_port = $matches[5]; - $rdr_label =$matches[6]; - $rdr_ip = $matches[7]; - $rdr_iport = $matches[8]; ?> - - - - - + + + + + + + + -
+
.