cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayapalu <...@git.apache.org>
Subject [GitHub] cloudstack pull request: Strongswan vpn feature
Date Fri, 06 May 2016 04:08:27 GMT
Github user jayapalu commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/872#discussion_r62286863
  
    --- Diff: systemvm/patches/debian/config/opt/cloud/bin/configure.py ---
    @@ -542,11 +552,11 @@ def configure_ipsec(self, obj):
                 secret.commit()
                 file.commit()
                 logging.info("Configured vpn %s %s", leftpeer, rightpeer)
    -            CsHelper.execute("ipsec auto --rereadall")
    -            CsHelper.execute("ipsec auto --add vpn-%s" % rightpeer)
    +            CsHelper.execute("ipsec reload")
    +            #CsHelper.execute("ipsec --add vpn-%s" % rightpeer)
                 if not obj['passive']:
    -                CsHelper.execute("ipsec auto --up vpn-%s" % rightpeer)
    -        os.chmod(vpnsecretsfile, 0o400)
    +                CsHelper.execute("sudo nohup ipsec up vpn-%s &" % rightpeer)
    --- End diff --
    
    @rhtyd If we start/stop the existing tunnels get effected. Usually  ipsec up command takes
long time, if do not  use the nohup the script will  hang for long time it may result timeout
for resource command.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message