Firmware Version 00.07.18.3
I manually created an initial OpenVPN client configuration which works fine.
As I wanted to redirect all traffic through the OpenVPN tun interface and avoid routing LAN traffic through WAN and Wifi client interface, I exported the manual configuration to a .ovpn file and editet it by appending the following line:
redirect-gateway def1
at the end of the parameter list just before the certificates section (see .zip content).
I disabled the intial OpenVPN configuration and created a new one by uploading the edited .ovpn file. When enabling the new configuration the log contained the following error:
542 Tue Nov 25 13:52:33 2025 daemon.err openvpn(inst2)[7175]: ERROR: Endtag missing
543 Tue Nov 25 13:52:33 2025 daemon.notice openvpn(inst2)[7175]: Exiting due to fatal error
Checking the uploaded .ovpn file it turned out that terminates the
-----END CERTIFICATE----- line without trailing linefeed.
After manual insertion of the missing linefeed and re-upload into a new configuration everything works fine including the intended routing through the tun interface.
Please could you check and comment the following:
-
consider offering the redirect-gateway def1 option via Web GUI so that it can be activated in manual configurations?
-
is the erroneous behaviour on a missing linefeed before the tag intended?
-
in the created export file the linefeed had already been missing.
OpenVPN_251124_redirect-gateway-a.zip (492 Bytes)
