summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_nat_1to1.php
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-12-08 22:44:00 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2010-12-08 22:44:00 -0700
commit71809626fc83c664b5e6c3e70cb674813886fca6 (patch)
treebda47d956f54ab92db59b3683d1163564208d69d /usr/local/www/firewall_nat_1to1.php
parent35aa4df3f09c75d35eecec2e2cccdd37fe083e67 (diff)
downloadpfsense-71809626fc83c664b5e6c3e70cb674813886fca6.zip
pfsense-71809626fc83c664b5e6c3e70cb674813886fca6.tar.gz
If available, display source IP's CIDR mask on external IP as well.
Diffstat (limited to 'usr/local/www/firewall_nat_1to1.php')
-rwxr-xr-xusr/local/www/firewall_nat_1to1.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/firewall_nat_1to1.php b/usr/local/www/firewall_nat_1to1.php
index e114cd6..306c811 100755
--- a/usr/local/www/firewall_nat_1to1.php
+++ b/usr/local/www/firewall_nat_1to1.php
@@ -135,10 +135,14 @@ include("head.inc");
?>
</td>
<td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';">
- <?php echo $textss . $natent['external'] . $textse; ?>
+ <?php
+ $source_net = pprint_address($natent['source']);
+ $source_cidr = strstr($source_net, '/');
+ echo $textss . $natent['external'] . $source_cidr . $textse;
+ ?>
</td>
<td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';">
- <?php echo $textss . pprint_address($natent['source']). $textse; ?>
+ <?php echo $textss . $source_net . $textse; ?>
</td>
<td class="listr" ondblclick="document.location='firewall_nat_1to1_edit.php?id=<?=$i;?>';">
<?php echo $textss . pprint_address($natent['destination']) . $textse; ?>
OpenPOWER on IntegriCloud