Open Dav-11 opened 8 hours ago
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md) Here are some useful points:
added to 4.21.0 milestone
@Dav-11 please let us know when it is ready for review
Ok thank you
@Dav-11 Thanks for the PR
We already have APIs to manage VPN and introducing more APIs would increase the complexity of the system. Have you checked/considered the existent APIs?
Description
This PR adds the possibility to create wireguard VPNs as an alternative to the currently available L2TP-IPsec tunnels.
Changes in details:
DB changes: 2 new tables are introduced
wireguard_vpn
-> contains details on each tunnel (similar to theremote_access_vpn
table)wireguard_vpn_peer
-> contains details on each peer for the tunnel (similar tovpn_users
table)Table wireguard_vpn_peer { id bigint [primary key] vpn_id bigint [Ref: > wireguard_vpn.id] domain_id bigint [Ref: > domain.id] account_id bigint [Ref: > account.id] name string display boolean state varchar(32) uuid bigint ip4_address varchar ip6_address varchar public_key varchar allowed_ips text split_tunnel boolean }
CreateWgPeer
flow:
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?