Skip to content

Wireguard connect script for UniFi OS devices with config file autoselect

License

Notifications You must be signed in to change notification settings

traktuner/protonvpn-wireguard-unifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whats that?

This script solves an annoying problem I had. Wireguard configs from ProtonVPN are only available per-server and not per-country (as it was the case with OpenVPN configs). So I made this script which queries the ProtonVPN API, extracts the best server and then uses the correct config file. Designed especially for the Unifi Dream Machine Pro, but should also work for all UnifiOS devices (UDM, UDM Pro, UDM SE, UXG Pro, UDR,...)

Prerequisites

On-Boot script

Split-VPN

How To

  1. Configure the On-Boot Script and Split-VPN (Wireguard section) accordingly.
  2. Navigate to https://protonvpn.com and head over to the download section.
  3. Download all the necessary country-specific wireguard config files and edit them according the Split-VPN readme
  4. Name all config files wg0_[country]#[servernumber].conf (wg0 is the interface name) and place them in a "configs" subdirectory
  5. The script is designed to work for all ProtonVPN PLUS servers in Austria (AT) - you can adapt the script to your needs
  6. Replace the original run-vpn.sh (which was set up with split-vpn) with the one in this repository.

Issues?

Did this solve a problem for you? That's awesome! I'm happy. Find me on Mastodon and let me know :)

If you want me to help you with something: No. I wrote this to save myself time, and because it was fun to figure out an annoying problem. Go and read this instead ;-)

About

Wireguard connect script for UniFi OS devices with config file autoselect

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages