rohamrajabzadeh/raspberry-vpn
Networking & CommunicationTurns a Raspberry Pi into a WiFi access point that routes all client traffic through a VPN, with a web panel.
What it does
Resberry VPN turns a Raspberry Pi (or another 64-bit machine with an access-point-capable WiFi card) into a WiFi gateway whose wireless clients are tunnelled through a VPN. This is aimed at devices that cannot run a VPN client themselves — smart TVs, consoles, e-readers and guest phones. Clients join the gateway's WiFi, and all their traffic goes through the selected VPN server.
It accepts subscription URLs and single share links for VLESS, VMess, Trojan, Shadowsocks, Hysteria2, TUIC and SOCKS5, over TCP, WebSocket, gRPC, HTTPUpgrade or XHTTP, with TLS or REALITY. Servers can be switched without dropping the WiFi, Auto mode follows the fastest server, delay tests rank candidates, and Double VPN chains an entry and an exit server. A kill switch is active from boot: if the tunnel drops, WiFi client traffic is dropped rather than leaking. DNS is answered by the gateway and resolved through the tunnel via DoT or DoH, with optional per-domain rules.
Under the hood one Go binary, resberryd, serves the web panel and supervises two engines: sing-box provides the TUN device, DNS and route selection, while Xray handles XHTTP transport servers. Only WiFi-client traffic is policy-routed into the tunnel; the device's own traffic (panel, SSH, updates) stays direct. See the architecture notes for detail.
Quick start
Preparation: a Pi 3B+ / 4 / 5 (or 64-bit PC with AP-mode WiFi) running Raspberry Pi OS 64-bit, Ubuntu Server or Debian, a wired Ethernet uplink to your router, and a VPN subscription or server link to add later. The WiFi radio becomes the access point, so the uplink must be wired.
Run the installer on the device:
curl -fsSL https://raw.githubusercontent.com/rohamrajabzadeh/raspberry-vpn/main/install.sh | sudo bash
The installer asks for a WiFi name and panel username (Enter for defaults), generates passwords, and prints the panel URL, credentials, WiFi SSID and WiFi password. Open the panel, add a subscription or link on the Servers page, press Connect, then join the WiFi.
Unattended install with options passed after bash -s --:
curl -fsSL https://raw.githubusercontent.com/rohamrajabzadeh/raspberry-vpn/main/install.sh \
| sudo bash -s -- --yes --ssid "Living room" --country DE --band 5 --tls
Relevant options include --ssid, --country, --band 2.4|5, --channel, --admin-user, --port, --tls, --ap-interface, --ap-address, --version and --reconfigure. Passwords can be supplied via the RESBERRY_ADMIN_PASS and RESBERRY_WIFI_PASS environment variables so they do not appear in the command line. Re-running the same command upgrades; sudo resberryd reset-password --password-stdin resets the panel password; sudo resberry-uninstall restores the changes (add --purge to delete data).
What the installer changes
Run as root, the installer installs hostapd, dnsmasq, nftables and iw; downloads resberryd from the project's release and sing-box and Xray from their own releases, verifying SHA-256 of each before placing them in /usr/local/bin; takes over the WiFi interface for the access point; picks a non-conflicting private subnet; and adds systemd units, a dnsmasq DHCP snippet and a hostapd drop-in. It records changes in /var/lib/resberry/install-state. It refuses to run if the machine reaches the internet over WiFi, if the SSH session arrives over the interface it would take over, or if no radio supports AP mode.
Constraints and limits
- The gateway's panel is plain HTTP unless installed with
--tls; on a shared network, use TLS. - Anyone with the WiFi password can reach the panel login page, so use a long WiFi passphrase.
- IPv6 is not tunnelled: the gateway hands out IPv4 only and drops forwarded IPv6.
- Engines are pinned to tested versions (sing-box 1.12.9, Xray 24.12.31), not the latest.
- Tested on a Raspberry Pi 4 with Ubuntu Server 22.04; the README notes roughly 100 Mbit/s through a tunnel on Pi 4, with built-in WiFi usually the tighter limit. Raspberry Pi OS, Debian and amd64 paths have seen less real-world use.
- Double VPN reduces speed, and commercial proxy exits may block banking and payment sites by policy.
- sing-box is GPL-3.0 and Xray is MPL-2.0; both are downloaded separately by the installer and keep their own licenses. This project itself is MIT.
HotRepo's take
The repository appears in HotRepo's new-project list for 2026-12-01 with 110 stars gained in roughly 2.5 hours (110 stars, 1 fork at the recorded snapshot), but it has no recorded GitHub daily rank. That is a single short window, not enough to read a trend. Technically the interesting part is scope: instead of a general proxy client, the project targets the gateway role — AP mode, per-client policy routing, boot-time kill switch, DNS through the tunnel, and two engines combined to cover transports sing-box lacks. The trade-off is equally concrete: it takes over a WiFi interface on a small machine, and performance is bounded by that machine and its radio.
Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.
You might also like
- mlmvpn/mlmvpn_androidMulti-engine Android VPN client with Xray, WARP, Tor, Psiphon and Cloudflare panels, plus a serverless messenger.
- confeden/AntigravityLets a Google account from a blocked region use Antigravity coding tools without a VPN or region change.
- amnezia-vpn/amnezia-clientAn open-source VPN client that can also deploy its own server on a VPS you control.
- armanlife/firefox-vpn-clientTurns free Firefox Account data allowances into a VPN client for Android, Windows, macOS and Linux.
- throneproj/ThroneA cross-platform Qt desktop proxy client built on sing-box for managing profiles, subscriptions, and traffic routing.