diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-08-13 09:24:08 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-08-13 09:24:08 -0700 |
commit | 56ff7b953eb935bb8131e29db51f307714a94704 (patch) | |
tree | 5af13ab6f4c97e3288e87341de3b16b820ef65ff | |
parent | 54b81a0837708a4f8da8addb134e1d1c12304d90 (diff) | |
parent | 851a3a394edfb5fec64ece5b700be5fa4b4f8d29 (diff) | |
download | vyatta-cfg-vpn-56ff7b953eb935bb8131e29db51f307714a94704.tar.gz vyatta-cfg-vpn-56ff7b953eb935bb8131e29db51f307714a94704.zip |
Merge branch 'kenwood' of http://git.vyatta.com/vyatta-cfg-vpn into kenwood
-rw-r--r-- | debian/changelog | 13 | ||||
-rwxr-xr-x | scripts/vpn-config.pl | 18 |
2 files changed, 25 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog index 47ff365..a6e7208 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,16 @@ +vyatta-cfg-vpn (0.12.9) unstable; urgency=low + + * Fix 4623: Removing IPSEC VPN config without removing cluster ipsec + config drops all interfaces. + + -- Stig Thormodsrud <stig@vyatta.com> Fri, 10 Jul 2009 14:13:06 -0700 + +vyatta-cfg-vpn (0.12.8) unstable; urgency=low + + * UNRELEASED + + -- An-Cheng Huang <ancheng@vyatta.com> Fri, 29 May 2009 18:35:35 -0700 + vyatta-cfg-vpn (0.12.7) unstable; urgency=low * Fix 3836: Allow VPN authentication ID to accept values of IP diff --git a/scripts/vpn-config.pl b/scripts/vpn-config.pl index d65f977..af3f432 100755 --- a/scripts/vpn-config.pl +++ b/scripts/vpn-config.pl @@ -798,14 +798,20 @@ if (!(defined($config_file) && ($config_file ne '') && defined($secrets_file) && if ($error == 0) { if ($vcVPN->isDeleted('.') || !$vcVPN->exists('.') || $vcVPN->isDeleted('ipsec') || !$vcVPN->exists('ipsec')) { - if (is_vpn_running()) { - vpn_exec('ipsec setup --stop', 'stop ipsec'); - } - if (!enableICMP('1')) { + if (Vyatta::Misc::isClusterIP($vc, 'ipsec')) { $error = 1; - print STDERR "VPN commit error. Unable to re-enable ICMP redirects.\n"; + print STDERR "VPN commit error. Cluster service is referencing ipsec config.\n"; + } + if ($error == 0) { + if (is_vpn_running()) { + vpn_exec('ipsec setup --stop', 'stop ipsec'); + } + if (!enableICMP('1')) { + $error = 1; + print STDERR "VPN commit error. Unable to re-enable ICMP redirects.\n"; + } + write_config($genout, $config_file, $genout_secrets, $secrets_file); } - write_config($genout, $config_file, $genout_secrets, $secrets_file); } else { if (!enableICMP('0')) { $error = 1; |