I am using several ipsec roadworrior connections.
I would like to set rightdns for all connections PERMANENTLY
if you look at ipsec.conf (/ect/) all connections have the parameter rightdns set (by system) this way “rightdns=” by default.
I’d like to set it (for istance rightdns=192.168.0.1), but when add or remove a connection by GUI, all parameter are resetted to “rightdns=”.
I can’t even enter rightdns inside con %deafult beacuse all the rightdns= inserted below overwrite (so delete) the con &default rightdns=192.168.0.1
There is another file: ipsec.user.conf
I found the comment: # user connections that should not overwritten by the webif
but is unclear how to use it.
it is included inside the ipsec.conf but at the beginning of the file, before of all connections
So in the the rightdns= overwrite again any different setting
Do you know how to ser rightdns permanently for all connections?
Hoe can I use ipsec.user.conf
I was so concentrate to the files that I forgot to have a look at the GUI.
Anyway have you got an idea about why include ipsec.user.conf is at the beginning of ipsec.conf
(I mean this way all connections overwrite) and how can be used?
Looking through the git repo the entry of the ipsec.user.conf was made in 2010 in Core Update 38.
The commit says it was added to enable user defined connections to be defined that would not be overwritten by the WUI.
So to use it you have to manually enter the whole user connection line set for a custom entry, not just some individual commands. Of course, based on that it would also mean that those custom user connections would not show up at all in the WUI page.
So it looks like it was introduced for a different purpose as you were looking for.