topscoder / nordvpn-udm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NordVPN on Unifi Dream Machine (Pro)

Foreword

This repo is forked from SierraSoftworks/tailscale-udm which allows to use a Tailscale instance on your UDM / UDM Pro. What's cool also is his approach persists even after a reboot of your UDM.

What is this?

This repo contains the scripts necessary to setup a NordVPN connection on your Unifi Dream Machine (UDM / UDM Pro). It does so by piggy-backing on the excellent boostchicken/udm-utilities to provide a persistent service and runs using the OpenVPN service.

Instructions

Prerequisites

  • You need to be able to connect to your UDM / UDM Pro via SSH in order to run this installer.
    • Go to UDM Home
    • Click "Settings"
    • Click "System"
    • Scroll Down to the bottom of the list
    • Click select "SSH", agree to the license
    • Set a password
  • You need an OpenVPN configuration file (.ovpn) from NordVPN.
    You can do so by downloading a configuration file at the NordVPN Server Tools page.

Install NordVPN

  1. Connect to your UDM using SSH

    ssh root@<INTERNAL_IP_OF_UDM>
  2. Follow the steps to install the boostchicken on-boot-script here.

  3. Run the installer script to install nordvpn and the startup script on your UDM.

    curl -sSL https://raw.githubusercontent.com/topscoder/nordvpn-udm/main/installer.sh | sh
  4. Follow the on-screen steps to configure nordvpn and connect it to your network.

  5. How to run on boot

    https://github.com/peacey/split-vpn#how-do-i-run-this-at-boot

Advanced configuration(s)

You want to be in full control of your network packets, bits and bytes? Sure you can. Find the split-vpn config file at on_boot.d/10-nordvpn.conf to go crazy ;-)

Contributing

There are clearly lots of folks who are interested in running an OpenVPN connection on their Unifi gear. If you're one of those people and have an idea for how this can be improved, please create a PR and we'll be more than happy to incorporate the changes.

About


Languages

Language:Shell 100.0%