summaryrefslogtreecommitdiff
path: root/scripts/vpn-config.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vpn-config.pl')
-rwxr-xr-xscripts/vpn-config.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl
index 5c00e08..635c416 100755
--- a/scripts/vpn-config.pl
+++ b/scripts/vpn-config.pl
@@ -217,6 +217,7 @@ if ($vcVPN->exists('ipsec')) {
$genout .= "version 2.0\n";
$genout .= "\n";
$genout .= "config setup\n";
+ $genout .= "\tcharonstart=yes\n";
#
# Interfaces
@@ -232,6 +233,7 @@ if ($vcVPN->exists('ipsec')) {
# not used, though we do need to include the line and the keyword
# "%none" to keep the IPsec setup code from defaulting the entry.
if ($using_klips) {
+ $genout .= "\tinterfaces=\"";
my $counter = 0;
foreach my $interface (@interfaces) {
if (!(-d "/sys/class/net/$interface")) {
@@ -262,6 +264,8 @@ if ($vcVPN->exists('ipsec')) {
++$counter;
}
$genout .= '%defaultroute"';
+ } else {
+ $genout .= 'interfaces="%none"';
}
$genout .= "\n";
}