Run VpnHood! SERVER without root
Without root, you can still install the server on Linux under your own user account, with one command. It starts at boot and updates itself, with the few limits below.
What works differently
- Apps always use Cloak Mode, which costs a little speed and battery, as the server's VPN adapter needs root.
- The server cannot use port
443, which networks rarely block: Linux lets only root use ports below 1024. It uses8443unless you choose another. - It changes none of the operating system settings an installed server sets.
Before you start
- A machine with a public IP address, running Linux on x64 or arm64. System requirements lists the systems it runs on.
- ICU (libicu), a library the server needs. Nearly every system has it, but only root can install it.
- TCP port
8443, or another above 1023 that you choose, open both in the machine's firewall and in your hosting provider's. Only root can change the machine's firewall.
Install the server
Run this command as yourself, without sudo. It detects whether the machine is x64 or arm64, installs the server into ~/VpnHoodServer, and starts it.
bash -c 'u=https://github.com/vpnhood/VpnHood.App.Server/releases/latest/download/VpnHoodServer-linux-noroot.sh; bash <(wget -qO- $u 2>/dev/null || curl -fsSL $u)'To install it in a script, without the installer's questions, see Installer options.
Create an access key
Create a key with this command. It works as on a server installed by root: Create your first access key says where the key is printed and how to limit it.
~/VpnHoodServer/vhserver genHostEndPoints: should show your server's public IP address and its port. Then install VpnHood! CLIENT on each device, add the key, and connect.
Stop, update and uninstall
To stop the server, run this. It starts again when the machine restarts, or when you run the install command again.
~/VpnHoodServer/vhserver stopIts log is in ~/VpnHoodServer/storage/logs/server.log.
Unless you turned it off at install, the server updates itself to each new release. To update it now, run this.
~/VpnHoodServer/vhupdateTo remove the server, run its uninstaller. It stops the server and removes its files, but keeps its settings and access keys in ~/VpnHoodServer/storage for a later install.
~/VpnHoodServer/vhuninstallRun this instead to delete its settings and keys too: devices that hold its keys can no longer connect
~/VpnHoodServer/vhuninstall -purge