Connecting via Router VPN (Linux)
Follow this guide to connect your Linux device to your Router VPN in order to access your StartOS server and installed services.
Prerequisites
Contents
WireGuard
-
Install
wireguardandwireguard-tools.-
Debian / Ubuntu
sudo apt update && sudo apt install wireguard -
Fedora / RHEL
sudo dnf update && sudo dnf install wireguard-tools -
Arch / Manjaro
sudo pacman -Syu && sudo pacman -S wireguard-tools && sudo pacman -S wireguard
-
-
Download your WireGuard configuration file from your router (or take note of the profile details).
-
Move into the directory where you downloaded your Root CA (usually
~/Downloads), for example:cd ~/Downloads -
Copy the contents of your WireGuard configuration file into
/etc/wireguard/wg0.conf(or enter them from your notes)sudo mv myconf.conf /etc/wireguard/wg0.confBe certain to replace
myconf.confwith the name of the file you downloaded. -
Set the permissions on the configuration file correctly:
sudo chmod 600 /etc/wireguard/wg0.conf -
Bring the interface up using
wp-quick, which will create the interface and necessary routing rules for you the first time you use it.sudo wg-quick up wg0 -
Verifiy that a this worked by examining the output of:
sudo wg -
Enable WireGuard on Boot (optional) - this would connect you each time you boot
sudo systemctl enable wg-quick@wg0
OpenVPN
-
Install
openvpn.-
Debian / Ubuntu
sudo apt update && sudo apt install openvpn -
Fedora / RHEL
sudo dnf update && sudo dnf install openvpn -
Arch / Manjaro
sudo pacman -Syu && sudo pacman -S openvpn
-
-
Move into the directory where you downloaded your Root CA (usually
~/Downloads), for example:cd ~/Downloads -
Copy the contents of your OpenVPN configuration file into
/etc/openvpn/client.conf(or enter them from your notes)sudo mv myconf.ovpn /etc/openvpn/client.confBe certain to replace
myconf.ovpnwith the name of the file you downloaded. -
Set the permissions on the configuration file correctly:
sudo chmod 600 /etc/openvpn/client.conf -
Start OpenVPN and load the config file, entering your username and password when requested.
sudo systemctl start openvpn@client -
Verifiy that a this worked by examining the output of:
sudo systemctl status openvpn@client -
Enable OpenVPN on Boot (optional) - this would connect you each time you boot
sudo systemctl enable openvpn@client