Route deletion fails in last two community builds

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
gjf
OpenVpn Newbie
Posts: 8
Joined: Fri Jan 27, 2017 10:07 am

Route deletion fails in last two community builds

Post by gjf » Mon Jun 07, 2021 12:33 pm

Hi All.

Starting a few updates ago OpenVPN client fails to remove routes on my PC.
It happens with severl servers and server config does not matter (of course it should include route change).
My OS is Windows 10 Pro x64 21H1.

As an example, client.conf:

Code: Select all

client
dev tap
;dev-node MyTap
proto udp
remote aaa.com 31571
float
ncp-ciphers AES-128-GCM:AES-256-GCM:AES-128-CBC:AES-256-CBC
cipher AES-256-CBC
keepalive 15 60
auth-user-pass
mute-replay-warnings
remote-cert-tls server
<ca>
-----BEGIN CERTIFICATE-----
MIID
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
MIIE
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
MIIC
-----END PRIVATE KEY-----
</key>
<tls-crypt>
-----BEGIN OpenVPN Static key V1-----
0bf
-----END OpenVPN Static key V1-----
</tls-crypt>
resolv-retry infinite
nobind

The connectiion log:

Code: Select all

2021-06-06 13:08:12 Note: Treating option '--ncp-ciphers' as  '--data-ciphers' (renamed in OpenVPN 2.5).
2021-06-06 13:08:12 OpenVPN 2.5.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 21 2021
2021-06-06 13:08:12 Windows version 10.0 (Windows 10 or greater) 64bit
2021-06-06 13:08:12 library versions: OpenSSL 1.1.1k  25 Mar 2021, LZO 2.10
Enter Management Password:
2021-06-06 13:08:14 TCP/UDP: Preserving recently used remote address: [AF_INET]111.111.111.111:31571
2021-06-06 13:08:14 UDP link local: (not bound)
2021-06-06 13:08:14 UDP link remote: [AF_INET]111.111.111.111:31571
2021-06-06 13:08:15 [IntertechUkraine] Peer Connection Initiated with [AF_INET]111.111.111.111:31571
2021-06-06 13:08:16 WARNING: You have specified redirect-gateway and redirect-private at the same time (or the same option multiple times). This is not well supported and may lead to unexpected results
2021-06-06 13:08:16 open_tun
2021-06-06 13:08:16 tap-windows6 device [Подключение по локальной сети] opened
2021-06-06 13:08:16 Successful ARP Flush on interface [26] {E724CDB6-830E-4BC2-9B76-5716FF2297AA}
2021-06-06 13:08:16 Blocking outside dns using service succeeded.
2021-06-06 13:08:21 Warning: route gateway is not reachable on any active network adapters: 192.168.61.1
2021-06-06 13:08:21 Warning: route gateway is not reachable on any active network adapters: 192.168.61.1
2021-06-06 13:08:21 WARNING: OpenVPN was configured to add an IPv4 route. However, no IPv4 has been configured for Подключение по локальной сети, therefore the route installation may fail or may not work as expected.
2021-06-06 13:08:21 Warning: route gateway is not reachable on any active network adapters: 192.168.61.1
2021-06-06 13:08:21 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
2021-06-06 13:08:21 Initialization Sequence Completed
2021-06-06 13:08:35 ROUTE: route deletion failed using service: Элемент не найден.   [status=1168 if_index=26]
2021-06-06 13:08:35 ROUTE: route deletion failed using service: Элемент не найден.   [status=1168 if_index=26]
2021-06-06 13:08:35 Unblocking outside dns using service succeeded.
2021-06-06 13:08:35 SIGHUP[hard,] received, process restarting
2021-06-06 13:08:35 Note: Treating option '--ncp-ciphers' as  '--data-ciphers' (renamed in OpenVPN 2.5).
2021-06-06 13:08:35 OpenVPN 2.5.2 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 21 2021
2021-06-06 13:08:35 Windows version 10.0 (Windows 10 or greater) 64bit
2021-06-06 13:08:35 library versions: OpenSSL 1.1.1k  25 Mar 2021, LZO 2.10
2021-06-06 13:08:40 TCP/UDP: Preserving recently used remote address: [AF_INET]111.111.111.111:31571
2021-06-06 13:08:40 UDP link local: (not bound)
2021-06-06 13:08:40 UDP link remote: [AF_INET]111.111.111.111:31571
2021-06-06 13:08:40 [IntertechUkraine] Peer Connection Initiated with [AF_INET]111.111.111.111:31571
2021-06-06 13:08:41 WARNING: You have specified redirect-gateway and redirect-private at the same time (or the same option multiple times). This is not well supported and may lead to unexpected results
2021-06-06 13:08:42 open_tun
2021-06-06 13:08:42 tap-windows6 device [Подключение по локальной сети] opened
2021-06-06 13:08:42 Successful ARP Flush on interface [26] {E724CDB6-830E-4BC2-9B76-5716FF2297AA}
2021-06-06 13:08:42 Blocking outside dns using service succeeded.
2021-06-06 13:08:47 WARNING: OpenVPN was configured to add an IPv4 route. However, no IPv4 has been configured for Подключение по локальной сети, therefore the route installation may fail or may not work as expected.
2021-06-06 13:08:47 Initialization Sequence Completed
2021-06-06 13:19:11 Unblocking outside dns using service succeeded.
2021-06-06 13:19:11 SIGTERM[hard,] received, process exiting

As you can see, I have to restart the connection - and route deletion completes succesfully. So in fact I have to connect twice to make everything working.

As I said the same situation happens for any connection with different servers so I suspect it is pure client issue. Also please note this issue never happens two or three releases ago.

What is wrong?

Post Reply