I am encountering numerous errors attempting to use my OVPN openvpn configuration file in conjunction with the openvpn client installed on my router.
From the system logs this is what I am encountering
Sat Jan 28 14:07:11 2023 daemon.err openvpn(samopenvpn): WARNING: Failed running command (--up/--down): could not execute external program Sat Jan 28 14:07:11 2023 daemon.notice openvpn(samopenvpn): Exiting due to fatal error
Here are some salient points about this (note, point number four (4) is very important as it pertains to a slight modification of my ovpn config)
My equipment MR8300 Linksys router installed with openwrt (no issues with luci)
I have followed this guide which includes installation of openvpn client on openwrt. This has been tested with other OVPN files and it is working.
I have tested my current ovpn config on numerous desktop machines using openvpn as a client software without issue.
My current ovpn file was modified to include the following lines of code beneath script-security-2
script-security 2 up /etc/openvpn/update-resolv-conf down /etc/openvpn/update-resolv-conf
This was done according to the widely circulated recommendation to resolve DNS requests bypassing the VPN and causing DNS leaks. This fixed the DNS leaks for the windows and apple openvpn clients that I tested; but not the openwrt client.
Does anyone have any recommendations on how to debug this? I have SSH access to the server in which the openvpn server is installed. What is most puzzling about this is the DNS leaks are effectively fixed with the above amendments to the code (including the 'up' and 'down' commands inside the config.) Just.. the fix doesn't work for openwrt.