Server Installation
Quick Install
Section titled “Quick Install”The universal installer handles everything:
curl -fsSLO https://raw.githubusercontent.com/PDG-Global/rvpn-core/v1.3.9/scripts/install.shless install.sh # read it before you run itsudo bash install.sh --setup --serverAvailable Binaries
Section titled “Available Binaries”| Binary | Platform |
|---|---|
rvpn-server-x86_64-linux-gnu | Linux x86_64 (glibc, most VPS) |
rvpn-server-aarch64-linux-gnu | Linux ARM64 (glibc) |
rvpn-server-armv7-linux | Linux ARMv7 (Raspberry Pi etc.) |
rvpn-server-x86_64-linux-static | Linux x86_64 (static/musl) |
rvpn-server-aarch64-linux-static | Linux ARM64 (static/musl) |
rvpn-server-x86_64-freebsd | FreeBSD x86_64 |
rvpn-server-macos-universal | macOS 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.
Manual Install
Section titled “Manual Install”Linux (x86_64)
Section titled “Linux (x86_64)”curl -LO https://assets.rvpn.org/1.3.4/rvpn-server-x86_64-linux-gnucurl -LO https://assets.rvpn.org/1.3.4/rvpn-server-x86_64-linux-gnu.sha256sha256sum -c rvpn-server-x86_64-linux-gnu.sha256chmod +x rvpn-server-x86_64-linux-gnusudo mv rvpn-server-x86_64-linux-gnu /usr/local/bin/rvpn-serverFreeBSD
Section titled “FreeBSD”fetch https://assets.rvpn.org/1.3.4/rvpn-server-x86_64-freebsdchmod +x rvpn-server-x86_64-freebsdsudo mv rvpn-server-x86_64-freebsd /usr/local/bin/rvpn-servercurl -LO https://assets.rvpn.org/1.3.4/rvpn-server-macos-universalchmod +x rvpn-server-macos-universalsudo mv rvpn-server-macos-universal /usr/local/bin/rvpn-serverxattr -d com.apple.quarantine /usr/local/bin/rvpn-serverSecurity 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.
System Requirements
Section titled “System Requirements”Port Access
Section titled “Port Access”rVPN listens on port 443 by default:
# UFWsudo ufw allow 443/tcp
# iptablessudo iptables -A INPUT -p tcp --dport 443 -j ACCEPTIP Forwarding
Section titled “IP Forwarding”Required for TUN full-tunnel mode:
echo "net.ipv4.ip_forward = 1" | sudo tee -a /etc/sysctl.confsudo sysctl -pEgress Containment and NAT (TUN Mode)
Section titled “Egress Containment and NAT (TUN Mode)”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.
FreeBSD
Section titled “FreeBSD”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.