diff options
author | Daniel Becker <razzfazz@gmail.com> | 2014-05-05 15:35:32 -0700 |
---|---|---|
committer | Daniel Becker <razzfazz@gmail.com> | 2014-05-05 16:29:40 -0700 |
commit | 93caffc0843109dbf44cf87dea01bc0fab6c6d3c (patch) | |
tree | 38286a497f42aa66880024024048e042f3944390 /usr/local | |
parent | ec25f18a4f575805ca948cc7126846e69b57828e (diff) | |
download | pfsense-93caffc0843109dbf44cf87dea01bc0fab6c6d3c.zip pfsense-93caffc0843109dbf44cf87dea01bc0fab6c6d3c.tar.gz |
add column for internal port on UPnP status page
Diffstat (limited to 'usr/local')
-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> |