Page 1 of 1

Order or arrangement of directives/option

Posted: Sun Apr 17, 2011 10:22 am
by rommel
Can I ask our respected teachers of openvpn to provide us the proper order or arrangement from the beginning option or directive in the server or client configuration so that we will know if there is a proper order of those directives execution.

Re: Order or arrangement of directives/option

Posted: Mon Apr 18, 2011 7:32 am
by janjust
as I stated before, there is no proper order; there are a few rules of thumb to keep in mind:

* some options can be specified only once; in this case the last option specified "wins". This applies to options like 'log', log-append', 'verb', most scripting related options
* some options can be specified multiple times; in that case the first one "wins" but the others are kept for backu; this applies mostly to 'remote' and '<connection>' blocks

Other than these caveats there is no order: it does not matter if you first specify 'ca' or 'cert' or 'key' or whatever.

Re: Order or arrangement of directives/option

Posted: Tue Apr 19, 2011 12:11 am
by rommel
Thanks alot. Now I get it.