summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-05-08 18:41:20 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-05-08 18:41:20 -0300
commit91946ea44db0c951471342beef8c8b0a330b4ae1 (patch)
treec83bed7578be9de96eb6d8245c578bcb73301649 /usr/local/www
parent7e736f3850624668182d5204865e8805f21a7577 (diff)
parenta0dd23e0dcc5d5f4b5b07f7a4c5b0dc64ebf4731 (diff)
downloadpfsense-91946ea44db0c951471342beef8c8b0a330b4ae1.zip
pfsense-91946ea44db0c951471342beef8c8b0a330b4ae1.tar.gz
Merge pull request #1130 from razzfazz/status_upnp_int_port
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/status_upnp.php11
1 files changed, 8 insertions, 3 deletions
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']['
<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">
@@ -107,6 +109,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>
OpenPOWER on IntegriCloud