From 0292d56d278ee5d1271d9972d40f77a8afc435c9 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 4 Nov 2008 21:28:36 +0000 Subject: Setup enc sysctl's --- etc/inc/system.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 8b359f3..9dcac76 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -40,6 +40,11 @@ function activate_sysctls() { mwexec("sysctl " . $tunable['tunable'] . "=\"" . $tunable['value'] . "\""); + exec("/sbin/sysctl net.enc.out.ipsec_bpf_mask=0x000002"); + exec("/sbin/sysctl net.enc.out.ipsec_filter_mask=0x000002"); + exec("/sbin/sysctl net.enc.in.ipsec_bpf_mask=0x000001"); + exec("/sbin/sysctl net.enc.in.ipsec_filter_mask=0x000001"); + } function system_resolvconf_generate($dynupdate = false) { @@ -1146,4 +1151,4 @@ function enable_watchdog() { } } -?> +?> \ No newline at end of file -- cgit v1.1