Giter Site home page Giter Site logo

matinrco / openconnect-proxy Goto Github PK

View Code? Open in Web Editor NEW
10.0 0.0 2.0 3 KB

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

Home Page: https://hub.docker.com/r/matinrco/openconnect-proxy

License: MIT License

Dockerfile 15.64% Shell 84.36%
docker vpn proxy openconnect cisco anyconnect

openconnect-proxy's Introduction

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:

# docker run --privileged -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 matinrco/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:

# export http_proxy=http://puser:[email protected]:8123/
# wget http://protectedhost.example.com/

Available environment variables :

PROXY_USERNAME
PROXY_PASSWORD

OPENCONNECT_PASSWORD
OPENCONNECT_PASSWORD_FILE
OPENCONNECT_USERNAME
OPENCONNECT_GROUP
OPENCONNECT_HOST
OPENCONNECT_NO_CERT_CHECK

Note

  • Proxy authentication is optional . if you don't want any authentication just don't pass username/password.
  • You need to provide openconnect password with just one method . In a file or fill the related env var.
  • If your openconnect server doesn't provide valid certificate , pass OPENCONNECT_NO_CERT_CHECK=true to ignore certificate check.
  • OPENCONNECT_GROUP is also optional.

openconnect-proxy's People

Contributors

matinrco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

w796933 khorevaa

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.