Order or arrangement of directives/option
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 17
- Joined: Tue Apr 12, 2011 12:32 pm
Order or arrangement of directives/option
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.
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Order or arrangement of directives/option
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.
* 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.
-
- OpenVpn Newbie
- Posts: 17
- Joined: Tue Apr 12, 2011 12:32 pm
Re: Order or arrangement of directives/option
Thanks alot. Now I get it.