OpenConnect client (alpine sized) with patched support for 2FA Palo Alto vpn networks
3.3K
Built from https://github.com/dlenski/openconnect to get the additional Palo Alto Networks (PAN) authentication mode.
The below example uses --read-only mode (for a tiny bit of additional security, you must include the --tmpfs parameter if using read-only mode).
docker run \
--name openconnect \
--init \
--net host \
--read-only \
--tmpfs /var/run/vpnc:rw,size=1000k \
--cap-add=NET_ADMIN \
--device /dev/net/tun \
--pids-limit 50 \
--cpus="1" \
--memory="512m" \
-v /etc/resolv.conf:/etc/resolv.conf \
--security-opt="no-new-privileges:true" \
--interactive \
--tty \
robertbeal/openconnect:latest --protocol=gp <ip> --servercert sha256:<sha>
SIGTERM works (ie docker stop openconnect) but not in an elegant fashion. The vpnc-script doesn't revert the /etc/resolv.conf so you may find your hosts /etc/resolv.conf is left in a messy state. When I have time I need to find out why openconnect isn't shutting down cleanly.
SIGINT (ie ctrl+c) however does fully work.
Content type
Image
Digest
Size
5.9 MB
Last updated
about 7 years ago
docker pull robertbeal/openconnect