Coder Social home page Coder Social logo

bunty001 / docker-openconnect-vpn- Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yoep/docker-openconnect

0.0 0.0 0.0 25 KB

OpenConnect VPN & Proxy for Bitbucket Pipelines code uPN

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

License: GNU General Public License v3.0

Shell 82.65% Dockerfile 17.35%

docker-openconnect-vpn-'s Introduction

Docker OpenConnect

Docker OpenConnect image which can be used in Bitbucket Pipelines for creating a VPN tunnel to your on premise servers. This allows for communication with your on premise deployment environment such as Kubernetes.

Bitbucket Pipeline usage

Proxy Port Tunnel

The example below shows you on how to use this image to connect to a VPN and setup a port proxy through the script tunnel of the VPN.

pipelines:
  branches:
    master:
      - step:
         name: deploy
         image: yoep/openconnect
         script:
           # connect to vpn
           - vpn-open -u ${VPN_USER} -p ${VPN_PASSWORD} -s ${SERVER} -P ${SERVER_PORT} ${VPN_HOST}
           # execute request over VPN
           - curl https://localhost:61000/apps/v1beta1/namespaces/
           # close vpn
           - vpn-close

SOCKS5 Proxy

The example below show you on how to user this image to connect to a VPN and setup a SOCKS5 proxy through the script tunnel of the VPN.

pipelines:
  branches:
    master:
      - step:
         name: deploy
         image: yoep/openconnect
         script:
           # connect to vpn
           - vpn-open -u ${VPN_USER} -p ${VPN_PASSWORD} -5 ${VPN_HOST}
           # execute request over VPN
           - curl --socks5 localhost:61000 https://${SERVER}:8080/apps/v1beta1/namespaces/
           # close vpn
           - vpn-close

Script manual

Manual of vpn-open

Open a VPN connection to the given host gateway url.

Usage: vpn-open [options...] <url>
    -u  The VPN username
    -p  The VPN password
    -s  The server hostname or IP to open a proxy tunnel to
    -P  The server port to connect & create a proxy tunnel to
    -L  The local proxy port (default: 61000)
    -5  Use a SOCKS5 proxy instead of a proxy port tunnel

Manual of vpn-close

Close the current VPN connection.

Usage: vpn-close
    -L  The local proxy port (default: 61000)

docker-openconnect-vpn-'s People

Contributors

yoep avatar

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.