You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
userspace-networking as exit-node without IPv6 connectivity breaks Chrome 104+ #5425
Unable to browse websites through exit node on google chrome. Chrome returns a ERR_CONNECTION_RESET error. Firefox and Safari works fine. I ran a wireshark capture on the tailscale vpn tunnel and it appears that chrome is trying to access the ipv6 address of the website however the exit node's ISP does not have any ipv6 capability, which I think is the cause of this error. If chrome has previously cached the ipv4 address of that website then it will work fine, but if you try to use incognito mode or guest mode in chrome then the connection reset error appears.
Steps to reproduce
Advertise exit node on opnsense router.
Enable exit node in admin panel.
Activate exit node on tailscale client.
Attempt to browse websites using exit node. Chrome returns ERR_CONNECTION_RESET error. When exit node is disabled, browsing returns to normal as expected.
Use a different web browser and browsing works fine.
Are there any recent changes that introduced the issue?
Thanks for letting us know! Would you happen to know the ISP?
The ISP is TPG Australia.
I would like to add that I have replicated it on a windows machine as well. I have also used a different device (synology NAS) as an exit node and the same issue still persists.
This is similar to what is happening to me as of Chrome 104. It happens on all chromium based browsers as of 104. Anything before 104 works. Safari works fine, Firefox also works but only if I turn off DNS over HTTPS. Turning off secure DNS in chrome doesn't fix it. This happens on both Mac and Android 13.
We've got this tracked down to a change in how Chromium is choosing IPv6 routes over IPv4, regardless of the actual availability of that route. It's being advertised whether or not it works, and Chrome changed the priority of how it makes those attempts.
Our team is working on a fix, but it won't be immediately available. Because exit nodes are such a fundamental part of how Tailscale works, it's too late to make it into the next 1.30 release, because we'll need to some time to test and verify the changes. So, keep an eye out for 1.30.1 most likely.
In the meantime, if you can get IPv6 working, that's certainly an option. Failing that, you'll want to either use a non-Chromium browser, or a different exit node. What's happening is limited to certain types of exit nodes (like Synology, but not Raspberry Pi, for example), so changing either of those things should get things working for you until our fix makes its way out.
Many thanks for bringing this to our attention, and for working with us to get to the bottom of things! You can definitely follow along at #5425 for updates too.
Yes, thats dependent on my ISP. Which from my understanding they don't support IPv6 yet in my area. From what I am reading it may be coming soon. But it may only be business customers at first.
Chromium made a recent change that caused this. Thats why all my chromium based browsers before which believe was version 104 were working fine.
Just to add a little more context to the response from our support team that @Ookies posted above...
The recent change in Chromium to how it handles ipv6 and ipv4 connections when DNS queries return both types of address is discussed here. The problem arises when using a Tailscale exit node on a platform that uses userspace networking mode (basically everything other than Linux) AND when an outbound IPv6 connection is not available.
In these cases, Tailscale will accept Chrome 104's IPv6 connection (which it attempts first, per the recent change above), but will then fail to make an outbound IPv6 connection. From Chrome's perspective, the initial connection to the exit node succeeded, so it never fails over to IPv4. But because the exit node has no outbound IPv6 connectivity, it goes nowhere. This has always been the behavior in Tailscale, but because Chrome used to attempt IPv4 first, it was never noticed.
We have a working patch that fixes the issue by not establishing the client connection until we've verified that we also have an outbound connection. As noted above, we won't get this into 1.30, but shortly thereafter.
In the meantime, the only workarounds we've identified are doing one of:
use a different browser, something not based on Chromium 104
use a different exit node, one that doesn't use userspace networking (like a recent-ish linux box)
establish outbound ipv6 connectivity for your exit node
changed the title [-]opnsense router as exit node fails to open chrome[/-][+]userspace-networking as exit-node without IPv6 connectivity breaks Chrome 104+[/+]on Sep 5, 2022
Tailscale 1.30.1 has been released which includes the fix for this issue. The update needs to specifically be done on your exit node (not necessarily your client machines, though you might as well update them too 😄 ).
The 1.32.1 build was submitted to the Apple review process yesterday. That is usually days not weeks, but we have no control nor even visibility into it. It is done when Apple says it is done.
@edwardmp Please file a new issue, and make sure to include a tailscale bugreport while the problem is happening. It is likely not the same as this issue.
Activity
mclarence commentedon Aug 25, 2022
The ISP is TPG Australia.
I would like to add that I have replicated it on a windows machine as well. I have also used a different device (synology NAS) as an exit node and the same issue still persists.
DentonGentry commentedon Aug 28, 2022
Interesting. We know of cases where the opposite happens, that the IPv6 ULA that Tailscale uses discourages Chrome from using IPv6: #2299
ookees commentedon Aug 30, 2022
This is similar to what is happening to me as of Chrome 104. It happens on all chromium based browsers as of 104. Anything before 104 works. Safari works fine, Firefox also works but only if I turn off DNS over HTTPS. Turning off secure DNS in chrome doesn't fix it. This happens on both Mac and Android 13.
My exit node is a Mac running Monterey.
willnorris commentedon Aug 30, 2022
For folks seeing this issue, can you confirm whether you have outbound IPv6 connectivity on your network (specifically from your exit node)? I'm guessing that you don't. You can test at https://test-ipv6.com/
ookees commentedon Aug 30, 2022
Tailscale's response to my support email:
We've got this tracked down to a change in how Chromium is choosing IPv6 routes over IPv4, regardless of the actual availability of that route. It's being advertised whether or not it works, and Chrome changed the priority of how it makes those attempts.
Our team is working on a fix, but it won't be immediately available. Because exit nodes are such a fundamental part of how Tailscale works, it's too late to make it into the next 1.30 release, because we'll need to some time to test and verify the changes. So, keep an eye out for 1.30.1 most likely.
In the meantime, if you can get IPv6 working, that's certainly an option. Failing that, you'll want to either use a non-Chromium browser, or a different exit node. What's happening is limited to certain types of exit nodes (like Synology, but not Raspberry Pi, for example), so changing either of those things should get things working for you until our fix makes its way out.
Many thanks for bringing this to our attention, and for working with us to get to the bottom of things! You can definitely follow along at #5425 for updates too.
ookees commentedon Aug 30, 2022
Yes, thats dependent on my ISP. Which from my understanding they don't support IPv6 yet in my area. From what I am reading it may be coming soon. But it may only be business customers at first.
Chromium made a recent change that caused this. Thats why all my chromium based browsers before which believe was version 104 were working fine.
willnorris commentedon Aug 30, 2022
Just to add a little more context to the response from our support team that @Ookies posted above...
The recent change in Chromium to how it handles ipv6 and ipv4 connections when DNS queries return both types of address is discussed here. The problem arises when using a Tailscale exit node on a platform that uses userspace networking mode (basically everything other than Linux) AND when an outbound IPv6 connection is not available.
In these cases, Tailscale will accept Chrome 104's IPv6 connection (which it attempts first, per the recent change above), but will then fail to make an outbound IPv6 connection. From Chrome's perspective, the initial connection to the exit node succeeded, so it never fails over to IPv4. But because the exit node has no outbound IPv6 connectivity, it goes nowhere. This has always been the behavior in Tailscale, but because Chrome used to attempt IPv4 first, it was never noticed.
We have a working patch that fixes the issue by not establishing the client connection until we've verified that we also have an outbound connection. As noted above, we won't get this into 1.30, but shortly thereafter.
In the meantime, the only workarounds we've identified are doing one of:
wgengine/netstack: only accept connection after dialing
[-]opnsense router as exit node fails to open chrome[/-][+]userspace-networking as exit-node without IPv6 connectivity breaks Chrome 104+[/+]wgengine/netstack: only accept connection after dialing (#5503)
wgengine/netstack: only accept connection after dialing (#5503)
willnorris commentedon Sep 9, 2022
Tailscale 1.30.1 has been released which includes the fix for this issue. The update needs to specifically be done on your exit node (not necessarily your client machines, though you might as well update them too 😄 ).
If using a Synology NAS as your exit node, you'll need to manually download the package from https://pkgs.tailscale.com/stable/#spks and install it, since the Synology Package Center lags behind pretty significantly.
If you do still run into issues after updating your exist node to 1.30.1, let us know here in this issue.
patbranchaud commentedon Sep 9, 2022
Hello @willnorris, when should we expect an update on apple store? Thank you
willnorris commentedon Sep 9, 2022
I feel like "never as soon as we would like" is the correct response from developers everywhere? 😖
@DentonGentry would likely know what versions have been submitted to Apple for review.
In the meantime, you may already be aware, but there are several ways to run Tailscale on macOS which don't all rely on App Store approval.
DentonGentry commentedon Sep 9, 2022
The 1.32.1 build was submitted to the Apple review process yesterday. That is usually days not weeks, but we have no control nor even visibility into it. It is done when Apple says it is done.
patbranchaud commentedon Sep 9, 2022
Perfect thank you very much, I'll look into it
edwardmp commentedon Dec 14, 2022
DentonGentry commentedon Dec 14, 2022
@edwardmp Please file a new issue, and make sure to include a
tailscale bugreportwhile the problem is happening. It is likely not the same as this issue.