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.

Open original source ↗

From the publisher

README & documentation

Source preview

Read 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…

hwdsl2/setup-ipsec-vpn on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-10-31T15:45:21.932Z

Inside the original README — Document outline
  1. IPsec VPN Server Auto Setup Scripts
  2. Quick start
  3. Community
  4. Requirements
  5. Installation
  6. Customize VPN options
  7. Use alternative DNS servers
  8. Customize IKEv2 options
  9. Next steps
  10. Important notes
  11. Upgrade Libreswan
  12. 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.

README and project files

Issues and maintenance discussion

Releases and changelog

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.

Open original source

Related repositories

obra/superpowers

mattpocock/skills

ohmyzsh/ohmyzsh

msitarzewski/agency-agents

nvm-sh/nvm

omacom/omarchy