summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-26 14:03:11 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-26 14:03:11 -0400
commit4ae540e5feb4710c637c8fbdfd54f92374b2751e (patch)
tree1e2ce9dcc803872fb3df6d2525d4e8bc906f3d63 /etc/inc/vpn.inc
parent96c52992f023c2309cc18d819404a359766b7f04 (diff)
downloadpfsense-4ae540e5feb4710c637c8fbdfd54f92374b2751e.zip
pfsense-4ae540e5feb4710c637c8fbdfd54f92374b2751e.tar.gz
Unbreak ipsec on my firewall. For some reason p2_ealgos is not being defined and requires a 'require' to bring it in. Not sure why this is happening but this fix unbreaks my case at least.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index b0c5487..4db9900 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -638,6 +638,12 @@ EOD;
if ($ealg_kl) {
if( $ealg_kl == "auto" ) {
+ /* This seems to be required on my system and was not reproducable
+ * on other systems. For some reason $p2_ealgos is not defined
+ * and needs to be read back in!? -sullrich Aug 26, 2009
+ */
+ if(!$p2_ealgos)
+ require("ipsec.inc");
$key_hi = $p2_ealgos[$ealg_id]['keysel']['hi'];
$key_lo = $p2_ealgos[$ealg_id]['keysel']['lo'];
$key_step = $p2_ealgos[$ealg_id]['keysel']['step'];
@@ -646,6 +652,7 @@ EOD;
seconds wrecking bootup */
if($key_hi != 0 and $key_lo !=0 and $key_step !=0) {
for ($keylen = $key_hi; $keylen >= $key_lo; $keylen -= $key_step) {
+// Uncomment the next line if you want to test the comment 5 lines up.
// echo "$keylen = $key_hi; $keylen >= $key_lo; $keylen -= $key_step \n";
if ($ealgos)
$ealgos = $ealgos.", ";
OpenPOWER on IntegriCloud