Closed vazyme closed 2 years ago
You need to use openvpn agent, which is openvpn3 equivalent of OpenVPNServiceInteractive.
To try it out;
c:\Temp\openvpn\
omi_exe_path
at HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN
with empty value (it just have to be there, currently not used)c:\Temp\openvpn\openvpn\ovpnagent\win>ovpnagent.exe run
c:\Temp\openvpn\test\ovpncli>ovpncliagent.exe -w c:\Users\lev\vpns\example.ovpn
While openvpn3 agent code does impersonation as SYSTEM, you are supposed to run it as a system service.
@lstipakov Thanks for the guidance, I found that (example.ovpn) is different from openvpn2.X, but I can't find any example about openvpn3 config file, can you provide me?
I didn't understand openvpn3 so quickly, but I wanted to test it first.
Just feed it openvpn2 config, it will ignore unknown options.
@lstipakov ok, thank you for running the test program, but when I compare the openvpn2-gui2.5.5 client, I also use wintun and the same server. Why does the performance seem to be different? Test with iperf3: openvpn3 : 340M openvpn2 : 460M
I don't know - not enough data to analyze.
ok,thank you very much
@vazyme if you want a better performance, you might want to try out openvpn2.6git with dco driver. You could get an installer from https://github.com/lstipakov/openvpn-build/actions/runs/2414899431. To enable dco driver, use add windows-driver ovpn-dco-win
to your .ovpn
profile. This feature works on Windows 10 20H1 and newer.
@lstipakov Thanks, I learned about 2.6git you said, it seems that the encryption is transferred to the kernel, but it has not been released yet, is it stable now? Is there a release plan?
It hasn't been extensively tested yet but we are working on it. Tentative schedule is end of summer/beginning of autumn.
HI In openvpn2.x, SYSTEM authority is required to use wintun driver. I found that openvpn3 does not implement OpenVPNServiceInteractive, but why can it support wintun? Thanks in advance