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
977 stars 384 forks source link

connect error: buffer_full : allocated=1 size=0 offset=512 capacity=3088 newcap=7696 #143

Open gscheartA opened 3 years ago

gscheartA commented 3 years ago

I could connect openvpn by test cli.cpp in Project ovpncli. But every time I connect successfully, it will be disconnect in 10 seconds. I notice the error message "buffer_full" and I don'y know if I should change some setting. Before I debug the cli.cpp I firstly install wintun driver and successfully install a new wintun driver tunnel. I also could connect ovpn by "dev tun" in my profile. Is there any methods to stay the connection? Thank you in advance.

Here is the log from command line:

Successfully flushed the DNS Resolver Cache. Wed Jan 27 17:10:03 2021 Connected via wintun Wed Jan 27 17:10:03 2021 EVENT: CONNECTED 219.100.37.92:443 (219.100.37.92) via /TCPv4 on wintun/10.238.205.205/ gw=[10.238.205.206/] Wed Jan 27 17:10:13 2021 netsh interface ip delete address 54 10.238.205.205 gateway=all store=active

netsh interface ip delete route 219.100.37.92/32 15 10.64.25.1 store=active Ok.

netsh interface ip delete route 0.0.0.0/1 54 10.238.205.206 store=active Ok.

netsh interface ip delete route 128.0.0.0/1 54 10.238.205.206 store=active Ok.

netsh interface ip delete dnsservers 54 all validate=no

NRPT::ActionDelete ActionWFP openvpn_app_path=E:\OpenVPN3\build\test\ovpncli\Debug\ovpncli.exe tap_index=54 enable=0 WFPEngine closed ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache. Wed Jan 27 17:10:13 2021 EVENT: DISCONNECTED connect error: buffer_full : allocated=1 size=0 offset=512 capacity=3088 newcap=7696 Thread finished STATS: BYTES_IN : 42886 BYTES_OUT : 44901 PACKETS_IN : 94 PACKETS_OUT : 311

gscheartA commented 3 years ago

I also try it in client and this issue will also appear. I found everytime I refresh some page in browser, the connection will be disconnected in signaling tun destroy event and the error is also "buffer error". Here is my profile setting context:

dev tun proto tcp remote 219.100.37.92 443 ;http-proxy-retry ;http-proxy [proxy server] [proxy port] cipher AES-128-CBC auth SHA1 resolv-retry infinite nobind persist-key persist-tun client verb 3

Should I change or add some setting in the ovpn file?