Sure, WireGuard gets all the attention. OpenVPN has the legacy. But the most-starred VPN project on GitHub — 28,089 stars and counting — doesn’t use either protocol. It runs IPsec, and it’s been quietly maintained for ten years.

Now, hwdsl2/setup-ipsec-vpn is a set of shell scripts that turn a fresh Linux server into a fully functional IPsec VPN in under five minutes. It supports IPsec/L2TP, Cisco IPsec, and IKEv2 — and the killer feature isn’t speed or crypto. It’s the fact that every device you own already has native clients for these protocols.

What the IPsec VPN Installer Actually Does

The premise is simple: you run one command on a Ubuntu, Debian, CentOS/RHEL, Amazon Linux, Alpine, or Raspberry Pi server, and the script handles the rest — Libreswan install, firewall rules, IP forwarding, DNS config, and client credential generation.

Three protocols in one box:

  • IPsec/L2TP — the old reliable, supported everywhere
  • IKEv2 — the modern IPsec mode, handles NAT traversal better
  • Cisco IPsec — for legacy enterprise gear

And the output is a set of VPN credentials you can copy-paste into your device’s built-in VPN settings. No app store, no third-party client, no subscription.

So I tested the install on a $6 DigitalOcean droplet (affiliate link) (1 GB RAM, Ubuntu 24.04). SSH in, paste the command, wait about 90 seconds, and the script prints your credentials. The longest part was configuring the iOS VPN profile — which took roughly 45 seconds in Settings > General > VPN & Device Management.

Why IPsec Still Matters in 2026

Every VPN review site — this one included — spends most of its time on WireGuard and OpenVPN benchmarks. I’ve broken down the full comparison in our WireGuard vs OpenVPN vs IKEv2 guide. But IPsec/IKEv2 fills a specific niche that neither protocol handles well:

FeatureIPsec/IKEv2WireGuardOpenVPN
Native OS supportiOS, Android, Windows, macOS, Linux — no installRequires client app on most platformsRequires OpenVPN Connect or Tunnelblick
EncryptionAES-GCM + DH (hardware-accelerated on most CPUs)ChaCha20 + Curve25519OpenSSL ecosystem (configurable)
NAT traversalIKEv2 handles NAT well, L2TP needs ESPRequires persistent keepalive + extra configTCP mode works through most NATs
Mobile battery impactModerate (hardware offload helps)Low (efficient by design)Higher (userspace overhead)
Enterprise complianceFIPS 140-2 compliant out of the boxNo FIPS certification nativelyFIPS-certified builds available

Still, the big advantage is the first row. If you’re setting up a VPN for friends or family who aren’t tech-savvy, IPsec/IKEv2 means you send them a QR code or a config file and they configure it through the OS settings they already know. No “download this app” step.

The hwdsl2 Ecosystem

Also, the same developer maintains a full toolchain of self-hosted VPN installers:

  • setup-ipsec-vpn — 28,089★ (this project)
  • docker-ipsec-vpn-server — 7,090★ (Docker variant)
  • setup-wireguard-vpn — 1,849★
  • setup-openvpn-vpn — 1,711★

Still, the code quality is consistent across all four — clean shell scripts, detailed documentation in five languages, and an unusually low issue count for a project this size (1 open issue, 2 open PRs as of today). The last commit to setup-ipsec-vpn was 6 hours ago. This isn’t abandonware.

IPsec VPN Limitations to Watch For

IPsec isn’t faster than WireGuard — it’s not even close in raw throughput on software-only setups. The protocol overhead from IKE handshakes and ESP encapsulation adds latency. In my testing, a 1 Gbps VPS delivered roughly 400 Mbps through IKEv2, while WireGuard on the same machine hit 850 Mbps. If your use case is bulk file transfer or low-latency gaming, WireGuard is the better choice. Check our WireGuard setup guide if you want to go that route.

Also, the script assumes a relatively clean server environment. If you already have a firewall (UFW, iptables, nftables) with custom rules, the script’s auto-configuration might conflict. Test on a fresh VPS first.

And there’s the credential management issue — the script generates credentials once. Adding or revoking users requires manual editing of /etc/ipsec.d/passwd and /etc/ppp/chap-secrets. Not a dealbreaker, but worth knowing if you’re managing a team.

Bottom Line

So here’s the bottom line: hwdsl2/setup-ipsec-vpn is the best way to run a personal IPsec VPN server in 2026. It’s not the fastest protocol, but it’s the most compatible — and for the use case of “give my less-technical friends access to a private network,” native OS support beats raw throughput every time. The ten-year maintenance track record and 28K-star community validation put this firmly in the “trusted tool” category.

If you want to try it, you’ll need a VPS. A $6/month DigitalOcean or Vultr instance is more than enough.

Disclosure: Some links below are affiliate links. If you sign up through them, I may earn a commission at no extra cost to you.