Skip to content

Run openfortivpn from a docker and connect through it using a proxy

Notifications You must be signed in to change notification settings

lripo/docker-openfortivpn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Openfortivpn docker with proxy

Build

docker build -t openfortivpn .

Run

  • Run docker interactive if 2nd factor is needed, otherwise it can be run in the background without -it option
docker run --rm -it --device=/dev/ppp --cap-add=NET_ADMIN -p 2000:8080 -v ~/Proyectos/BBVA/VPN/bbva-config:/etc/openfortivpn --name forti ripo/openfortivpn
  • Run debug shell
docker run --rm -it --device=/dev/ppp --cap-add=NET_ADMIN -p 2000:8080 -v ~/Proyectos/BBVA/VPN/bbva-config:/etc/openfortivpn --name forti --entrypoint bash ripo/openfortivpn
  • Run image con:
    • --device=/dev/ppp: map ppp device for openfortivpn to work
    • --cap-add=NET_ADMIN: add network capabilities when running docker imate
    • -p 2000:8080: forward port to connect to the proxy (even when VPN is UP!)
    • ~/Proyectos/BBVA/VPN/bbva-config: directory with openfortivpn configuration files
# Run
docker run --rm -it --device=/dev/ppp --cap-add=NET_ADMIN -p 2000:8080 -v ~/Proyectos/BBVA/VPN/bbva-config:/etc/openfortivpn --name forti ripo/openfortivpn

# Debug shell
docker run --rm -it --device=/dev/ppp --cap-add=NET_ADMIN -p 2000:8080 -v ~/Proyectos/BBVA/VPN/bbva-config:/etc/openfortivpn --name forti --entrypoint bash ripo/openfortivpn

NOTE: Glider release used:

 https://github.com/nadoo/glider/releases/download/v0.15.0/glider_0.15.0_linux_amd64.tar.gz

About

Run openfortivpn from a docker and connect through it using a proxy

Resources

Stars

Watchers

Forks

Packages

No packages published