passepartout-app icon indicating copy to clipboard operation
passepartout-app copied to clipboard

Implement WireGuard in providers

Open keeshux opened this issue 1 year ago • 0 comments

Strictly depending on server. Async involved.

Experiment with IVPN infrastructure:

Will need a custom map in Profile.Provider.Settings for VPN-specific seetings beyond serverId/presetId.

Also an issue was opened in api-source-torguard.


IVPN

Generates and uploads to server.

Mullvad

WireGuard returns IPv4/6 based on:

  • Account
  • Locally generated private key

So no WireGuard info in preset. Just use infrastructure for endpoints (aka peers).

Peer:

  • PublicKey - https://mullvad.net/servers#wireguard - where in API? ask support
  • AllowedIPs - from Mullvad wg API
  • Endpoint - from Mullvad relays API (current infrastructure)

Parameters are fetched via web services and account (cache locally or fetch each connection?). Also needs public key of locally generated private key.

Generate private key when creating a WireGuard provider profile.

keeshux avatar Dec 14 '23 06:12 keeshux