LinuxCommandLibrary

openfortivpn

A VPN client, for Fortinet's proprietary PPP+SSL VPN solution.

TLDR

Connect to a VPN with a username and password

$ openfortivpn --username=[username] --password=[password]
copy


Connect to a VPN using a specific configuration file (defaults to /etc/openfortivpn/config)
$ sudo openfortivpn --config=[path/to/config]
copy


Connect to a VPN by specifying the host and port
$ openfortivpn [host]:[port]
copy


Trust a given gateway by passing in its certificate's sha256 sum
$ openfortivpn --trusted-cert=[sha256_sum]
copy

Copied to clipboard