OPENFORTIVPN(1) General Commands Manual OPENFORTIVPN(1) (NAME) openfortivpn - VPN PPP+TLS (SYNOPSIS) openfortivpn [[:]] [-u ] [-p ] [--cookie=] [--cookie-on-stdin] [--saml-login[=]] [--pinentry=] [--otp=] [--otp-prompt=] [--otp-delay=] [--no-ftm-push] [--realm=] [--ifname=] [--set-routes=] [--no-routes] [--set-dns=] [--no-dns] [--half-internet-routes=] [--ca-file=] [--user-cert=] [--user-cert=pkcs11:] [--user-key=] [--use-syslog] [--trusted-cert=] [--insecure-ssl] [--cipher-list=] [--min-tls=] [--seclevel-1] [--pppd-use-peerdns=] [--pppd-no-peerdns] [--pppd-log=] [--pppd-plugin=] [--pppd-ipparam=] [--pppd-ifname=] [--pppd-call=] [--pppd-accept-remote=] [--ppp-system=] [--use-resolvconf=] [--persistent=] [-c ] [-v|-q] openfortivpn --help openfortivpn --version (DESCRIPTION) openfortivpn (gateway) : (VPN) . (OPTIONS) --help . --version . -c , --config= (: /etc/openfortivpn/config). -u , --username= VPN. -p , --password= VPN . pinentry openfortivpn . --cookie= (SVPNCOOKIE) . --cookie-on-stdin (SVPNCOOKIE) . --saml-login[=] (redirect) (SAML). SAML `/remote/saml/start?redirect=1' . `http://127.0.0.1:8020/?id=' . (URL) realm . --pinentry= pinentry . . : pinentry-gnome3 pinentry-mac macOS. -o , --otp= (OTP). --otp-prompt= (prompt) OTP . --otp-delay= . 0 (). --no-ftm-push (push) FTM . . OTP . --realm= (realm) . . --ifname= . --set-routes=, --no-routes openfortivpn IP VPN . . --no-routes --set-routes=0 . --half-internet-routes= openfortivpn 0.0.0.0/1 128.0.0.0/1 . --set-dns=, --no-dns openfortivpn DNS /etc/resolv.conf . (dns-suffix) /etc/resolv.conf . resolvconf --use-resolvconf resolv.conf openfortivpn resolv.conf . /etc/resolv.conf --pppd-use-peerdns ip-up-script openfortivpn --no-dns . --no-dns --set-dns=0 . --use-resolvconf= openfortivpn resolvconf DNS /etc/resolv.conf . false resolvconf . --ca-file= PEM . --user-cert= PEM . --user-cert=pkcs11: pkcs11: . PKCS11-URI (p11tool --list- token-urls) --user-cert = pkcs11: --user-cert = pkcs11:token=someuser --user-cert = pkcs11:model=PKCS%2315%20emulated;manufacturer=piv_II;serial=012345678;token=someuser OpenSSL PKCS ! --user-key= PEM . --pem-passphrase= (passphrase) PEM. --use-syslog syslog . --trusted-cert= . TLS . sha256 X509 . DER . . --insecure-ssl / (ciphers) TLS . --cipher-list . --cipher-list= OpenSSL . HIGH:!MD5:!RC4 Cipher: openssl(1) ( AES256-GCM-SHA384): $ openssl s_client -connect (: HIGH:!aNULL:!kRSA:!PSK:!SRP:!MD5:!RC4) TLS 1.2 TLS 1.3 . --min-tls= TLS . 1.0 1.1 1.2 1.3..TP --seclevel-1 --cipher-list @SECLEVEL=1 (ciphers) . dh . TLS . . --pppd-use-peerdns=, --pppd-no-peerdns DNS ppp pppd /etc/resolv.conf . dns-suffix pppd . DNS --set-dns=1 pppd ( ) . --pppd-no-peerdns --pppd-use-peerdns=0 . --pppd-log= pppd (debug) . --pppd-plugin= pppd (resolver) . --pppd-ipparam= ip-up ip-pre-up ip-down. pppd(8) . --pppd-ifname= ppp. pppd . pppd . --pppd-call= pppd "call " . "dip" "pppd call " pppd /etc/ppp/peers/ ( ) . --pppd-accept-remote= pppd "ipcp-accept-remote" . pppd < 2.5.0 pppd . --ppp-system= ppp ( FreeBSD). /etc/ppp/ppp.conf. --persistent= VPN . 0 ( ). -v . . -q . . (ENVIRONMENT and proxy support) openfortivpn HTTP connect HTTP . https_proxy HTTPS_PROXY all_proxy ALL_PROXY : http://[host]:[port] [host] ip (FQDN) [port] TCP . openfortivpn TCP (HTTP ) VPN . VPN TLS VPN TCP . openfortivpn pppd(8) : VPN_GATEWAY ip (gateway) : VPN_ROUTE_DEST_... VPN_ROUTE_MASK_... VPN_ROUTE_GATEWAY_... pppd pppd . FreeBSD --ppp-system . (CONFIGURATION) . ( ). /etc/openfortivpn/config -c . /usr/share/openfortivpn/config.template . : # this is a comment host = vpn-gateway port = 443 username = foo # Password in plain text. # For a secure alternative, use pinentry or let openfortivpn prompt for the password. # password = bar # The pinentry program to use. Allows supplying the password in a secure manner. # pinentry = pinentry-mac # realm = some-realm # useful for a gui that passes a configuration file to openfortivpn # otp = 123456 # otp-delay = 0 # otp-prompt = Please # This would disable FTM push notification support, and use OTP instead # no-ftm-push = 1 user-cert = /etc/openfortivpn/user-cert.pem # user-cert = pkcs1: # use smartcard as client certificate user-key = /etc/openfortivpn/user-key.pem pem-passphrase = baz # the sha256 digest of the trusted host certs obtained by # openssl dgst -sha256 server-cert.crt: trusted-cert = certificatedigest4daa8c5fe6c... trusted-cert = othercertificatedigest6631bf... # This would specify a ca bundle instead of system-wide store # ca-file = /etc/openfortivpn/ca-bundle.pem set-dns = 0 use-resolvconf = 1 set-routes = 1 half-internet-routes = 0 pppd-use-peerdns = 1 # alternatively, use a specific pppd plugin instead # pppd-plugin = /usr/lib/pppd/default/some-plugin.so # for debugging pppd write logs here # pppd-log = /var/log/pppd.log # pass ppp interface name to pppd (if supported by a patched pppd) # pppd-ifname = ppp1 # pass an ipparam string to pppd, e.g. the device name (a similar use case) # pppd-ipparam = 'device=$DEVICE' # instruct pppd to call a script instead of passing arguments (if pppd supports it) # pppd-call = script # use-syslog = 0 insecure-ssl = 0 cipher-list = HIGH:!aNULL:!kRSA:!PSK:!SRP:!MD5:!RC4 persistent = 0 seclevel-1 = 0.SH " (SEE ALSO)" openfortivpn (https://github.com/adrienverge/openfortivpn) README Wiki . May 4, 2020 OPENFORTIVPN(1)