diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-05-08 18:40:18 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-05-08 18:40:18 -0300 |
commit | 1d939dca99d00cfb4439516e6c623a3cb43c106c (patch) | |
tree | 8072a2761b94bceb2127405b735d155f2a3f039b | |
parent | ae5be1b8d658f431eb815d47d3c2017095833119 (diff) | |
parent | 93caffc0843109dbf44cf87dea01bc0fab6c6d3c (diff) | |
download | pfsense-1d939dca99d00cfb4439516e6c623a3cb43c106c.zip pfsense-1d939dca99d00cfb4439516e6c623a3cb43c106c.tar.gz |
Merge pull request #1129 from razzfazz/status_upnp_int_port_master
-rw-r--r-- | usr/local/www/status_upnp.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/usr/local/www/status_upnp.php b/usr/local/www/status_upnp.php index 0a7a997..72c9398 100644 --- a/usr/local/www/status_upnp.php +++ b/usr/local/www/status_upnp.php @@ -86,14 +86,16 @@ if(!$config['installedpackages'] || !$config['installedpackages']['miniupnpd'][' <td width="10%" class="listhdrr"><?=gettext("Port");?></td> <td width="10%" class="listhdrr"><?=gettext("Protocol");?></td> <td width="20%" class="listhdrr"><?=gettext("Internal IP");?></td> - <td width="60%" class="listhdr"><?=gettext("Description");?></td> + <td width="10%" class="listhdrr"><?=gettext("Int. Port");?></td> + <td width="50%" class="listhdr"><?=gettext("Description");?></td> </tr> <?php $i = 0; foreach ($rdr_entries as $rdr_entry) { - if (preg_match("/on (.*) inet proto (.*) from any to any port = (.*) label \"(.*)\" rtable [0-9] -> (.*) 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]; ?> <tr> <td class="listlr"> @@ -106,6 +108,9 @@ if(!$config['installedpackages'] || !$config['installedpackages']['miniupnpd'][' <?php print $rdr_ip;?> </td> <td class="listlr"> + <?php print $rdr_iport;?> + </td> + <td class="listlr"> <?php print $rdr_label;?> </td> </tr> |