Skip to content

Server Installation

The universal installer handles everything:

Terminal window
curl -fsSLO https://raw.githubusercontent.com/PDG-Global/rvpn-core/v1.3.9/scripts/install.sh
less install.sh # read it before you run it
sudo bash install.sh --setup --server

BinaryPlatform
rvpn-server-x86_64-linux-gnuLinux x86_64 (glibc, most VPS)
rvpn-server-aarch64-linux-gnuLinux ARM64 (glibc)
rvpn-server-armv7-linuxLinux ARMv7 (Raspberry Pi etc.)
rvpn-server-x86_64-linux-staticLinux x86_64 (static/musl)
rvpn-server-aarch64-linux-staticLinux ARM64 (static/musl)
rvpn-server-x86_64-freebsdFreeBSD x86_64
rvpn-server-macos-universalmacOS Universal (arm64 + x86_64)

If you’re unsure which to use on Linux, start with x86_64-linux-gnu. Use the -static variant if you encounter glibc version errors.


Terminal window
curl -LO https://assets.rvpn.org/1.3.4/rvpn-server-x86_64-linux-gnu
curl -LO https://assets.rvpn.org/1.3.4/rvpn-server-x86_64-linux-gnu.sha256
sha256sum -c rvpn-server-x86_64-linux-gnu.sha256
chmod +x rvpn-server-x86_64-linux-gnu
sudo mv rvpn-server-x86_64-linux-gnu /usr/local/bin/rvpn-server
Terminal window
fetch https://assets.rvpn.org/1.3.4/rvpn-server-x86_64-freebsd
chmod +x rvpn-server-x86_64-freebsd
sudo mv rvpn-server-x86_64-freebsd /usr/local/bin/rvpn-server
Terminal window
curl -LO https://assets.rvpn.org/1.3.4/rvpn-server-macos-universal
chmod +x rvpn-server-macos-universal
sudo mv rvpn-server-macos-universal /usr/local/bin/rvpn-server
xattr -d com.apple.quarantine /usr/local/bin/rvpn-server

Security note: Official macOS binaries are signed by PDG Global Limited. If you download a binary from another source that is not signed by us, do not use it.


rVPN listens on port 443 by default:

Terminal window
# UFW
sudo ufw allow 443/tcp
# iptables
sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT

Required for TUN full-tunnel mode:

Terminal window
echo "net.ipv4.ip_forward = 1" | sudo tee -a /etc/sysctl.conf
sudo sysctl -p

The server manages TUN containment and optional NAT at startup using the normalized network from [server.tun].tun_ip. Do not add broad forwarding accepts or standalone NAT rules. nat_enabled = false skips NAT but never skips containment. Missing tools or firewall setup failures prevent startup.

Enable forwarding and install iptables plus ip6tables. The server reconciles only its RVPN_* chains, inserts TUN-specific jumps ahead of broad accepts, and never flushes global rules or changes chain policies.

Enable forwarding and PF. Add both attachment points to the main PF configuration before broad pass quick rules, then have the operator validate/load that main configuration:

nat-anchor "rvpn"
anchor "rvpn"

The installer and server do not alter or reload the main ruleset. The server validates and loads only /usr/local/etc/rvpn/rvpn.anchor.conf with pfctl -a rvpn; missing anchors, disabled PF/forwarding, and syntax/load errors stop TUN startup. Keep SSH rules unchanged and verify a fresh SSH connection after any operator-initiated main PF reload.

macOS does not support server-side NAT for VPN tunnels. For macOS servers, use SOCKS5 mode or run rvpn-server inside a Linux VM.