summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2012-11-20 23:18:11 -0800
committerChris Buechler <cmb@pfsense.org>2012-11-20 23:18:11 -0800
commit46f10475e42ef39d9904427a1e4f999f4dd85421 (patch)
tree6ad6e7120bee051a12e86c0016287e42d8381a2b /usr
parent7d3be92f49b0634edb1aebe9c597c1f7cfdb6431 (diff)
parent2909d891f6a01c8d605ffe99e1a55a4c11615164 (diff)
downloadpfsense-46f10475e42ef39d9904427a1e4f999f4dd85421.zip
pfsense-46f10475e42ef39d9904427a1e4f999f4dd85421.tar.gz
Merge pull request #260 from PiBa-NL/outbound_nonat
show difference between outbound NAT and outbound NONAT.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_nat_out.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/usr/local/www/firewall_nat_out.php b/usr/local/www/firewall_nat_out.php
index 1a6734f..7485965 100755
--- a/usr/local/www/firewall_nat_out.php
+++ b/usr/local/www/firewall_nat_out.php
@@ -414,12 +414,14 @@ include("head.inc");
</td>
<td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
<?php
- if (!$natent['target'])
- echo "*";
- elseif ($natent['target'] == "other-subnet")
- echo $natent['targetip'] . '/' . $natent['targetip_subnet'];
- else
- echo $natent['target'];
+ if (isset($natent['nonat']))
+ echo '<I>NO NAT</I>';
+ elseif (!$natent['target'])
+ echo htmlspecialchars(convert_friendly_interface_to_friendly_descr($natent['interface'])) . " address";
+ elseif ($natent['target'] == "other-subnet")
+ echo $natent['targetip'] . '/' . $natent['targetip_subnet'];
+ else
+ echo $natent['target'];
?>
</td>
<td class="listr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_out_edit.php?id=<?=$nnats;?>';">
OpenPOWER on IntegriCloud