summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@cmb-macbook-pro.homeunix.net>2009-11-07 19:55:57 -0500
committerChris Buechler <cmb@cmb-macbook-pro.homeunix.net>2009-11-07 19:55:57 -0500
commit537dff78f95c49a335dadfb063844dd399f3298f (patch)
tree9273d5ec4993d326e1776b436afb56bead8f6eb7
parentf891bf66e256893c9096c815a4472ccb3e43d2db (diff)
downloadpfsense-537dff78f95c49a335dadfb063844dd399f3298f.zip
pfsense-537dff78f95c49a335dadfb063844dd399f3298f.tar.gz
show pass icon for rdr pass entries, fix editing of pass entries
-rwxr-xr-xusr/local/www/firewall_nat.php3
-rwxr-xr-xusr/local/www/firewall_nat_edit.php1
2 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/firewall_nat.php b/usr/local/www/firewall_nat.php
index d8210a8..4d4ba7d 100755
--- a/usr/local/www/firewall_nat.php
+++ b/usr/local/www/firewall_nat.php
@@ -229,6 +229,9 @@ echo "<script type=\"text/javascript\" language=\"javascript\" src=\"/javascript
<?php if(isset($natent['associated-filter-rule-id']) && $natent['associated-filter-rule-id']>0): ?>
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_chain.png" width="17" height="17" title="Firewall rule ID <?=htmlspecialchars($natent['associated-filter-rule-id']); ?> is managed with this rule" border="0">
<?php endif; ?>
+ <?php if($natent['associated-filter-rule-id'] == "pass"): ?>
+ <img src="./themes/<?= $g['theme']; ?>/images/icons/icon_pass.gif" title="All traffic matching this NAT entry is passed" border="0">
+ <?php endif; ?>
</td>
<td class="listlr" onClick="fr_toggle(<?=$nnats;?>)" id="frd<?=$nnats;?>" ondblclick="document.location='firewall_nat_edit.php?id=<?=$nnats;?>';">
<?php
diff --git a/usr/local/www/firewall_nat_edit.php b/usr/local/www/firewall_nat_edit.php
index 8366405..2752e87 100755
--- a/usr/local/www/firewall_nat_edit.php
+++ b/usr/local/www/firewall_nat_edit.php
@@ -426,6 +426,7 @@ include("fbegin.inc"); ?>
<td width="78%" class="vtable">
<select name="associated-filter-rule-id">
<option value="">None</option>
+ <option value="pass" <?php if($pconfig['associated-filter-rule-id'] == "pass") echo " SELECTED"; ?>>Pass</option>
<?php foreach ($config['filter']['rule'] as $filter_rule): ?>
<?php if (isset($filter_rule['id']) && $filter_rule['id']>0): ?>
<option value="<?php echo $filter_rule['id']; ?>"<?php if($filter_rule['id']==$pconfig['associated-filter-rule-id']) echo " SELECTED"; ?>>
OpenPOWER on IntegriCloud