Skip to content

Remote VPN is not working if site-to-site VPN exists #6903

Description

@harikrishna-patnala
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Virtual Router
CLOUDSTACK VERSION
4.16, 4.17, main
SUMMARY

When is site to site VPN already exists then remote VPN does not work.

There was an old issue #3654 already but even with newer strongswan libraries this was not working as expected.

This was discussed here https://wiki.strongswan.org/issues/2497 and a possible workaround or fix could be as follows,

Modify /opt/cloud/bin/configure.py:
secret.addeq("%s : PSK "%s"" % (left, psk)) to
secret.addeq("%s %%any : PSK "%s"" % (left, psk))

This needs testing and check for regressions.

STEPS TO REPRODUCE
1. Step up site-to-site VPN between two networks
2. Also enable remote VPN
EXPECTED RESULTS
As per this issue https://github.com/apache/cloudstack/issues/3654, both site to site VPN and remote VPN should work
ACTUAL RESULTS
Only either of site to site VPN or remote VPN is working

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions