From 184a6cebbd1a27b55b61f1be4474df39470fb760 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Tue, 20 Dec 2011 16:36:49 -0500 Subject: until 2.0.1 is tagged, Revert "Add a checkbox that disabled automatically generates negate rules for directly connected networks and VPNs" This reverts commit 9ae39b01fb7dfd9c27091e3fae7e034e9e115519. --- etc/inc/filter.inc | 2 +- usr/local/www/system_advanced_firewall.php | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 967991b..bcd9f4b 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -2045,7 +2045,7 @@ function filter_generate_user_rule($rule) { $line = ""; /* exception(s) to a user rules can go here. */ /* rules with a gateway or pool should create another rule for routing to vpns */ - if((($aline['route'] <> "") && (trim($aline['type']) == "pass") && strstr($dst, "any")) && (!isset($config['system']['disablenegate']))) { + if(($aline['route'] <> "") && (trim($aline['type']) == "pass") && strstr($dst, "any")) { /* negate VPN/PPTP/PPPoE/Static Route networks for load balancer/gateway rules */ $negate_networks = " to "; $line .= $aline['type'] . $aline['direction'] . $aline['log'] . $aline['quick'] . diff --git a/usr/local/www/system_advanced_firewall.php b/usr/local/www/system_advanced_firewall.php index 6983422..2b3f5dd 100644 --- a/usr/local/www/system_advanced_firewall.php +++ b/usr/local/www/system_advanced_firewall.php @@ -57,7 +57,6 @@ $pconfig['optimization'] = $config['filter']['optimization']; $pconfig['maximumstates'] = $config['system']['maximumstates']; $pconfig['maximumtableentries'] = $config['system']['maximumtableentries']; $pconfig['disablereplyto'] = isset($config['system']['disablereplyto']); -$pconfig['disablenegate'] = isset($config['system']['disablenegate']); $pconfig['disablenatreflection'] = $config['system']['disablenatreflection']; if (!isset($config['system']['enablebinatreflection'])) $pconfig['disablebinatreflection'] = "yes"; @@ -136,11 +135,6 @@ if ($_POST) { else unset($config['system']['disablereplyto']); - if($_POST['disablenegate'] == "yes") - $config['system']['disablenegate'] = $_POST['disablenegate']; - else - unset($config['system']['disablenegate']); - if($_POST['enablenatreflectionhelper'] == "yes") $config['system']['enablenatreflectionhelper'] = "yes"; else @@ -363,16 +357,6 @@ function update_description(itemnum) { - Disable Negate rules - - /> - -
- -
- - -   1): ?> -- cgit v1.1