From a0dd23e0dcc5d5f4b5b07f7a4c5b0dc64ebf4731 Mon Sep 17 00:00:00 2001 From: Daniel Becker Date: Mon, 5 May 2014 15:35:32 -0700 Subject: add column for internal port on UPnP status page --- usr/local/www/status_upnp.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'usr') diff --git a/usr/local/www/status_upnp.php b/usr/local/www/status_upnp.php index 1cd3a62..e9c68da 100644 --- a/usr/local/www/status_upnp.php +++ b/usr/local/www/status_upnp.php @@ -87,14 +87,16 @@ if(!$config['installedpackages'] || !$config['installedpackages']['miniupnpd'][' - + + (.*) port (.*)/", $rdr_entry, $matches)) + if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) keep state label \"(.*)\" rtable [0-9] -> (.*) port (.*)/", $rdr_entry, $matches)) $rdr_proto = $matches[2]; $rdr_port = $matches[3]; - $rdr_ip = $matches[5]; $rdr_label =$matches[4]; + $rdr_ip = $matches[5]; + $rdr_iport = $matches[6]; ?> @@ -107,6 +109,9 @@ if(!$config['installedpackages'] || !$config['installedpackages']['miniupnpd'][' + + + -- cgit v1.1