Docker image of Openconnect (ocserv) VPN server. Easy way to get own auto configured SSL based VPN.
5.7K
This repo is a part of the complete instruction on r4ven.me for deploying an OpenConnect VPN server via docker and docker-compose. All source files of server and client available at a src dir of this repo.

When using a domain to obtain SSL certificates, uncomment the certbot service and the depends_on parameter for the openconnect service, and specify your values instead of example in the docker-compose.yml file.
mkdir /opt/openconnect && cd /opt/openconnect
curl -O https://raw.githubusercontent.com/r4ven-me/openconnect/main/docker-compose.yml
docker compose up -d && docker compose logs -f
docker exec -it openconnect ocuser exampleuser 'Example User'
You can also use my bash script for automatic connect to ocserv via openconnect client utiliy
sudo openconnect -c /home/exampleuser/exampleuser.p12 12.345.67.89:43443 <<< $(echo "examplepassword"$'\n'yes$'\n')
sudo openconnect -c /home/exampleuser/exampleuser.p12 example.com:43443 <<< $(echo "examplepassword"$'\n')
Content type
Image
Digest
sha256:d8e348e3c…
Size
69.2 MB
Last updated
2 months ago
docker pull r4venme/openconnect:v1.4-client