[pve-devel] [PATCH] remove optimize option
Alexandre Derumier
aderumier at odiso.com
Wed May 14 08:05:26 CEST 2014
new model is already optimized, no need to have tricks now
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
debian/example/host.fw | 3 ---
src/PVE/Firewall.pm | 2 +-
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/debian/example/host.fw b/debian/example/host.fw
index 77f7f4b..04ab001 100644
--- a/debian/example/host.fw
+++ b/debian/example/host.fw
@@ -20,9 +20,6 @@ nosmurfs: 0
# filter illegal combinations of TCP flags
tcpflags: 1
-# rules processing speed optimizations
-optimize : 1
-
[RULES]
IN SSH(ACCEPT) net0
diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm
index 8819199..03cafb8 100644
--- a/src/PVE/Firewall.pm
+++ b/src/PVE/Firewall.pm
@@ -1853,7 +1853,7 @@ sub parse_hostfw_option {
my $loglevels = "emerg|alert|crit|err|warning|notice|info|debug|nolog";
- if ($line =~ m/^(enable|nosmurfs|tcpflags|optimize):\s*(0|1)\s*$/i) {
+ if ($line =~ m/^(enable|nosmurfs|tcpflags):\s*(0|1)\s*$/i) {
$opt = lc($1);
$value = int($2);
} elsif ($line =~ m/^(log_level_in|log_level_out|tcp_flags_log_level|smurf_log_level):\s*(($loglevels)\s*)?$/i) {
--
1.7.10.4
More information about the pve-devel
mailing list