cavemandaveman / openconnect

Openconnect Docker container with HTTP and SOCKS5 proxies

Home Page:https://hub.docker.com/r/cavemandaveman/openconnect

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Recommended clients

Web browser:

CLI:

Build

You can build the container yourself with

docker build -t cavemandaveman/openconnect:custom .

About

Openconnect Docker container with HTTP and SOCKS5 proxies

https://hub.docker.com/r/cavemandaveman/openconnect

License:GNU General Public License v3.0


Languages

Language:Shell 70.6%Language:Dockerfile 29.4%