Git Product home page Git Product logo

docker-netextender's Introduction

NetExtender (SonicWALL) for Docker

Connect to a SonicWALL VPNs through docker NetExtender container.

Usage

You can access a predetermined target PC inside the VPN directly from any machine in your LAN using RDP. You just open RDP and set the IP:PORT like this docker-host-name-or-IP:docker-host-mapped-port, where

  • docker-host-name-or-IP - name (or IP) of your docker host,
  • docker-host-mapped-port - port on the left side of -p parameter (can be seen below). The docker image will handle the rest using internally installed NetExtender and via routings specified inside as well.

This allows the user to RDP to the docker host with the specified port, which will then be forwarded to the docker container running the vpn, and finally redirected to the remote machine you wish to connect to (set by VPN_RDPIP).

If running the docker container from the machine you wish to connect from you can omit the -p settings, and connect to the IP address of the container on port 3380.

# Start the privileged docker container

# -d => detached mode (you can use -it to run it interactively)
# --name => specify a name of the container
# --label => labels are not necessary but can help to identify and filter the containers
# --privileged => this is vital to run VPN containers in a privileged mode (or use caps)
# -p => # use mapped ports to allow access to anyone in your network (using a port on the left side)

# -e "VPN_SERVER=vpn-gateway-ip:port" => specify VPN gateway and port (defined by your VPN provider)
# -e "VPN_USER=[user-id]" => VPN user ID (defined by your VPN provider)
# -e "VPN_PASS=[pwd]" => VPN user password (defined by your VPN provider). You can use DOCKER SWARM secrets to make this more secure.
# -e "VPN_DOMAIN=domain-or-address" (defined by your VPN provider)
# -e "VPN_RDPIP=192.168.1.123" => IP of the remote PC (target PC inside the VPN)

docker run \
    -d 
    --name vpn-test1 \
    --label container-type=vpnclient \
    --label vpn-type=netextender \
    --label customer=customer-XYZ \
    --cap-add=NET_ADMIN \
    --device=/dev/ppp \
    -p 51234:3380 \
    -e "VPN_SERVER=vpn-gateway-ip:port" \
    -e "VPN_USER=[user-id]" \
    -e "VPN_PASS=[pwd]" \
    -e "VPN_DOMAIN=domain-or-address" \
    -e "VPN_RDPIP=192.168.1.123" \
    calidae/netextender

docker-netextender's People

Contributors

koubek avatar pijuli avatar n1ngu avatar hjoest avatar

Watchers

James Cloos avatar  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.