Skip to content

Instantly share code, notes, and snippets.

@YokiToki
Created September 8, 2023 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YokiToki/4923c5ba0155f1359030c9fcea9473b3 to your computer and use it in GitHub Desktop.
Save YokiToki/4923c5ba0155f1359030c9fcea9473b3 to your computer and use it in GitHub Desktop.
L2TP Docker
VPN_IPSEC_PSK=secret
VPN_USER=user
VPN_PASSWORD=pass
VPN_ADDL_USERS=user2 user3
VPN_ADDL_PASSWORDS=pass2 pass3
version: '3'
services:
vpn:
image: hwdsl2/ipsec-vpn-server:latest
ports:
- "500:500/udp"
- "4500:4500/udp"
restart: always
privileged: true
env_file:
- ./.env
logging:
driver: "json-file"
options:
max-size: "3m"
max-file: "5"
volumes:
- ./vpn-data:/etc/ipsec.d
- /lib/modules:/lib/modules:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment