Page 1 of 1

Replace options in ovpn file

Posted: Mon Oct 16, 2023 1:02 pm
by Eugeny1
I need to add options to the openvpn client, and can not perform it through daemon command line.
The only way seems to me modify supplied .ovpn file. Initially I add required options at the end of the file, but if file would appear to have same options earlier I am afraid config reader will stop on that option. Thus next idea is to add required options at the beginning of the config file.
But the correct way must be replacement of the options. Is there any ready-to-use solution for this - not requiring parsing config file myself?