Re: Can a configuration item be cleared in the server.conf file
Gert Doering <[email protected]>
| Newsgroups | gmane.network.openvpn.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On Mon, Jan 22, 2024 at 11:27:41AM +0100, Jochen Bern wrote:
> .02) OpenVPN prioritizes command line parameters over statements in config
> files on the theory that someone probably typed them in for *this*
> particular execution of the openvpn binary
It doesn't. It depends on ordering
openvpn --config myconfig.ovpn --something foo
will make "--something foo" override any occurance of "--something" in
the config file, because it's coming *later*
openvpn --something foo --config myconfig.ovpn
in this case, the config file will "win".
Later occurances of the same option override prior occurances - which
for obvious reasons does not work for "turn this on" flags with no
parameter.
gert
--
"If was one thing all people took for granted, was conviction that if you
feed honest figures into a computer, honest figures come out. Never doubted
it myself till I met a computer with a sense of humor."
Robert A. Heinlein, The Moon is a Harsh Mistress
Gert Doering - Munich, Germany [email protected]
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users
smime.p7s
(application/x-pkcs7-signature, 3.6 KB) - not displayed