Timeouts trying to connect to over IPv4 to an IPv6 address

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
bhendin
OpenVpn Newbie
Posts: 1
Joined: Mon May 09, 2022 7:35 pm

Timeouts trying to connect to over IPv4 to an IPv6 address

Post by bhendin » Mon May 09, 2022 7:43 pm

My router runs OpenVPN server. My hostname is configured with both an A and AAAA record because I host some services over each protocol.
The OpenVPN server however only appears to support IPv4.

You can see in the log below that the OpenVPN Android client is attempting to make an IPv4 connection by using the AAAA record for my host.
I'm not sure how that makes sense since you can't communicate with an IPv6 address directly over IPv4.
I have to wait 30 seconds for several timeouts before it then properly connects over the IPv4 address.

It appears that once it connects it caches this for some period of time. It isn't really clear but at least 50% of the time if I disconnect and reconnect right after it doesn't try the AAAA. But if I leave the app and come back in just a minute or two later it usually goes through the whole process again.

Shouldn't there be a way to force this to only use IPv4 connection? There was a promising setting in the app, but it didn't affect this at all.

Code: Select all

18:30:47.195 -- ----- OpenVPN Start -----
...
18:30:47.214 -- Contacting [2600:1700:X:X]:1194 via TCPv4
18:30:47.214 -- EVENT: WAIT
18:30:57.207 -- Server poll timeout, trying next remote entry...
18:30:57.207 -- EVENT: RECONNECTING
18:30:57.212 -- EVENT: RESOLVE
18:30:57.216 -- Contacting [2600:1700:X:X:X:X]:1194 via TCPv4
18:30:57.216 -- EVENT: WAIT
18:31:07.232 -- Server poll timeout, trying next remote entry...
18:31:07.233 -- EVENT: RECONNECTING
18:31:07.238 -- EVENT: RESOLVE
18:31:07.241 -- Contacting [2600:1700:X:X:X:X]:1194 via TCPv4
18:31:07.241 -- EVENT: WAIT
18:31:17.239 -- Server poll timeout, trying next remote entry...
18:31:17.240 -- EVENT: RECONNECTING
18:31:17.244 -- EVENT: RESOLVE
18:31:17.247 -- Contacting 99.101.XXX.XXX:1194 via TCPv4
18:31:17.248 -- EVENT: WAIT
18:31:17.344 -- Connecting to [access.imydomain.com]:1194 (99.101.XXX.XXX) via TCPv4
...

Post Reply