summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2009-03-13 01:25:22 +0100
committerSeth Mos <seth.mos@xs4all.nl>2009-03-13 01:26:06 +0100
commit6edc48fe40c2167182cd88a86c43de8f514e5531 (patch)
tree45ada2d5dab9fba892cbe57a4fa39181173c4644 /etc/inc/vpn.inc
parent0b7fd3e91deacbb301e1684a40911c8e95ec6533 (diff)
downloadpfsense-6edc48fe40c2167182cd88a86c43de8f514e5531.zip
pfsense-6edc48fe40c2167182cd88a86c43de8f514e5531.tar.gz
Move the admin socket parameter into the existing listen section.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 30fdefb..5db241d 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -284,11 +284,7 @@ function vpn_ipsec_configure($ipchg = false)
return 1;
}
- $racoonconf = "# This file is automatically generated. Do not edit\n";
- $racoonconf .= "listen {\n";
- $racoonconf .= " adminsock \"/var/run/racoon.sock\" \"root\" \"wheel\" 0660;\n";
- $racoonconf .= "}\n";
-
+ $racoonconf = "# This file is automatically generated. Do not edit\n";
$racoonconf .= "path pre_shared_key \"{$g['varetc_path']}/psk.txt\";\n\n";
$racoonconf .= "path certificate \"{$g['varetc_path']}\";\n\n";
@@ -296,6 +292,7 @@ function vpn_ipsec_configure($ipchg = false)
if (count($ipmap)) {
$racoonconf .= "\nlisten\n";
$racoonconf .= "{\n";
+ $racoonconf .= " adminsock \"/var/run/racoon.sock\" \"root\" \"wheel\" 0660;\n";
foreach ($ipmap as $addr) {
$racoonconf .= "\tisakmp {$addr} [500];\n";
$racoonconf .= "\tisakmp_natt {$addr} [4500];\n";
OpenPOWER on IntegriCloud