Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1.38 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.38 KB

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