Public | Automated Build

Last pushed: 10 months ago
Short Description
quick setup of forticlient and rdp forwwarding
Full Description

forticlient

Connect to a FortiNet VPNs through docker

Usage

The container uses the forticlientsslvpn_cli linux binary to manage ppp interface

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 VPNRDPIP).

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.

Windows

This should work with docker on windows, however with Windows 10 I see an issue with opening the vpn tunnel.

Linux


# Start the priviledged docker container with a static ip
docker run -it --rm \
  --privileged \
  -p 1234:3380 \
  -e VPNADDR=host:port \
  -e VPNUSER=me@domain \
  -e VPNPASS=secret \
  -e VPNRDPIP=ipofRDPmachine
  cadab/docker-forticlient

Misc

If you don't want to use a docker network, you can find out the container ip once it is started with:

# Find out the container IP
docker inspect --format '{{ .NetworkSettings.IPAddress }}' <container>

Precompiled binaries

Thanks to https://hadler.me for hosting up to date precompiled binaries which are used in this Dockerfile.

Docker Pull Command
Owner
cadab
Source Repository

Comments (0)