diff options
author | Ermal <eri@pfsense.org> | 2012-11-17 09:48:50 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-11-17 09:48:50 +0000 |
commit | 67179472fc4d721d02baa8741d00ede472b57d0d (patch) | |
tree | 908a12e8b62ece1196bf60c656ddfad3a2f54229 /etc/inc | |
parent | c2947275a1087a9981e4fde0d1f055aa0840c98e (diff) | |
download | pfsense-67179472fc4d721d02baa8741d00ede472b57d0d.zip pfsense-67179472fc4d721d02baa8741d00ede472b57d0d.tar.gz |
Enable io_fast on dummynet to avoid uncessesary loop arounds of packets
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/captiveportal.inc | 4 | ||||
-rw-r--r-- | etc/inc/shaper.inc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc index e5d2cca..b29ff87 100644 --- a/etc/inc/captiveportal.inc +++ b/etc/inc/captiveportal.inc @@ -530,8 +530,10 @@ function captiveportal_init_rules($reinit = false) { if (!is_module_loaded("ipfw.ko")) filter_load_ipfw(); /* Always load dummynet now that even allowed ip and mac passthrough use it. */ - if (!is_module_loaded("dummynet.ko")) + if (!is_module_loaded("dummynet.ko")) { mwexec("/sbin/kldload dummynet"); + mwexec("/sbin/sysctl net.inet.ip.dummynet.io_fast=1 net.inet.ip.dummynet.hash_size=256"); + } $cprules = "add 65291 set 1 allow pfsync from any to any\n"; $cprules .= "add 65292 set 1 allow carp from any to any\n"; diff --git a/etc/inc/shaper.inc b/etc/inc/shaper.inc index f76aafb..1635df1 100644 --- a/etc/inc/shaper.inc +++ b/etc/inc/shaper.inc @@ -4234,8 +4234,10 @@ function filter_generate_dummynet_rules() { read_dummynet_config(); if (!empty($dummynet_pipe_list)) { - if (!is_module_loaded("dummynet.ko")) + if (!is_module_loaded("dummynet.ko")) { mwexec("/sbin/kldload dummynet"); + mwexec("/sbin/sysctl net.inet.ip.dummynet.io_fast=1 net.inet.ip.dummynet.hash_size=256"); + } } $dn_rules = ""; |