Order or arrangement of directives/option

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
rommel
OpenVpn Newbie
Posts: 17
Joined: Tue Apr 12, 2011 12:32 pm

Order or arrangement of directives/option

Post by rommel » Sun Apr 17, 2011 10:22 am

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.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Order or arrangement of directives/option

Post by janjust » Mon Apr 18, 2011 7:32 am

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.

rommel
OpenVpn Newbie
Posts: 17
Joined: Tue Apr 12, 2011 12:32 pm

Re: Order or arrangement of directives/option

Post by rommel » Tue Apr 19, 2011 12:11 am

Thanks alot. Now I get it.

Post Reply