Git Product home page Git Product logo

docker-openconnect-client's Introduction

docker-openconnect-client

NOTE: currently not for production use, since no security considerations are made

General purpose openconnect client docker container, which allows SSH tunnels from your local host to a remote host.

Build

docker build -t openconnect-client .

Run

docker run -ti --rm --privileged -p 4122:22 --volume $(pwd)/vpn:/vpn/ --name openconnect_client openconnect-client https://vpn.mynet.info:4443

DNS

you can also use DNS for the remote network, just add the DNS server information when starting the container:

--dns 10.11.12.10 --dns-search company.net

after that login into container and ping the host name to test if it works

Tunnel

now you can create an SSH tunnel to a remote host, or create SOCKS tunnel, to the destination network

RDP

example for RDP:

ssh -o PreferredAuthentications=password -L 192.168.31.10:33890:10.11.12.1:3389 -N root@localhost -p 4122
local host IP: 192.168.31.10 (optional)
local host port: 33890
remote host: 10.11.12.1
remote port: 3389

after that enter password 'root'

SOCKS

example for SOCKS:

ssh -o PreferredAuthentications=password -D 58080 -C -N root@localhost -p 4122

-D: Tells SSH that we want a SOCKS tunnel on the specified port number
-C: Compresses the data before sending it
-N: Tells SSH that no command will be sent once the tunnel is up

the last port is the login to docker container over SSH using root user on port 4122 after that you need to enter the 'root' password

docker-openconnect-client's People

Contributors

didlich 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.