You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Since 2.7.9 "route-method exe" can't set route #1151
OpenVPN 2.7.9 [git:v2.7.9/7b60c2aa34992639] Windows [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] [DCO] built on Nov 5 2026
Windows 11, connection startet via GUI without admin rights.
Problem:
Wed Nov 18 09:58:44 2026 C:\WINDOWS\system32\route.exe ADD 10.5.0.0 MASK 255.255.0.0 172.xx.xx.xx METRIC 200
Wed Nov 18 09:58:44 2026 env_block: add PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Wed Nov 18 09:58:44 2026 ERROR: Windows route add command failed: returned error code 1
with admin rights it's working.
Before e.g. 2026-11-18 09:39:37 us=312000 OpenVPN 2.7.6 [git:v2.7.6/327a33de2aa21883] Windows [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] [DCO] built on Aug 5 2026
it was also working without admin rights.
2026-11-18 09:39:45 us=656000 C:\WINDOWS\system32\route.exe ADD 10.5.0.0 MASK 255.255.0.0 172.xx.xx.xx METRIC 200
2026-11-18 09:39:45 us=656000 Route addition via service succeeded
The problem above occours when "route-method exe" is used.
Without exe, we have no problems.
From the past >10y ago, exe was the more reliable option to set routes inside a crapy os.
route-method exe never worked for an openvpn.exe binary started without admin privileges. Some documents on the Internet recommend running the OpenVPN GUI as run with administrator privileges which will end up running lots of code with admin privileges (not a good idea), and this was never necessary since 2.5.0, I think (which introduced the interactive service to do the routing table stuff).
Why it worked for you in 2.7.6 is the more interesting question - we did not change it in the code to make it stop working in 2.7.9, or actively drop privileges in openvpn.exe or the GUI, but maybe the installer removed the admin privs from the GUI on updating...
This said, it's unlikely someone will spend time on this, trying to figure out what changed in your installation - the expectation is that it will not work if run without admin privileges (so 2.7.9 behaves as expected), and the strong recommendation is to not run it with admin privs. Removing route-method exe should make it use the interactive service, which is a code path that must work all times. If not, please show a log of that.
For OpenVPN 2.8, it is currently planned to remove all route-method variants from the code completely, and the whole option will be made a no-op ("warn, but do not change behaviour"). Interactive service will remain.
thanks for the reference. This is curious indeed - it should have never worked on 2.7.8 - but it seems it did for unknown reasons (and our intend is to never break working client configs within a major release train, so that would be a regression). @lstipakov@d12fk any ideas?
The fix for CVE-2026-11534266faaa7 changed to order of the command line arguments passed from the service to openvpn. Since then --msg-channel comes before --config. This matters when there's a --route-method in the config, since --msg-channel has the side effect of setting the route-method to service, which is now overridden by any later --route-method passed as an option.
Quick fix is to remove the --route-method from your config or if route-method is pushed add pull-filter ignore "route-method" to your config. We'll restore the old behavior in the next release, but as @cron2 said, --route-method doesn't actually do anything when the interactive service is used and is a noop effectively (until now). Also true, that it will be removed in 2.8.
Activity
el0hh commentedon Nov 18, 2026
He seems to have the same problem.
https://forums.openvpn.net/d/46675-openvpn-279-route-add-methode-exe-and-adaptive/4
cron2 commentedon Nov 18, 2026
route-method exenever worked for an openvpn.exe binary started without admin privileges. Some documents on the Internet recommend running the OpenVPN GUI asrun with administrator privilegeswhich will end up running lots of code with admin privileges (not a good idea), and this was never necessary since 2.5.0, I think (which introduced the interactive service to do the routing table stuff).Why it worked for you in 2.7.6 is the more interesting question - we did not change it in the code to make it stop working in 2.7.9, or actively drop privileges in
openvpn.exeor the GUI, but maybe the installer removed the admin privs from the GUI on updating...This said, it's unlikely someone will spend time on this, trying to figure out what changed in your installation - the expectation is that it will not work if run without admin privileges (so 2.7.9 behaves as expected), and the strong recommendation is to not run it with admin privs. Removing
route-method exeshould make it use the interactive service, which is a code path that must work all times. If not, please show a log of that.For OpenVPN 2.8, it is currently planned to remove all
route-methodvariants from the code completely, and the whole option will be made a no-op ("warn, but do not change behaviour"). Interactive service will remain.cron2 commentedon Nov 18, 2026
thanks for the reference. This is curious indeed - it should have never worked on 2.7.8 - but it seems it did for unknown reasons (and our intend is to never break working client configs within a major release train, so that would be a regression). @lstipakov @d12fk any ideas?
d12fk commentedon Nov 18, 2026
I'll look into it
d12fk commentedon Nov 18, 2026
The fix for CVE-2026-115342 66faaa7 changed to order of the command line arguments passed from the service to openvpn. Since then
--msg-channelcomes before--config. This matters when there's a--route-methodin the config, since--msg-channelhas the side effect of setting the route-method toservice, which is now overridden by any later--route-methodpassed as an option.Quick fix is to remove the
--route-methodfrom your config or if route-method is pushed addpull-filter ignore "route-method"to your config. We'll restore the old behavior in the next release, but as @cron2 said,--route-methoddoesn't actually do anything when the interactive service is used and is a noop effectively (until now). Also true, that it will be removed in 2.8.cron2 commentedon Nov 18, 2026
Ooooh indeed. Thanks for hunting this.
Now, why was
route-method exeworking at all if going via the iservice andopenvpn.exeruns unprivileged???d12fk commentedon Nov 18, 2026
It was a NOOP. Overridden by
--msg-channelsetting route_method to service internally, because it came last.Edit: src/openvpn/options.c:6317
cron2 commentedon Nov 18, 2026
ah, of course. He who can read needs not ask stupid questions
this is what it says in the "success" case -
via service. Thanks again.d12fk commentedon Nov 18, 2026
https://gerrit.openvpn.net/c/openvpn/+/2219 fixes this
options: let the interactive service add routes again
options: let the interactive service add routes again
cron2 commentedon Nov 24, 2026
So, the fix from gerrit 2219 is in, and will be in 2.7.10 "to be released wednesday next week" (dec 2).
@d12fk I seem to remember we build windows snapshots from GH actions? Can you point @el0hh there for testing?