@Viktor Jaep
I use vpn/wg in a similar manner. Rather than using both router UI and vpnmon to manage connections, I created a simple script to utilize
vpnmon server list automation. It just requires creating some directory structures in /opt/home to locate the .ovpn or .conf files provided
by you vpn provider. Out of habit I put the script in the bin directory I created.
agagne@rt-ax92u:/tmp/home/root# ls /opt/home
VPN1 WG1
VPN2 bin
Running the script:
agagne@rt-ax92u:/tmp/home/root# /opt/home/bin/gen-server-list-VPNMON-R3 vpn 1
zzz.xxx.yy.xxx
xxx.yyy.xx.zz
agagne@rt-ax92u:/tmp/home/root# /opt/home/bin/gen-server-list-VPNMON-R3 wg 1
ConnectionName,InterfaceIP/Sub,EndpointIP,EndpointPort,PrivateKey,PublicKey
The script will need some adjustment for PreSharedKey if that is needed.
Format: ConnectionName,InterfaceIP/Sub,EndpointIP,EndpointPort,PrivateKey,PublicKey,PreSharedKey(Opt)
Example: City WG,10.50.0.2/32,143.32.55.23,34334,fasdkaffkasdjfj=,221t949as2323kf=,23fj39fffjdaf=
Just add the full path for the script to vpnmon server list automation with the arguments appropriate for the slot you want to use and execute it.
Then run reset/reconnect. The script will read multiple config files if stored in the same directory.