diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-12 16:55:50 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-12 16:55:50 +0000 |
commit | 8c5096aad3c91bf276fb1812446be46af11fd97a (patch) | |
tree | 3a105f32b38cbd8bfe4819888f25bca02a19a330 /etc | |
parent | 8ee9b271e7defb98616167b6063dafdb4648a58d (diff) | |
download | pfsense-8c5096aad3c91bf276fb1812446be46af11fd97a.zip pfsense-8c5096aad3c91bf276fb1812446be46af11fd97a.tar.gz |
Add via padlock support
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vpn.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 03de93c..f3391c7 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -87,6 +87,11 @@ function find_last_gif_device() { function vpn_ipsec_configure($ipchg = false) { global $config, $g; + /* deterimine if we should load the via padlock module */ + $dmesg_boot = file_get_contents("/var/log/dmesg.boot"); + if(stristr($dmesg_boot, "Padlock")) + mwexec("/sbin/kldload padlock"); + if(isset($config['ipsec']['preferredoldsa'])) { mwexec("/sbin/sysctl net.key.preferred_oldsa=0"); } else { |