From 4ddf2e3407577987dd2f0ce408e7a6949c22c417 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 7 Jan 2008 11:19:46 -0800 Subject: allow pptp only vpn config (interoperate with remote access VPN). --- scripts/vpn-config.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl index d686b66..fb8aa29 100755 --- a/scripts/vpn-config.pl +++ b/scripts/vpn-config.pl @@ -81,7 +81,7 @@ $genout_secrets .= "# using 'new config' directory: $vcVPN->{_new_config_di $vcVPN->setLevel('vpn'); -if ($vcVPN->exists('.')) { +if ($vcVPN->exists('ipsec')) { # # Check that ESP groups have been specified @@ -725,7 +725,8 @@ if (!(defined($config_file) && ($config_file ne '') && defined($secrets_file) && if ($error == 0) { - if ($vcVPN->isDeleted('.') || !$vcVPN->exists('.')) { + if ($vcVPN->isDeleted('.') || !$vcVPN->exists('.') + || $vcVPN->isDeleted('ipsec') || !$vcVPN->exists('ipsec')) { if (VyattaVPNUtil::is_vpn_running()) { vpn_exec('ipsec setup --stop', 'stop ipsec'); } -- cgit v1.2.3