1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-26 05:27:31 +02:00

ocserv

OpenConnect server (ocserv) is an SSL VPN server. Its purpose is to be a secure, small, fast and configurable VPN server.

docker-compose.yml

ocserv:
  image: vimagick/ocserv
  ports:
    - "4443:443/tcp"
    - "4443:443/udp"
  environment:
    - VPN_DOMAIN=vpn.easypi.info
    - VPN_NETWORK=10.20.30.0
    - VPN_NETMASK=255.255.255.0
    - VPN_USERNAME=username
    - VPN_PASSWORD=password
  cap_add:
    - NET_ADMIN
  restart: always

⚠️ Please choose a strong password to protect VPN service.

up and running

$ docker-compose up -d
$ docker cp ocserv_ocserv_1:/etc/ocserv/certs/client.p12 .