Re: Can a configuration item be cleared in the server.conf file

Bo Berglund <[email protected]>
Newsgroups gmane.network.openvpn.user
Message-ID <[email protected]>
On Sat, 27 Jan 2024 09:45:10 +0100, Bo Berglund <[email protected]> wrote:

>On Mon, 22 Jan 2024 12:27:52 +0100, Gert Doering <[email protected]> wrote:
>
>>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
>
>So there is nothing that can be done?

To clarify:
It seems like there is a global conf file somewhere which is used by all
instances of the openvpn service, but I am confused by the various statements on
how to edit this file.

Please:
Exactly where is this file? ( /path/to/conffile )

The flag has to be removed from this very base file the services use...


-- 
Bo Berglund
Developer in Sweden
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.