diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-07 11:19:46 -0800 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2008-01-07 11:19:46 -0800 |
commit | 4ddf2e3407577987dd2f0ce408e7a6949c22c417 (patch) | |
tree | ba0b639ac302e33553fe4f87e46ccef5bdce83f5 /scripts | |
parent | d3d62b3c5be34576d339f5a7e7a4b3a304dfd4c6 (diff) | |
download | vyatta-cfg-vpn-4ddf2e3407577987dd2f0ce408e7a6949c22c417.tar.gz vyatta-cfg-vpn-4ddf2e3407577987dd2f0ce408e7a6949c22c417.zip |
allow pptp only vpn config (interoperate with remote access VPN).
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vpn-config.pl | 5 |
1 files changed, 3 insertions, 2 deletions
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'); } |