Problems with Browser Default Protocol and Fallback

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
bimmerdriver
OpenVPN Power User
Posts: 54
Joined: Thu Sep 08, 2016 7:56 pm

Problems with Browser Default Protocol and Fallback

Post by bimmerdriver » Thu Sep 08, 2016 8:39 pm

I'm using Mullvad's VPN service, which is based on openvpn, on a windows client. (FYI, I'm a satisfied Mullvad user and I'm happy with their support, but we have not been able to identify the cause of the issues I'm posting about here. I have discussed posting here with them and they have no problems with it.) I have ipv6 enabled. I use ipv6-test.com and test-ipv6.com to ensure things are working properly. I've found that ipv6 through openvpn is unreliable, and in particular, the browser default protocol and fallback do not behave the same through openvpn as they do using either native ipv6 or a hurricane electric tunnel.

I've tested using windows 7 and windows 10. I've tested used chrome, IE11 and edge. I've tested using Mullvad's client (several versions, including the latest, 60) and the latest openvpn client (2.3.12-1601). My router is pfsense. I've tested using openvpn through pfsense 2.3.1 with a hurricane electric tunnel and through pfsense 2.3.3 development with native ipv6. I've tested using all of Mullvad's servers around the world.

The symptoms are the following:

Using test-ipv6.com, it gives a 10/10 score but reports "Your browser has real working IPv6 address - but is avoiding using it. We're concerned about this."

Using ipv6-test.com, it gives a 19/20 score, but reports the browser default protocol is ipv4 and the fallback to ipv6 is unreliable. The fallback is really strange. The first time I run the test, it takes a long time and fails. If I run it to completion several times in a row, it starts working better. It might report "Fallback to ipv6 in 15 seconds" (or whatever), then fail again, then after a few times, it reports "Fallback to ipv6 in <1 second". If I keep refreshing the browser, it will get the same result. If I leave it alone for a few minutes, it will degrade. For curiosity, I tried refreshing it over and over for a few minutes to see if that would cause the browser to change to ipv6, but it did not. Maybe I didn't try it enough times.

When I disable openvpn, both tests consistently pass with 10/10 and 20/20, respectively and the browser defaults to ipv6. The results are the same, virtually 100% of the time.

It's as if there is a problem in the ipv6 support of openvpn. I'm wondering if anyone here has experienced the same thing and if there is a solution.

My client configuration is below:
Client Configuration
1
client
2
dev tun
3
proto udp
4
remote us.mullvad.net 1300
5
cipher AES-256-CBC
6
tun-ipv6
7
resolv-retry infinite
8
nobind
9
persist-key
10
persist-tun
11
comp-lzo
12
verb 3
13
remote-cert-tls server
14
ping-restart 60
15
service mullvadopenvpn
16
ping 10
17
ca ca.crt
18
cert mullvad.crt
19
key mullvad.key
20
crl-verify crl.pem
21
tls-cipher TLS-DHE-RSA-WITH-AES-256-CBC-SHA:TLS-DHE-RSA-WITH-CAMELLIA-256-CBC-SHA:TLS-DHE-RSA-WITH-3DES-EDE-CBC-SHA:TLS-DHE-RSA-WITH-AES-128-CBC-SHA:TLS-DHE-RSA-WITH-SEED-CBC-SHA:TLS-DHE-RSA-WITH-CAMELLIA-128-CBC-SHA

bimmerdriver
OpenVPN Power User
Posts: 54
Joined: Thu Sep 08, 2016 7:56 pm

Re: Problems with Browser Default Protocol and Fallback

Post by bimmerdriver » Tue Sep 13, 2016 4:51 pm

I'd really appreciate if anyone using openvpn with ipv6 enabled is experiencing the same issues that I described in the original post, which are defaulting to ipv4 rather than ipv6 and having intermittently slow fallback to the alternate protocol. Unless there is a problem with all of Mullvad's server configurations, this seems like a problem with openvpn.

Post Reply