diff options
author | Viacheslav <v.gletenko@vyos.io> | 2021-10-31 13:02:12 +0000 |
---|---|---|
committer | Viacheslav <v.gletenko@vyos.io> | 2021-10-31 13:06:22 +0000 |
commit | c273b7db78542fdd707b53ae8face50daaf95588 (patch) | |
tree | 68ecc080ff3c88b7e9c7f97334fc68b8d82464ca | |
parent | a9c2f95211a4b992a75adbdd8c404bdda96caf15 (diff) | |
download | vyatta-op-vpn-c273b7db78542fdd707b53ae8face50daaf95588.tar.gz vyatta-op-vpn-c273b7db78542fdd707b53ae8face50daaf95588.zip |
ipsec-op: T3341: Fix for resetting peer tunnel
The current resetting is affected for parent SA, in that case
all child SA's are resetting (if one peer have a several tunnels)
This commit fixes such behavior for correct resetting child SA's
-rwxr-xr-x | scripts/vyatta-vpn-op.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-vpn-op.pl b/scripts/vyatta-vpn-op.pl index 6d96bec..8bf0301 100755 --- a/scripts/vyatta-vpn-op.pl +++ b/scripts/vyatta-vpn-op.pl @@ -48,7 +48,7 @@ sub clear_tunnel { print "Resetting tunnel $tunnel with peer $peer...\n"; # bring down the tunnel - `sudo /usr/sbin/ipsec down peer-$peer-tunnel-$tunnel`; + `sudo /usr/sbin/ipsec down peer-$peer-tunnel-$tunnel\{\*\}`; # bring up the tunnel `sudo /usr/sbin/ipsec up peer-$peer-tunnel-$tunnel`; } |