summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-12 16:55:50 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-12 16:55:50 +0000
commit8c5096aad3c91bf276fb1812446be46af11fd97a (patch)
tree3a105f32b38cbd8bfe4819888f25bca02a19a330 /etc/inc/vpn.inc
parent8ee9b271e7defb98616167b6063dafdb4648a58d (diff)
downloadpfsense-8c5096aad3c91bf276fb1812446be46af11fd97a.zip
pfsense-8c5096aad3c91bf276fb1812446be46af11fd97a.tar.gz
Add via padlock support
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc5
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 {
OpenPOWER on IntegriCloud