How to choose, use and configure a VPN in TurnKey Linux (Tutorial)

TurnKey Linux is a Debian‐based appliance library tailored for server‐side roles, not a general‐purpose desktop distro. It uses the APT package manager (apt-get under the hood), is optimised for headless and containerised deployments, and by default you’ll interact via SSH. Desktop environments aren’t installed out of the box (though you can add lightweight options such as LXDE or Xfce), so any VPN solution must support fully scripted or CLI-only workflows, integrate cleanly with systemd, and require minimal extra libraries.

For that reason, the best VPN providers for TurnKey Linux are those offering:

  • Native Debian/Ubuntu APT repositories or easy .deb packaging
  • Dedicated CLI clients or straightforward WireGuard/OpenVPN profiles
  • Systemd service definitions or wg-quick scripts
  • Strong documentation for headless servers

Of all options out there, three stand out on TurnKey:

  • ProtonVPN – Official APT repo, robust CLI tool, WireGuard support, systemd integration.
  • NordVPN – Solid Debian package, easy nordvpn CLI, auto‐connect kill-switch via systemd.
  • Mullvad – Offers both OpenVPN config files and a dedicated Debian package for its CLI tool, plus WireGuard profiles.

Comparison Table

VPN Provider Protocols Package Manager CLI Tool Systemd Support
ProtonVPN WireGuard, OpenVPN APT repository protonvpn-cli Yes (service files)
NordVPN NordLynx (WireGuard), OpenVPN Official .deb nordvpn Yes (auto-connect killswitch)
Mullvad WireGuard, OpenVPN APT (.deb) mullvad Yes (wg-quick service)

Installing and Configuring ProtonVPN

ProtonVPN’s CLI is distributed via its own APT repository and supports both OpenVPN and WireGuard. Below are the steps for a TurnKey Linux server (Debian-based).

  1. Add the official ProtonVPN repository:
  2. wget -q -O - https://repo.protonvpn.com/debian/public_key.asc  apt-key add -
    echo deb https://repo.protonvpn.com/debian unstable main > /etc/apt/sources.list.d/protonvpn.list
    apt-get update
        
  3. Install the CLI tool:
  4. apt-get install protonvpn-cli
        
  5. Initialize ProtonVPN (interactive):
  6. protonvpn-cli init
    # Enter your ProtonVPN credentials and choose default settings
        
  7. Connect via WireGuard (fastest):
  8. protonvpn-cli connect --fastest --protocol wireguard
        
  9. Enable auto-connect on boot:
  10. systemctl enable protonvpn.service
        

Installing and Configuring NordVPN

NordVPN offers a dedicated Debian package and its nordvpn CLI integrates seamlessly with systemd for auto-connect and killswitch features.

  1. Download and install the repository package:
  2. apt-get install -y apt-transport-https ca-certificates curl
    curl -s https://repo.nordvpn.com/gpg/nordvpn_public.asc  apt-key add -
    echo deb https://repo.nordvpn.com/deb/nordvpn/debian stable main > /etc/apt/sources.list.d/nordvpn.list
    apt-get update
        
  3. Install the NordVPN client:
  4. apt-get install nordvpn
        
  5. Login and set defaults:
  6. nordvpn login
    nordvpn set autoconnect on
    nordvpn set killswitch on
        
  7. Connect to the nearest server:
  8. nordvpn connect
        
  9. Check status:
  10. nordvpn status
        

Installing and Configuring Mullvad

Mullvad provides both a CLI package and ready-made WireGuard configuration files for headless setups.

  1. Install dependencies and the Mullvad package:
  2. apt-get update
    apt-get install -y lsb-release gnupg curl
    curl -fsSL https://mullvad.net/media/misc/MULLVAD-GPG-KEY  apt-key add -
    echo deb https://mullvad.net/download/deb/ (lsb_release -cs) main > /etc/apt/sources.list.d/mullvad.list
    apt-get update
    apt-get install mullvad-cli
        
  3. Login with your account number:
  4. mullvad account login your-account-number
        
  5. Connect over WireGuard:
  6. mullvad tunnel wireguard create
    mullvad relay set wireguard best
    mullvad tunnel wireguard up
        
  7. Enable auto-start on boot:
  8. systemctl enable mullvad-daemon
        

All three providers above integrate cleanly with TurnKey Linux’s Debian base, rely on APT or .deb packaging, and offer CLI or service files. Choose ProtonVPN for seamless systemd services, NordVPN for the polished nordvpn tool and network killswitch, or Mullvad if you prefer full control via WireGuard config. In each case, you maintain lightweight, headless operation perfect for TurnKey’s appliance-style deployments.

Download TXT



Leave a Reply

Your email address will not be published. Required fields are marked *