@@ -86,85 +86,92 @@ Required properties:
8686- proto
8787- dev
8888
89- ========================= ======= ============ ===========================
90- key name type default allowed values
91- ========================= ======= ============ ===========================
92- ``name `` string 2 to 24 alphanumeric
93- characters, dashes and
94- underscores
95- ``mode `` string ``p2p `` or ``server ``
96- ``proto `` string ``udp ``, ``tcp-client ``,
97- ``tcp-server ``
98- ``port `` integer ``1194 `` integers
99- ``data_ciphers `` list list of dicts, each dict
100- need to have ``cipher `` and
101- ``optional ``, see `cipher
102- property source code `_ for
103- the allowed ciphers
104- ``data_ciphers_fallback `` string see `cipher property source
105- code `_
106- ``dev_type `` string ``tun ``, ``tap ``
107- ``dev `` string any non-whitespace
108- character (max length: 15)
109- ``local `` string any string
110- ``comp_lzo `` string ``adaptive `` ``yes ``, ``no `` or
111- ``adaptive ``
112- ``auth `` string ``SHA1 `` see `auth property source
113- code `_
114- ``cipher `` string ``BF-CBC `` see `cipher property source
115- code `_
116- ``engine `` string ``bsd ``, ``rsax ``,
117- ``dynamic `` or empty string
118- ``ca `` string any non whitespace
119- character
120- ``cert `` string any non whitespace
121- character
122- ``key `` string any non whitespace
123- character
124- ``pkcs12 `` string any non whitespace
125- character
126- ``tls_auth `` string string containing TLS Auth
127- key
128- ``ns_cert_type `` string ``client ``, ``server `` or
129- empty string
130- ``mtu_disc `` string ``no `` ``no ``, ``maybe `` or
131- ``yes ``
89+ ========================= ======= ========== =============================
90+ key name type default allowed values
91+ ========================= ======= ========== =============================
92+ ``name `` string 2 to 24 alphanumeric
93+ characters, dashes and
94+ underscores
95+ ``mode `` string ``p2p `` or ``server ``
96+ ``proto `` string ``udp ``, ``tcp-client ``,
97+ ``tcp-server ``
98+ ``port `` integer ``1194 `` integers
99+ ``data_ciphers `` list list of dicts, each dict need
100+ to have ``cipher `` and
101+ ``optional ``, see `cipher
102+ property source code `_ for
103+ the allowed ciphers
104+ ``data_ciphers_fallback `` string see `cipher property source
105+ code `_
106+ ``dev_type `` string ``tun ``, ``tap ``
107+ ``dev `` string any non-whitespace character
108+ (max length: 15)
109+ ``local `` string any string
110+ ``auth `` string ``SHA1 `` see `auth property source
111+ code `_
112+ ``cipher `` string ``BF-CBC `` see `cipher property source
113+ code `_
114+ ``engine `` string ``bsd ``, ``rsax ``,
115+ ``dynamic `` or empty string
116+ ``ca `` string any non whitespace character
117+ ``cert `` string any non whitespace character
118+ ``key `` string any non whitespace character
119+ ``pkcs12 `` string any non whitespace character
120+ ``tls_auth `` string string containing TLS Auth
121+ key
122+ ``ns_cert_type `` string ``client ``, ``server `` or
123+ empty string
124+ ``mtu_disc `` string ``no `` ``no ``, ``maybe `` or ``yes ``
132125``mtu_test `` boolean ``False ``
133- ``fragment `` integer ``0 `` any positive integer
134- ``mssfix `` integer ``1450 `` any positive integer
135- ``keepalive `` string two numbers separated by
136- one space
126+ ``fragment `` integer ``0 `` any positive integer
127+ ``mssfix `` integer ``1450 `` any positive integer
128+ ``keepalive `` string two numbers separated by one
129+ space
137130``persist_tun `` boolean ``False ``
138131``persist_key `` boolean ``False ``
139- ``up `` string any non whitespace
140- character
141- ``up_delay `` integer ``0 `` any positive integer
142- ``down `` string any non whitespace
143- character
144- ``script_security `` integer ``1 `` ``0 ``, ``1 ``, ``2 ``, ``3 ``
145- ``user `` string any string
146- ``group `` string any string
147- ``mute `` integer ``0 `` any positive integer
148- ``status `` string string and number separated
149- by space, eg:
150- ``/var/log/openvpn.status
151- 10 ``
152- ``status_version `` integer ``1 `` ``1 ``, ``2 ``, ``3 ``
132+ ``up `` string any non whitespace character
133+ ``up_delay `` integer ``0 `` any positive integer
134+ ``down `` string any non whitespace character
135+ ``script_security `` integer ``1 `` ``0 ``, ``1 ``, ``2 ``, ``3 ``
136+ ``user `` string any string
137+ ``group `` string any string
138+ ``mute `` integer ``0 `` any positive integer
139+ ``status `` string string and number separated
140+ by space, eg:
141+ ``/var/log/openvpn.status
142+ 10 ``
143+ ``status_version `` integer ``1 `` ``1 ``, ``2 ``, ``3 ``
153144``mute_replay_warnings `` boolean ``False ``
154- ``secret `` string any non whitespace
155- character
156- ``reneg_sec `` integer ``3600 `` any positive integer
157- ``tls_timeout `` integer ``2 `` any positive integer
158- ``tls_cipher `` string any string
159- ``remote_cert_tls `` string ``client ``, ``server `` or
160- empty string
145+ ``secret `` string any non whitespace character
146+ ``reneg_sec `` integer ``3600 `` any positive integer
147+ ``tls_timeout `` integer ``2 `` any positive integer
148+ ``tls_cipher `` string any string
149+ ``remote_cert_tls `` string ``client ``, ``server `` or
150+ empty string
161151``float `` boolean ``False ``
162152``auth_nocache `` boolean ``False ``
163153``fast_io `` boolean ``False ``
164- ``log `` string filesystem path
165- ``verb `` integer ``1 `` from ``0 `` (disabled) to
166- ``11 `` (very verbose)
167- ========================= ======= ============ ===========================
154+ ``log `` string filesystem path
155+ ``verb `` integer ``1 `` from ``0 `` (disabled) to
156+ ``11 `` (very verbose)
157+ ``allow_compression `` string ``"" `` ``"" `` (empty string to
158+ remove the directive),
159+ ``asym `` (compression allowed
160+ in one direction), ``no ``
161+ (disabled, default in OpenVPN
162+ 2.6), ``yes `` (allowed both
163+ directions)
164+ ``compress `` string ``"" `` ``"" `` (empty string to
165+ remove the directive),
166+ ``lzo ``, ``lz4 ``, ``lz4-v2 ``,
167+ ``stub ``, ``stub-v2 ``,
168+ ``migrate ``.
169+ ``comp_lzo `` string **DEPRECATED **: ``yes ``,
170+ ``no `` or ``adaptive ``.
171+ Default is empty string
172+ (``"" ``). Use ``compress ``
173+ instead.
174+ ========================= ======= ========== =============================
168175
169176Client specific settings
170177~~~~~~~~~~~~~~~~~~~~~~~~
@@ -221,8 +228,8 @@ type is one the following:
221228- lists
222229
223230For a list of all the OpenVPN configuration settings, refer to the
224- `OpenVPN 2.3 manual
225- <https://community. openvpn.net/openvpn/wiki/Openvpn23ManPage > `_.
231+ `OpenVPN 2.6 manual
232+ <https://openvpn.net/community-docs/community-articles/openvpn-2-6-manual.html > `_.
226233
227234.. _auth property source code : https://github.com/openwisp/netjsonconfig/blob/master/netjsonconfig/backends/openvpn/schema.py#L157-L186
228235
0 commit comments