-
-
Save YokiToki/4923c5ba0155f1359030c9fcea9473b3 to your computer and use it in GitHub Desktop.
L2TP Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VPN_IPSEC_PSK=secret | |
VPN_USER=user | |
VPN_PASSWORD=pass | |
VPN_ADDL_USERS=user2 user3 | |
VPN_ADDL_PASSWORDS=pass2 pass3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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