From 85ba1f76a441e36e9998a0a5d40943889d5d8290 Mon Sep 17 00:00:00 2001 From: Remi Bergsma Date: Mon, 8 Dec 2014 19:00:59 +0100 Subject: [PATCH] prevent CloudStack from removing the VPN connection If connecting the VPN takes some time, for example because the other end is not (yet) up, CloudStack will delete the VPN because the ipsectunnel.sh does not return in time. The VPN connection then enters the Error state. This change makes sure ipsectunnel.sh returns in time, and lets ipsec connect in the background. If it all fails, the connection enters Disconnected. (cherry picked from commit 7f33f7c3969d3b217ad6977f01bb487ebeee665d) --- systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh b/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh index 809cb4dd5af..a95c65ea350 100755 --- a/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh +++ b/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh @@ -173,7 +173,7 @@ ipsec_tunnel_add() { if [ $passive -eq 0 ] then - sudo ipsec auto --up vpn-$rightpeer + sudo ipsec auto --up vpn-$rightpeer & fi if [ $checkup -eq 1 ] then