diff options
author | Erik Fonnesbeck <efonnes@gmail.com> | 2010-12-08 22:44:00 -0700 |
---|---|---|
committer | Erik Fonnesbeck <efonnes@gmail.com> | 2010-12-08 22:44:00 -0700 |
commit | 71809626fc83c664b5e6c3e70cb674813886fca6 (patch) | |
tree | bda47d956f54ab92db59b3683d1163564208d69d /usr/local/www/firewall_nat_1to1.php | |
parent | 35aa4df3f09c75d35eecec2e2cccdd37fe083e67 (diff) | |
download | pfsense-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-x | usr/local/www/firewall_nat_1to1.php | 8 |
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; ?> |