# hwdsl2/docker-ipsec-vpn-server

Docker image to run an IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2. Auto-generates server config and supports VPN client setup on Linux, Windows, macOS, iOS and Android.

Repository: https://github.com/hwdsl2/docker-ipsec-vpn-server
Canonical: https://ross.abutalabs.com/products/docker-ipsec-vpn-server
Homepage: https://hub.docker.com/r/hwdsl2/ipsec-vpn-server
Language: Shell
License: NOASSERTION
License Family: other
Topics: docker, ipsec, l2tp, vpn, vpn-server, network, security, docker-image, ikev2, vpn-client, encryption, libreswan, cisco-ipsec, linux, docker-compose, self-hosted, raspberry-pi, strongswan, privacy
Last push: 2026-08-26T07:14:29+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 3758, "days_push": 7, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7123, forks 1467 (observed 2026-08-28T04:09:56.037254+00:00)

## What it is
A Docker image that runs a self-hosted IPsec VPN server supporting IPsec/L2TP, Cisco IPsec, and IKEv2, built on Libreswan and xl2tpd. It auto-generates server credentials and IKEv2 configuration, and provides VPN client profiles for Windows, macOS, iOS, Android, Chrome OS, and Linux.

## Use cases
- set up a personal IPsec VPN server with docker
- run an IKEv2 VPN server in a container
- encrypt traffic on public wifi with a self-hosted VPN
- auto-configure VPN clients on iOS, macOS and Android
- host a VPN server on a Raspberry Pi
- manage IKEv2 users and certificates for a VPN

## When to choose
- you want a self-hosted VPN server deployable with a single docker run command
- you need native IPsec/IKEv2 support without installing client software on most devices
- you want automatic credential and client profile generation
- you need multi-arch images including ARM for Raspberry Pi

## When to avoid
- you prefer WireGuard or OpenVPN instead of IPsec protocols
- your host or network blocks UDP ports 500 and 4500
- you need a managed VPN service rather than self-hosting
- you cannot run Docker containers in privileged mode

## Facets
- artifact type: service
- maturity: active
- function: vpn, security, cryptography, self-hosted, networking
- domain: privacy, security, networking, self-hosted, censorship-circumvention
- platform: self-hosted, cross-platform
- tags: ipsec, ikev2, l2tp, libreswan, strongswan, docker-image, vpn-server, raspberry-pi, encryption, docker, linux

## Member repositories
- hwdsl2/docker-ipsec-vpn-server (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:56.037254+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:40:05.105722+00:00, confidence not recorded.
  - readme: https://github.com/hwdsl2/docker-ipsec-vpn-server (fetched 2026-08-28T04:09:56.037254+00:00, sha 06f8a45da48c)
  - homepage: https://hub.docker.com/r/hwdsl2/ipsec-vpn-server (fetched 2026-08-29T08:35:39.113725+00:00, sha ead299ded547)
  - site_page: https://docs.docker.com/docker-hub (fetched 2026-08-29T08:35:39.116803+00:00, sha caaa18892709)
  - site_page: https://docs.docker.com/desktop/setup/install/mac-install (fetched 2026-08-29T08:35:39.118480+00:00, sha 7486b832be30)
  - site_page: https://www.docker.com/docs (fetched 2026-08-29T08:35:39.120177+00:00, sha aeada2272712)
  - site_page: https://www.docker.com/company (fetched 2026-08-29T08:35:39.121947+00:00, sha 05ab59b2bc29)
- Data as of 2026-08-30T08:39:29.467469+00:00.
