Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android & mobile carriers using CGNAT #4827

Closed
garritfra opened this issue Jun 9, 2022 · 3 comments
Closed

Android & mobile carriers using CGNAT #4827

garritfra opened this issue Jun 9, 2022 · 3 comments

Comments

@garritfra
Copy link

What is the issue?

When I loose connection to my home wifi network while being connected to Tailscale, my android device isn't able to send and receive any data.

Please do let me know if this is a duplicate issue. I didn't find a ticket matching this description, but it might be that I'm missing some knowledge about the protocols in use.

Steps to reproduce

  1. Connect to home wifi
  2. Enable Tailscale connection through Tailscale app
  3. Leave wifi range, which causes a switch to mobile network

Expected

I am able to access internet services.

Actual

Connection is not possible.

Are there any recent changes that introduced the issue?

No response

OS

Android

OS version

Oxygen OS 11.10.10.AC01BA

Tailscale version

1.24.2

Bug report

BUG-33fc3daa0c3b386e34dcb8fc990e9e67edaf62d25120a7bea13719434f44759f-20220609083705Z-5bd6f838990ed3cd

@DentonGentry
Copy link
Contributor

DentonGentry commented Jun 10, 2022

Shortly before the BUG line:
2022-06-09 08:33:31.25621467 +0000 UTC: 23.0M/186.1M LinkChange: major, rebinding. New state: interfaces.State{defaultRoute= ifs={rmnet_data2:[100.95.x.y/29] rmnet_data3:[2a00:20:70c3:d7ce:q:r:s:t/64] tun0:[100.87.x.y/32 fd7a:115c:a1e0:ab12:w:x:y:z/128] wlan0:[192.168.178.37/24]} v4=true v6=true}

The mobile carrier uses CGNAT addresses which conflict with the Tailscale use of the range: rmnet_data2:[100.95.x.y/29]

One possible way to work around this is to disable the use of IPv4 addresses on your tailnet (the whole tailnet), and rely on IPv6. This can be done in https://login.tailscale.com/admin/acls:

{
  "disableIPv4": false,
  "acls": [ { "action": "accept", "src": ["*"], "dst": ["*:*"], },
}

@DentonGentry DentonGentry changed the title Internet connection breaks down when leaving wifi Android & mobile carriers using CGNAT Jun 10, 2022
@DentonGentry
Copy link
Contributor

Underlying issue is a duplicate of #1381

@DentonGentry DentonGentry closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2022
@garritfra
Copy link
Author

Thanks for the quick response and the workaround!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants