Coder Social home page Coder Social logo

forticlient-vpn-docker's Introduction

Docker container for Forticlient

This is a Docker container for Forticlient and other useful commands foar avoiding the direct connection to a VPN with your computer.

This docker container is able to launch the following applications:

  • Forticlient VPN using X.
  • Squid proxy for routing SSH connections for the host machine.
  • Chromium browser using X.

Quick Start

NOTE: The Docker command provided in this quick start is given as an example and parameters should be adjusted to your need.

  • Launch the docker container with the following command:
docker run --rm -it \
        --privileged \
        --name fortisslvpn \
        --env="DISPLAY" \
        --env="LC_ALL=C" \
        --env="QT_X11_NO_MITSHM=1" \
        -v "/tmp/.X11-unix:/tmp/.X11-unix:rw" \
        -v <PATH_TO_CPN_HISTORY_CONFIG_FILE>:/root/.fctsslvpnhistory \
        -v <PATH_TO_CERTIFICATE>:/opt/cer.p12 \
        -p 3128:3128
        alvsanand/forticlient-vpn-docker
  • Configure SSH client to use the Proxy server of the container:
cat <<EOF >> ~/.ssh/config
    Host VPN_NETWORK_WILCARD # Ex: 10.*
      ProxyCommand socat - "PROXY:localhost:%h:%p,proxyport=3128"
      IdentityFile <PATH_TO_PEM_CERTIFICATE>
    EOF
  • Open SSH connection:
SSH_HOST=100.1.1.1
ssh ec2-user@$SSH_HOST
  • Open SSH connection with port forwarding:
SSH_HOST=100.1.1.1
ssh -L 443:127.0.0.1:443 ec2-user@$SSH_HOST
  • Open chromium browser:
xhost +local:root
docker exec --env="LC_ALL=C" -it $(docker ps -aqf "name=fortisslvpn") chromium-browser --no-sandbox --proxy-pac-url="<AUTO_PROXY_CONFIGURATION_URL>"

forticlient-vpn-docker's People

Contributors

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