Sign inSign up

cavemandaveman/openconnect

By cavemandaveman

Updated over 5 years ago

Image
0

302

cavemandaveman/openconnect repository overview

Openconnect + Tinyproxy + Dante

This Docker image contains an openconnect client and the tinyproxy proxy server for http/https connections (default on port 8888) and the dante socks server for socks5 connections (default on port 1080) in a very small alpine linux image (around 20 MB).

Usage

The following environment variables can be set:

OPENCONNECT_URL=<Gateway URL>
OPENCONNECT_USER=<Username>
OPENCONNECT_PASSWORD=<Password>
OPENCONNECT_MFA_CODE=<Multi-Factor authentication code>
OPENCONNECT_OPTIONS=<Openconnect command line options>

Available command line options.

If you leave OPENCONNECT_PASSWORD unset, you will get prompted when starting up the container.

Example docker-run
docker run -d \
	--name openconnect \
	-e OPENCONNECT_URL=vpn.example.com \
	-e OPENCONNECT_USER=ocuser \
	-e OPENCONNECT_PASSWORD="ocpassword \
	-e OPENCONNECT_MFA_CODE=ocmfacode \
	-e OPENCONNECT_OPTIONS="--timestamp --verbose" \
	-p 1080:1080 \
	-p 8888:8888 \
	--privileged \
	cavemandaveman/openconnect:latest
Example docker-compose

See docker-compose.yml

Web browser:

CLI:

Build

You can build the container yourself with

docker build -t cavemandaveman/openconnect:custom .

Tag summary

Content type

Image

Digest

Size

8.5 MB

Last updated

over 5 years ago

docker pull cavemandaveman/openconnect