If your router's VPN carries only IPv4, block direct IPv6 access for any traffic that needs to go through the VPN. If everything you use on your home network works over IPv4, one simple option is to disable IPv6 internet access on the active connection. If you need IPv6, route it through the VPN or restrict direct access only for the devices that need the VPN, if your setup allows it. RFC 7359 on traffic leaking outside a VPN.
Why do some services still fail when the VPN is on?
Say you've set up your home router so your TV can reach a streaming service through a VPN. The rule works for IPv4. If your TV also has IPv6 and the router still routes that traffic directly through your ISP, the app may reach the service over IPv6. If the service is unavailable over that direct route, the app may hang or show an error even though the router dashboard says the VPN is connected.
When all traffic from a device is supposed to use the VPN, a direct connection exposes that connection's public IPv6 address to the site. With split routing, make sure the rules for selected devices or services cover both IP versions. For example, the pbr package for OpenWrt has IPv6 policy handling disabled by default. pbr documentation.
What's the difference between IPv4 and IPv6?
IPv4 and IPv6 are two ways to address devices and deliver data over a network. An IPv4 address looks like 192.168.1.1, and an IPv6 address looks like 2001:db8::1. IPv6 has a much larger address space. Both protocols can run at the same time on a home network. This is called dual stack.
When you open a website, DNS can return an IPv4 address in a record of type A, an IPv6 address in a record of type AAAA or both. Your browser or app chooses how to connect. Many modern clients try both options with a short delay between attempts. This is called Happy Eyeballs, and it helps when the first connection cannot be established. If the connection opens and fails later, the client may not automatically fall back to IPv4. AAAA records · Happy Eyeballs and its limitations.
What matters for users in Russia
If you route only selected services through the VPN, check that your rules cover both possible paths. IPv6 availability varies across Russian networks. You may have direct IPv6 access on your home network and see different results on the same device over mobile data. APNIC publishes measurements for Russia and for individual networks. APNIC measurements for Russia.
What else can go wrong when both routes are available?
- The device gets an IPv6 address, but the route to the service is unreliable. For example, a site may publish both types of address while connections to its IPv6 address keep dropping. You might notice this on only a few sites or on just one network.
- The device uses a different DNS server. A router can advertise a DNS server address over IPv6. If it advertises its own address, it can still forward queries using the encrypted DNS service you've configured. The problem arises when the device chooses a resolver your setup is meant to avoid. How routers advertise DNS server addresses.
- The connection opens, but data transfer stalls. A page might start loading, only for a video or a large file transfer to stall. One possible cause is a failure to discover the maximum packet size (MTU), especially on a route through a tunnel. This symptom alone cannot establish the cause. How IPv6 path MTU discovery works.
How to disable direct IPv6 internet access on your router
First, back up your router settings and make sure IPv4 works on the connection. If you're making changes remotely, check beforehand that you can restore the previous configuration if you lose access.
- Keenetic/Netcraze. Open the settings for your active internet connection and find the IPv6 section. If this connection offers the option “Disabled”, select it. With PPPoE, the IPv6 settings may be under the connection's advanced options. Keenetic instructions · Netcraze instructions.
- OpenWrt. In LuCI, open Network → Interfaces. In many setups, IPv6 is handled by a separate interface called
wan6. If that interface carries only IPv6 and IPv4 uses another interface, temporarily stopwan6. To keep the change after reboot, turn off automatic startup for that interface. With PPPoE, check the main connection settings because it may create an IPv6 interface automatically. Turning offwan6alone may leave IPv6 active on other connections or tunnels. OpenWrt interface settings.
After making the change, reconnect the device to Wi-Fi and open the service you want to use. An address like fe80::… may still appear. It is a link-local IPv6 address and does not by itself indicate IPv6 internet access.
If you'd like a specialist to handle setup, see how we configure Keenetic/Netcraze routers remotely.
If you're still choosing firmware, read about how vanilla OpenWrt differs from stock firmware and which network settings it gives you access to.
How to check the result
- Pick a specific site and action. Write down exactly where it stalls, such as loading a page, signing in, or starting a video. Compare results on the same device and network.
- Test both protocols. If you're comfortable using a terminal, run the two commands below. Replace
example.comwith the domain of a site that's giving you trouble and has both IPv4 and IPv6 addresses. In Windows PowerShell, usecurl.exe.
curl -4 -I --max-time 10 https://example.com/
curl -6 -I --max-time 10 https://example.com/
If you disabled IPv6 internet access, expect the site to respond over IPv4 and the IPv6 connection to fail. If you kept IPv6 and routed it through the VPN, a successful response from both commands confirms the site is reachable but does not show which route the traffic took. An address lookup error may mean the domain has no DNS record of type AAAA. These commands check whether the site responds to a request for HTTP headers. For videos, apps, and VPNs, also repeat the specific action that stalled. curl options.
If the problem appears only when the VPN is on, compare behavior with and without it, if your network setup allows. Change one setting at a time to see what affects the result.
When to leave IPv6 enabled
If your ISP, devices, or services rely on IPv6, keep it enabled and set up routing and firewall rules for both IP versions. If your VPN supports IPv6, send any traffic that requires VPN protection through the tunnel. If your VPN supports only IPv4 but other devices need IPv6, restrict direct access for the devices or network segment that needs the VPN. OpenVPN documentation on IPv6.
If the service still won't load after you've blocked direct IPv6 access, check whether it is reachable through the VPN and review your DNS settings. Switching to IPv4 alone won't fix a problem with those settings.
If you need help troubleshooting, tell us your router model, ISP, and exactly what stopped working. That's enough to start investigating.
If you're choosing a device for your home network, the OWRT TEAM catalog includes preconfigured OpenWrt routers. When you order, we can discuss which devices and services should use the VPN.
View setup services →