diff options
author | Luiz Gustavo S. Costa <lgcosta@pfsense.org> | 2011-02-21 23:43:46 -0300 |
---|---|---|
committer | Luiz Gustavo S. Costa <lgcosta@pfsense.org> | 2011-02-21 23:43:46 -0300 |
commit | c646776871dacebcaa4225b083aa0789dc0bfba6 (patch) | |
tree | aac7e85d726fe6b19a3a832af1d1f7b995ec912b /usr/local/www | |
parent | 95938fae08add39dabf08fe0b15eaddec5fca7ee (diff) | |
download | pfsense-c646776871dacebcaa4225b083aa0789dc0bfba6.zip pfsense-c646776871dacebcaa4225b083aa0789dc0bfba6.tar.gz |
Add Global reply-to disable checkbox, resolves the issue #1137
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/system_advanced_firewall.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php index 38d12c1..d87bb64 100644 --- a/usr/local/www/system_advanced_firewall.php +++ b/usr/local/www/system_advanced_firewall.php @@ -56,6 +56,7 @@ $pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout']; $pconfig['optimization'] = $config['filter']['optimization']; $pconfig['maximumstates'] = $config['system']['maximumstates']; $pconfig['maximumtableentries'] = $config['system']['maximumtableentries']; +$pconfig['disablereplyto'] = isset($config['system']['disablereplyto']); $pconfig['disablenatreflection'] = $config['system']['disablenatreflection']; if (!isset($config['system']['enablebinatreflection'])) $pconfig['disablebinatreflection'] = "yes"; @@ -124,6 +125,13 @@ if ($_POST) { else $config['system']['enablebinatreflection'] = "yes"; + if($_POST['disablereplyto'] == "yes") { + $config['system']['disablereplyto'] = $_POST['disablereplyto']; + } else { + unset($config['system']['disablereplyto']); + } + + if($_POST['enablenatreflectionhelper'] == "yes") $config['system']['enablenatreflectionhelper'] = "yes"; else @@ -325,6 +333,18 @@ function update_description(itemnum) { </td> </tr> <tr> + <td width="22%" valign="top" class="vncell">Disable reply-to</td> + <td width="78%" class="vtable"> + <input name="disablereplyto" type="checkbox" id="disablereplyto" value="yes" <?php if ($pconfig['disablereplyto']) echo "checked"; ?> /> + <strong><?=gettext("Disable reply-to on WAN rules");?></strong> + <br /> + <?=gettext("With Multi-WAN you generally want to ensure traffic leaves the same interface it arrives on, hence reply-to is added automatically by default." . + "When using bridging, you must disable this behavior if the WAN gateway IP is different from the gateway IP of the hosts behind the bridged interface.");?> + <br /> + </td> + </tr> + + <tr> <td colspan="2" class="list" height="12"> </td> </tr> <?php if(count($config['interfaces']) > 1): ?> |