summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-04-11 16:58:13 -0400
committerjim-p <jimp@pfsense.org>2011-04-11 16:58:13 -0400
commit127eb8e0238061ca8a66e25c2089dddc1826ec4d (patch)
treeaa320143b64a7de7af742cfbdb3424baca9b3768 /etc/inc
parent4eb4b18a0fb3c39c5bbb241ad4f0366b6c5e890c (diff)
downloadpfsense-127eb8e0238061ca8a66e25c2089dddc1826ec4d.zip
pfsense-127eb8e0238061ca8a66e25c2089dddc1826ec4d.tar.gz
Add a toggle under System > Advanced on the misc tab to enable/disable debug mode for racoon.
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/vpn.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index f0641b7..5ae79b4 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -896,7 +896,8 @@ EOD;
mwexec("/usr/local/sbin/setkey -F", false);
sleep("0.1");
/* start racoon */
- mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf", false);
+ $ipsecdebug = isset($config['ipsec']['racoondebug']) ? "-d -v" : "";
+ mwexec("/usr/local/sbin/racoon {$ipsecdebug} -f {$g['varetc_path']}/racoon.conf", false);
sleep("0.1");
/* load SPD */
mwexec("/usr/local/sbin/setkey -f {$g['varetc_path']}/spd.conf", false);
OpenPOWER on IntegriCloud