summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-02-10 20:54:20 +0000
committerErmal Luçi <eri@pfsense.org>2010-02-10 20:54:20 +0000
commit19757916c126a1ebae697287cb3aa6d1e014d8b9 (patch)
treebbaae6b5e87b40dfa77a55be051bcfdf7518800e /usr/local/www
parent7ec341cbc3e4cff4999332c9db44deef533f15b3 (diff)
downloadpfsense-19757916c126a1ebae697287cb3aa6d1e014d8b9.zip
pfsense-19757916c126a1ebae697287cb3aa6d1e014d8b9.tar.gz
Ticket #14. Implement an advanced option to allow disabling autogenerated reply-to. Submitted-by: Dan Swartzendruber
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 034a683..9be39b2 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -129,6 +129,8 @@ if (isset($id) && $a_filter[$id]) {
$pconfig['quick'] = $a_filter[$id]['quick'];
if (isset($a_filter[$id]['allowopts']))
$pconfig['allowopts'] = true;
+ if (isset($a_filter[$id]['disablereplyto']))
+ $pconfig['disablereplyto'] = true;
/* advanced */
$pconfig['max'] = $a_filter[$id]['max'];
@@ -383,6 +385,10 @@ if ($_POST) {
$filterent['allowopts'] = true;
else
unset($filterent['allowopts']);
+ if ($_POST['disablereplyto'] == "yes")
+ $filterent['disablereplyto'] = true;
+ else
+ unset($filterent['disablereplyto']);
$filterent['max'] = $_POST['max'];
$filterent['max-src-nodes'] = $_POST['max-src-nodes'];
$filterent['max-src-conn'] = $_POST['max-src-conn'];
@@ -965,6 +971,9 @@ include("head.inc");
<input type="checkbox" id="allowopts" value="yes" name="allowopts"<?php if($pconfig['allowopts'] == true) echo " checked"; ?>>
<br/><span class="vexpl"><?=gettext("This allows packets with IP options to pass. Otherwise they are blocked by default. This is usually only seen with multicast traffic.");?>
</span><p>
+ <input type="checkbox" id="disablereplyto" value="yes" name="disablereplyto"<?php if($pconfig['disablereplyto'] == true) echo " checked"; ?>>
+ <br/><span class="vexpl"><?=gettext("This will disable auto generated reply-to for this rule.");?>
+ </span><p>
<input name="tag" id="tag" value="<?=htmlspecialchars($pconfig['tag']);?>">
<br /><span class="vexpl"><?=gettext("You can mark a packet matching this rule and use this mark to match on other NAT/filter rules. It is called <b>Policy filtering</b>");?>
</span><p>
OpenPOWER on IntegriCloud