wtsi-hgi/openconnect-proxy

Name: openconnect-proxy

Owner: Wellcome Trust Sanger Institute - Human Genetics Informatics

Description: Provide an authenticated http proxy that provides connectivity via an OpenConnect VPN client (to connect to a compatible AnyConnect VPN server)

Created: 2016-09-17 22:15:55.0

Updated: 2016-09-17 22:16:38.0

Pushed: 2017-02-22 14:29:21.0

Homepage: null

Size: 2

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

openconnect-proxy docker image

Packages an OpenConnect VPN client with an authenticating HTTP proxy to provide access to the VPN via the proxy.

Example usage:

cker run -it -p 8123:8123 -v /tmp/oc.pw:/tmp/oc.pw -e OPENCONNECT_PASSWORD_FILE=/tmp/oc.pw -e OPENCONNECT_USERNAME=oc_user -e OPENCONNECT_GROUP=oc_group -e OPENCONNECT_HOST=vpn.example.com -e PROXY_USERNAME=puser -e PROXY_PASSWORD=secret quay.io/wtsi-hgi/openconnect-proxy

Substitute the real values for your AnyConnect VPN credentials in place of oc_user, oc_group, and vpn.example.com; and create a file (in this case /tmp/oc.pw) containing the associated password.

While the above container is running, you should be able to use the docker host an http proxy to access resources via the VPN.

For example, you could set an http_proxy environment variable and use wget:

port http_proxy=http://puser:secret@dockerhost.example.com:8123/
et http://protectedhost.example.com/

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.