From f40efacef4f0f09fbdbfbb9b3608e0e268d7411c Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 4 Mar 2024 10:38:49 +0100 Subject: [PATCH] Add new `tun` option to man page --- doc/openfortivpn.1.in | 84 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 76 insertions(+), 8 deletions(-) diff --git a/doc/openfortivpn.1.in b/doc/openfortivpn.1.in index 7a23f516..9940354c 100644 --- a/doc/openfortivpn.1.in +++ b/doc/openfortivpn.1.in @@ -1,7 +1,7 @@
openfortivpn - Client for PPP+TLS VPN tunnel services
openfortivpn [<host>[:<port>]] [-u <user>] [-p <pass>] [--cookie=<cookie>] [--cookie-on-stdin] [--pinentry=<name>] [--otp=<otp>] [--otp-prompt=<prompt>] [--otp-delay=<delay>] [--no-ftm-push] [--realm=<realm>] [--ifname=<interface>] [--set-routes=<bool>] [--no-routes] [--set-dns=<bool>] [--no-dns] [--half-internet-routes=<bool>] [--ca-file=<file>] [--user-cert=<file>] [--user-cert=pkcs11:] [--user-key=<file>] [--use-syslog] [--trusted-cert=<digest>] [--insecure-ssl] [--cipher-list=<ciphers>] [--min-tls=<version>] [--seclevel-1] [--pppd-use-peerdns=<bool>] [--pppd-no-peerdns] [--pppd-log=<file>] [--pppd-plugin=<file>] [--pppd-ipparam=<string>] [--pppd-ifname=<string>] [--pppd-call=<name>] [--pppd-accept-remote=<bool>] [--ppp-system=<string>] [--use-resolvconf=<bool>] [--persistent=<interval>] [-c <file>] [-v|-q]
+
openfortivpn [<host>[:<port>]] [-u <user>] [-p <pass>] [--cookie=<cookie>] [--cookie-on-stdin] [--pinentry=<name>] [--otp=<otp>] [--otp-prompt=<prompt>] [--otp-delay=<delay>] [--no-ftm-push] [--realm=<realm>] [--tun=<bool>] [--ifname=<interface>] [--set-routes=<bool>] [--no-routes] [--set-dns=<bool>] [--no-dns] [--half-internet-routes=<bool>] [--ca-file=<file>] [--user-cert=<file>] [--user-cert=pkcs11:] [--user-key=<file>] [--use-syslog] [--trusted-cert=<digest>] [--insecure-ssl] [--cipher-list=<ciphers>] [--min-tls=<version>] [--seclevel-1] [--pppd-use-peerdns=<bool>] [--pppd-no-peerdns] [--pppd-log=<file>] [--pppd-plugin=<file>] [--pppd-ipparam=<string>] [--pppd-ifname=<string>] [--pppd-call=<name>] [--pppd-accept-remote=<bool>] [--ppp-system=<string>] [--use-resolvconf=<bool>] [--persistent=<interval>] [-c <file>] [-v|-q]
openfortivpn --help
openfortivpn --version
Show the help message and exit.
Show version and exit.
Specify a custom configuration file (default: /volatile/local/openfortivpn/etc/openfortivpn/config).
VPN account username.
VPN account password in plain text. For a secure alternative, use pinentry or let openfortivpn prompt for the password.
A valid cookie (SVPNCOOKIE) to use in place of username and password.
Read the cookie (SVPNCOOKIE) from standard input.
The pinentry program to use. Allows supplying the password in a secure manner. For example: pinentry-gnome3 on Linux, or pinentry-mac on macOS.
One-Time-Password.
Search for the OTP password prompt starting with the string <prompt>.
Set the amount of time to wait before sending the One-Time-Password. The delay time must be specified in seconds, where 0 means no wait (this is the default).
Do not use FTM push if the server provides the option. The server may be configured to allow two factor authentication through a push notification to the mobile application. If this option is provided, authentication based on OTP will be used instead.
Connect to the specified authentication realm. Defaults to empty, which is usually what you want.
Set to create a TUN device and use internal PPP code (experimental).
+Bind the connection to the specified network interface.
Set if openfortivpn should try to configure IP routes through the VPN when tunnel is up. If used multiple times, the last one takes priority.
+--no-routes is the same as --set-routes=0.
--no-routes is the same as --set-routes=0.
Set if openfortivpn should add two 0.0.0.0/1 and 128.0.0.0/1 routes with higher priority instead of replacing the default route.
-Set if openfortivpn should add DNS name servers in /etc/resolv.conf when tunnel is up. Also a dns-suffix may be received from the peer and added to /etc/resolv.conf in the turn of adding the name servers. resolvconf is instructed to do the update of the resolv.conf file if it is installed and --use-resolvconf is activated, otherwise openfortivpn prepends its changes to the existing content of the resolv.conf file. Note that there may be other mechanisms to update /etc/resolv.conf, e.g., --pppd-use-peerdns in conjunction with an ip-up-script, which may require that openfortivpn is called with --no-dns. --no-dns is the same as --set-dns=0.
Set if openfortivpn should use resolvconf to add DNS name servers in /etc/resolv.conf. If it is set to false, the builtin fallback mechanism is used even if resolvconf is available.
Use specified PEM-encoded certificate bundle instead of system-wide store to verify the gateway certificate.
Use specified PEM-encoded certificate if the server requires authentication with a certificate.
Use at least the string pkcs11: for using a smartcard. It takes the full or a partial 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
This feature requires the OpenSSL PKCS engine!
+ +Use specified PEM-encoded key if the server requires authentication with a certificate.
Pass phrase for the PEM-encoded key.
Log to syslog instead of terminal.
Trust a given gateway. If classical TLS certificate validation fails, the gateway certificate will be matched against this value. <digest> is the X509 certificate's sha256 sum. The certificate has to be encoded in DER form. This option can be used multiple times to trust several certificates.
Do not disable insecure TLS protocols/ciphers. If your server requires a specific cipher, consider using --cipher-list instead.
OpenSSL ciphers to use. If default does not work, you can try alternatives such as HIGH:!MD5:!RC4 or as suggested by the Cipher: line in the output of openssl(1) (e.g. AES256-GCM-SHA384):
-$ openssl s_client -connect <host:port>
(default: HIGH:!aNULL:!kRSA:!PSK:!SRP:!MD5:!RC4)
Applies to TLS v1.2 or lower only, not to be used with TLS v1.3 ciphers.
+ +Use minimum TLS version instead of system default. Valid values are 1.0, 1.1, 1.2, 1.3.
If --cipher-list is not specified, add @SECLEVEL=1 to the list of ciphers. This lowers limits on dh key.
+Applies to TLS v1.2 or lower only.
Applies to TLS v1.2 or lower only.
Whether to ask peer ppp server for DNS server addresses and let pppd rewrite /etc/resolv.conf. There is no mechanism to tell the dns-suffix to pppd. If the DNS server addresses are requested, also --set-dns=1 may race with the mechanisms in pppd.
--pppd-no-peerdns is the same as --pppd-use-peerdns=0.
+Set pppd in debug mode and save its logs into <file>.
Use specified pppd plugin instead of configuring the resolver and routes directly.
Provides an extra parameter to the ip-up, ip-pre-up and ip-down scripts. See man pppd(8) for further details
Set the ppp interface name. Only if supported by pppd. Patched versions of pppd implement this option but may not be available on your platform.
Drop usual arguments from pppd command line and add `call <name>' instead. This can be useful on Debian and Ubuntu, where unprivileged users in group `dip' can invoke `pppd call <name>' to make pppd read and apply options from /etc/ppp/peers/<name> (including privileged ones).
Whether to invoke pppd with `ipcp-accept-remote'. Enabling this option breaks pppd < 2.5.0 but is required by newer pppd versions.
Only available if compiled for ppp user space client (e.g. on FreeBSD). Connect to the specified system as defined in /etc/ppp/ppp.conf
Run the VPN persistently in an endless loop and try to reconnect forever. The reconnect interval may be specified in seconds, where 0 means no reconnect is done (this is the default).
Increase verbosity. Can be used multiple times to be even more verbose.
Decrease verbosity. Can be used multiple times to be even less verbose.
openfortivpn can be run behind an HTTP proxy that supports the HTTP connect command. It checks if one of the environment variables https_proxy HTTPS_PROXY all_proxy ALL_PROXY is set which are supposed to contain a string of the format
http://[host]:[port]