Skip to content

Instantly share code, notes, and snippets.

@stamm
Created April 16, 2018 15:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save stamm/fb94db41cf55db260cb830f796dfa9d7 to your computer and use it in GitHub Desktop.
Save stamm/fb94db41cf55db260cb830f796dfa9d7 to your computer and use it in GitHub Desktop.
Docker compose for vpn and socks proxy
version: "3"
services:
sockd:
image: stamm/docker-dante:1.0
env_file: socks.env
ports:
- "8088:8088"
restart: always
vpn:
image: "hwdsl2/ipsec-vpn-server"
env_file: vpn.env
volumes:
- "/lib/modules:/lib/modules:ro"
ports:
- "500:500/udp"
- "4500:4500/udp"
privileged: true
restart: always
@stamm
Copy link
Author

stamm commented Apr 16, 2018

socks.env:

SOCKS_USER=
SOCKS_PASSWORD=

vpn.env:

VPN_IPSEC_PSK=
VPN_USER=
VPN_PASSWORD=

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment