Skip to content

chussum/docker-fortivpn-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-fortivpn-proxy

Connect to a Fortinet SSL-VPN via socks5 proxy.

Usage

NOTE: I only tested this image on macOS systems.

  1. Create an openfortivpn configuration file.

    $ cat /path/to/config
    OPENCONNECT_URL=[server ip]:[port]
    OPENCONNECT_USER=foo
    OPENCONNECT_PASSWORD=bar
    OPENCONNECT_OPTIONS=--protocol=fortinet --servercert pin-sha256:~~~
    
  2. Run the following command to start the container.

    $ docker run \
        -it \
        -p 1080:1080 \
        --env-file=/path/to/config \
        ghcr.io/chussum/fortivpn-proxy:main
    
  3. Now you can use SSL-VPN via socks5://localhost:1080.

License

MIT

thx. https://github.com/rankun203/openconnect-proxy