11/12 free views
Tool
Other
Network Security

docker-ipsec-vpn-server

by hwdsl2

6.9Kstars
1.4Kforks
120watchers
Updated 8 months ago
About

A lightweight Docker image to deploy a secure IPsec VPN server supporting IPsec/L2TP, Cisco IPsec, and IKEv2 protocols.

Docker image to run an IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2

Primary Use Case

This tool enables users to quickly set up a VPN server in a Docker container to encrypt network traffic and secure connections over untrusted networks such as public Wi-Fi. It is ideal for system administrators or privacy-conscious users who want to establish their own VPN infrastructure without complex manual setup. The VPN supports multiple client platforms including Windows, macOS, iOS, Android, Chrome OS, and Linux.

Key Features
  • Supports IKEv2 with strong and fast ciphers like AES-GCM
  • Supports IPsec/L2TP and Cisco IPsec protocols
  • Generates VPN profiles for automatic configuration on iOS, macOS, and Android
  • Compatible with Windows, macOS, iOS, Android, Chrome OS, and Linux clients
  • Includes helper scripts to manage IKEv2 users and certificates
  • Available as a lightweight Alpine-based Docker image (~18 MB) and a Debian-based image (~62 MB)
  • Supports multiple CPU architectures: linux/amd64, linux/arm64, linux/arm/v7

Installation

  • Install Docker on your Linux server following official Docker documentation
  • Optionally, install Podman and create an alias for docker if preferred
  • Pull the trusted Docker image from Docker Hub: docker pull hwdsl2/ipsec-vpn-server
  • Alternatively, pull from Quay.io and tag the image accordingly
  • Run the container with the provided docker run command to start the VPN server

Usage

>_ docker run \ --name ipsec-vpn-server \ --restart=always \ -v ikev2-vpn-data:/etc/ipsec.d \ -v /lib/modules:/lib/modules:ro \ -p 500:500/udp \ -p 4500:4500/udp \ -d --privileged \ hwdsl2/ipsec-vpn-server

Starts the IPsec VPN server container with persistent storage, required ports exposed, and necessary privileges.

>_ docker pull hwdsl2/ipsec-vpn-server

Downloads the latest official IPsec VPN server Docker image from Docker Hub.

>_ docker pull quay.io/hwdsl2/ipsec-vpn-server

Downloads the IPsec VPN server image from Quay.io as an alternative registry.

>_ docker image tag quay.io/hwdsl2/ipsec-vpn-server hwdsl2/ipsec-vpn-server

Tags the Quay.io image with the Docker Hub image name for consistency.

>_ docker restart ipsec-vpn-server

Restarts the VPN server container, sometimes required on macOS before using IPsec/L2TP mode.

Security Frameworks
Defense Evasion
Credential Access
Initial Access
Collection
Command and Control
Usage Insights
  • Deploy as a secure VPN gateway to protect remote access and reduce attack surface.
  • Integrate with centralized certificate management for scalable user authentication.
  • Use in purple team exercises to simulate secure channel establishment and test detection of encrypted tunnels.
  • Combine with network monitoring tools to detect anomalous VPN usage patterns.
  • Leverage Docker containerization for rapid deployment and consistent environment setup across teams.

Docs Take 2 Hours. AI Takes 10 Seconds.

Ask anything about docker-ipsec-vpn-server. Installation? Config? Troubleshooting? Get answers trained on real docs and GitHub issues—not generic ChatGPT fluff.

3 free chats per tool • Instant responses • No credit card

Security Profile
Red Team40%
Blue Team90%
Purple Team70%
Details
LicenseOther
LanguageShell
Open Issues447
Topics
docker
ipsec
l2tp
vpn
vpn-server
network
security
docker-image
ikev2
vpn-client