OpenVPN / openvpn3

OpenVPN 3 is a C++ class library that implements the functionality of an OpenVPN client, and is protocol-compatible with the OpenVPN 2.x branch.
https://openvpn.net
Other
1k stars 401 forks source link

Cannot establish connection with user/pass ovpncli #271

Closed OPstriker closed 1 year ago

OPstriker commented 1 year ago

OS: Windows 10 Arch: x64 Driver: OVPN-DCO

I'm not really sure how auth-user-pass works, but I keep getting the UNKNOWN/UNSUPPORTED OPTIONS when I pass my user/pswd to ovpncli..., so I suspect my config has an option that's not supported, but I'm having issues finding it..

Command Passed:

>  .\ovpncli.exe --username <user> --password <pswd> C:/path/to/openvpn/profile.ovpn

Log:

CONNECTING...
Thread starting...
Sat May  6 13:42:33 2023 OpenVPN core 3.8_qa win x86_64 64-bit OVPN-DCO
Sat May  6 13:42:33 2023 Frame=512/2112/512 mssfix-ctrl=1250
Sat May  6 13:42:33 2023 NOTE: This configuration contains options that were not used:
Sat May  6 13:42:33 2023 Unsupported option (ignored)
Sat May  6 13:42:33 2023 5 [resolv-retry] [infinite]
Sat May  6 13:42:33 2023 7 [persist-key]
Sat May  6 13:42:33 2023 8 [persist-tun]
Sat May  6 13:42:33 2023 UNKNOWN/UNSUPPORTED OPTIONS
Sat May  6 13:42:33 2023 13 [pull]
Sat May  6 13:42:33 2023 14 [route-delay] [2]
connect error: option_error: sorry, unsupported options present in configuration: UNKNOWN/UNSUPPORTED OPTIONS
Thread finished
STATS:

Config:

client
dev tun1
proto tcp
remote <server> 443
remote <server> 443
resolv-retry infinite
nobind
persist-key
persist-tun
auth-user-pass
comp-lzo
verb 3
cipher AES-256-CBC
fast-io
pull
route-delay 2
redirect-gateway
<ca>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----
</key>
schwabe commented 1 year ago
Sat May  6 13:42:33 2023 UNKNOWN/UNSUPPORTED OPTIONS
Sat May  6 13:42:33 2023 13 [pull]
Sat May  6 13:42:33 2023 14 [route-delay] [2]

Are the optiosn the opnevpn3 core does not like. pull seems a bug. replace that with client for now.

OPstriker commented 1 year ago

@schwabe thanks for the reply, after removing pull and route-delay the VPN works without any issues, but it would be nice if these options were ignored if not available.