passepartout-app
passepartout-app copied to clipboard
Implement WireGuard in providers
Strictly depending on server. Async involved.
- https://protonvpn.com/secure-vpn/wireguard
- https://docs.opnsense.org/manual/how-tos/wireguard-client-mullvad.html
Experiment with IVPN infrastructure:
- https://mullvad.net/en/servers/#wireguard
- https://docs.opnsense.org/manual/how-tos/wireguard-client.html
- https://docs.opnsense.org/manual/how-tos/wireguard-client-mullvad.html
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.