hwdsl2/setup-ipsec-vpn
Set up your own IPsec VPN server in just a few minutes, with IPsec/L2TP, Cisco IPsec and IKEv2. Supports Ubuntu, Debian, CentOS/RHEL, Alpine Linux and Raspberry Pi OS. Includes client config and management scripts.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
English | 简体中文 | 繁體中文 | 日本語 | Русский [](https://github.com/hwdsl2/setup-ipsec-vpn/actions/workflows/main.yml) [](https://github.com/hwdsl2/setup-ipsec-vpn/stargazers) [](https://github.com/hwdsl2/docker-ipsec-vpn-server) [](https://github.com/hwdsl2/docker-ipsec-vpn-server) Set up your own IPsec VPN server in just a few minutes, with IPsec/L2TP, Cisco IPsec and IKEv2. An IPsec VPN encrypts your network traffic, so that nobody between you and the VPN server can eavesdrop on your data as it travels via the Internet. This is especially useful when using unsecured networks, e.g. at coffee shops, airports or hotel rooms. We will use Libreswan as the IPsec server, and xl2tpd as the L2TP provider. Features: Also available: Start with a Linux server\ running a supported operating system. Use this one-liner to set up an IPsec VPN server: Your VPN login details will be randomly generated, and displayed when finished. Tip: Optionally install WireGuard, OpenVPN and/or Headscale on the same server. See the script in action (terminal recording). Note: This recording is for demo purposes only. VPN…
Read the full README ↗ · Preview checked 2026-10-31T15:45:21.932Z
Inside the original README — Document outline
- IPsec VPN Server Auto Setup Scripts
- Quick start
- Community
- Requirements
- Installation
- Customize VPN options
- Use alternative DNS servers
- Customize IKEv2 options
- Next steps
- Important notes
- Upgrade Libreswan
- Manage VPN users
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: Other. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
Set up your own IPsec VPN server in just a few minutes, with IPsec/L2TP, Cisco IPsec and IKEv2. Supports Ubuntu, Debian, CentOS/RHEL, Alpine Linux and Raspberry Pi OS. Includes client config and management scripts.
Repository facts
- Owner
- hwdsl2
- Primary language
- Shell
- Stars
- 28,924
- Forks
- 6,524
- Open issues + pull requests
- 1
- License
- Other
- Archived
- No
- Default branch
- master
- Created
- 2016-01-07T16:44:12.000Z
- Last push
- 2026-10-29T05:56:26.000Z
Topics and intended use
Owner-supplied topics: alpine-linux, bash, cisco-ipsec, debian, encryption, ikev2, installer, ipsec, l2tp, libreswan, linux, network, privacy, raspberry-pi, security, self-hosted, ubuntu, vpn, vpn-client, vpn-server
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-11-01T12:20:37.856Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.