How does Eddie build OpenVPN directives?

The Preferences → OpenVPN directives page (OVPN directives in MacOS) controls how OpenVPN directives are built in the final configuration file.

Directives are defined in the following order:

Base directives

Changing or removing these directives may cause the client to not work properly.

Current default:

client
dev tun
auth-nocache
resolv-retry infinite
nobind
persist-key
persist-tun
verb 3
connect-retry-max 1
ping 10
ping-restart 60
explicit-exit-notify 5

Provider directives

Provider directives (specific for each provider)

Server directives

Server directives (specific for each server)

Computed directives

Computed directives based on other settings (for example protocols, proxy, routes etc)

Custom directives

Custom directives

If you choose Use only custom directives, only Computed directives and Custom directives are applied. This setting is generally used for debugging/testing.

If the same directive exists in different areas, and is a directive that can be specified only once, the latest is used. After that, Eddie applies a few final adjustments that cannot be overridden: verb is always 3, and directives that the OpenVPN version in use no longer accepts are removed (for example cipher with OpenVPN 2.5 or later, persist-key with OpenVPN 2.7 or later).

The following directives can be specified multiple times:

remote
route
route-ipv6
dhcp-option
x509-track
http-proxy-option
pull-filter
ignore-unknown-option
setenv

Some directives are not accepted, because OpenVPN runs with administrator rights: those that run a program or load a plugin (up, down, route-up, plugin, script-security and similar), those that write a file (log, status, writepid and similar), the management family, the server mode, config. Eddie ignores them and writes a warning in the log. setenv is accepted only for a few names (IV_..., UV_... and some client settings); setenv opt follows the rules of the directive it carries.