summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-02 20:46:43 +0000
committerErmal <eri@pfsense.org>2011-05-02 20:57:50 +0000
commit81e14406ba0a94d64753b323597f69d526e7230c (patch)
treeb0f64b7911216e87f4f3778c0101b30e0480327a /etc
parent2dc14ea286c1cd7091bef34e4bdb932fcc98a803 (diff)
downloadpfsense-81e14406ba0a94d64753b323597f69d526e7230c.zip
pfsense-81e14406ba0a94d64753b323597f69d526e7230c.tar.gz
Bring back the optimization on max-packets at pf(4) level now that the issues with daemon have been identified.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 7e5e876..90a787c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1919,6 +1919,9 @@ function filter_generate_user_rule($rule) {
$aline['flags'] .= "/" . $rule['max-src-conn-rates'] . ", overload <virusprot> flush global ";
}
+ if(!empty($aline['divert']))
+ $aline['flags'] .= "max-packets 8 ";
+
$aline['flags'] .= " ) ";
}
}
OpenPOWER on IntegriCloud