You just need to install openfortivpn
as documented here
- Copy
forti
file into/usr/local/bin
folder - Give execute permission to
forti
file (chmod +x /usr/local/bin/forti
) - Setup OPENFORTIVPN env variables as needed. Checkout totp-cli for OTP. e.g:
export OPENFORTIVPN_OTP_COMMAND="totp-cli g work forti"
export OPENFORTIVPN_CONFIG=path/to/forticonfig
# --- forticonfig content ---
# host = forti.domain.xyz
# port = 443
# username = [email protected]
# otp-prompt = "Please Enter OTP Code"
# ---------------------------
- Run
forti
in terminal and enter necessary passwords!