diff options
-rwxr-xr-x | usr/local/www/firewall_nat.php | 3 | ||||
-rwxr-xr-x | usr/local/www/firewall_nat_edit.php | 1 |
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"; ?>> |