DSVPN is a small TCP VPN using a shared secret key when only TCP ports stay open. One-line client and server commands run on Linux, macOS, and BSD systems.
Overview
DSVPN is a dead simple VPN for the common case of tunneling traffic through restrictive networks. It uses TCP instead of UDP so it can work on public Wi-Fi where only TCP is reliable, including port 443 by default.
Cryptography relies on formally verified modern primitives with a small codebase and no heap allocations at runtime. You generate a shared secret key file, copy it to server and client, and run server and client commands with optional interface and tunnel IP parameters.
Supported platforms include Linux kernel 3.17 or newer, macOS, OpenBSD, and client or point-to-point modes on DragonFly BSD, FreeBSD, and NetBSD. The client blocks IPv6 to limit leaks and maintains state across reconnects on stable networks.
It was motivated by needing TCP-friendly VPNs where WireGuard over TCP or heavy OpenVPN setups were impractical. DNS caveats apply when switching resolvers.
Key features
- TCP-only VPN tunnel
- Shared-secret key authentication
- Single-command server and client
- Small constant memory footprint
- Blocks IPv6 on clients
- Linux, macOS, and BSD support
Use cases
- VPN where only TCP/443 is open
- Minimal personal point-to-point links
- Low-footprint VPN on small devices