WireGuard as a VPN option on the Virtual Router

Ouverte
#14,003 3 commentaires 2 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
28/100
Type d'issue
Fonctionnalité
Clarté
À clarifier
Activité
Active
Domaine
api, backend, networking

Piste de recherche

Examinez d’abord la PR fermée #9977 ainsi que les diapositives et la vidéo de CCC 2024, puis suivez la question de conception de l’API encore non résolue à travers les composants Virtual Router, Network, API et UI. La tâche est considérée comme terminée lorsqu’un chemin d’implémentation réalisable et le périmètre nécessaire pour ajouter la prise en charge de WireGuard dans une future version ont été établis.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

component:networking component:virtual-router type:new-feature

ISSUE TYPE
  • Improvement Request / Feature Idea
COMPONENT NAME
Virtual Router, Network, API, UI
CLOUDSTACK VERSION
4.22.1.0
SUMMARY

CloudStack today offers L2TP for remote access and IPsec for site-to-site. We run CloudStack in production and a large share of our customer VPN problems come from the limits of these options. WireGuard would solve most of them:

Single UDP port. One port to allow, in and out, instead of IKE plus ESP and the NAT-T handling that comes with IPsec. It is far simpler to manage on customer-side firewalls, and much easier for us to support.

Works without a fixed public IP. Many of our customers sit behind dynamic addressing or carrier NAT and cannot establish an IPsec tunnel as the current IPsec S2S doesn't support authentication by Id, which has an open issue 13512. WireGuard traverses NAT with a single port and re-establishes on its own when the address changes. This is our single most common VPN complaint.

No negotiation matrix to get wrong. Bringing up an IPsec site-to-site tunnel means both ends agreeing on IKE version, DH group, encryption, hashing, authentication, PFS and lifetimes, in two separate phases. A single mismatch anywhere produces a tunnel that will not come up, often with no useful error on either side, and the customer equipment is usually out of our control. This is where most of our site-to-site setup time goes. WireGuard has no negotiation at all: exchange public keys and the tunnel is up.

Lower CPU cost. In our experience an IPsec tunnel pins encryption to one core and saturates it, capping tunnel throughput well below the link. WireGuard is noticeably lighter for the same traffic due to its modern encryption algorithms.

One protocol for both use cases. Remote access and site-to-site with the same configuration model, instead of two separate stacks.

Home routers already support it. A large number of consumer and SOHO routers now ship WireGuard. That lets a customer connect their whole home or small office to their tenant directly from the router, and route only the tenant prefixes over the tunnel while normal internet traffic stays local. Split routing like this is not workable with the current L2TP client setup, and this is exactly what many of our customers are asking for.

PRIOR ART

This has already been proposed and partly implemented in the project:

The PR did not stall because the feature was rejected. It stalled on an open API design question, then on rebase conflicts, and finally on the author's availability.

Is it feasible to revive this and get WireGuard support into a future release? There is real demand for it among our customers, and the groundwork already exists in the closed PR and the CCC material.

Langage dominant
Java
Étoiles
3.1k
Forks
1.4k
Merge moyen
6 j 20 h
PR mergées (30 j)
27

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de apache/cloudstack

Toutes les issues de apache/cloudstack

Issues similaires

Plus d'issues Java

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.