starting the tunnel will make it keep trying until it connects

Changed 'auto=add' to 'auto=start' to make sure the tunnel starts.
When both sides are there they will connect. This resolves the
issue that there is only a small time frame in which the VPN
would connect.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/b95addd3
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/b95addd3
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/b95addd3

Branch: refs/heads/master
Commit: b95addd3efb45f61b129584ade49bad7bbaa16f8
Parents: 8b2563a
Author: Remi Bergsma <rberg...@schubergphilis.com>
Authored: Mon Dec 8 18:55:35 2014 +0100
Committer: Remi Bergsma <rberg...@schubergphilis.com>
Committed: Mon Dec 8 18:55:35 2014 +0100

----------------------------------------------------------------------
 systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/b95addd3/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh
----------------------------------------------------------------------
diff --git a/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh 
b/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh
index cfee6d1..d30a9ca 100755
--- a/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh
+++ b/systemvm/patches/debian/config/opt/cloud/bin/ipsectunnel.sh
@@ -151,7 +151,7 @@ ipsec_tunnel_add() {
     sudo echo "  salifetime=${esplifetime}s" >> $vpnconffile &&
     sudo echo "  pfs=$pfs" >> $vpnconffile &&
     sudo echo "  keyingtries=2" >> $vpnconffile &&
-    sudo echo "  auto=add" >> $vpnconffile &&
+    sudo echo "  auto=start" >> $vpnconffile &&
     sudo echo "$leftpeer $rightpeer: PSK \"$secret\"" > $vpnsecretsfile &&
     sudo chmod 0400 $vpnsecretsfile
 

Reply via email to