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
I've implemented this on the tailscale-1.6 branch, using tailscale tip. See below for implementation details.
How do I coordinate the release with you? Will you notify me when 1.6 is out?
I couldn't get route-all-traffic to work between my Android emulator and Pixel device. Is the feature supposed to work yet? If so, I can dig deeper and provide logs if they're helpful.
I opted for integrating the feature in the peer list that is always displayed anyway. A default route is selected by tapping one of your peers:
The routing peer will be marked and appear first in the list of peers:
@eliasnaur, an exit node can't be used until two things happen first: a node itself has to "advertise" (offer) the route (e.g. tailscale up --advertise-routes=0.0.0.0/0,::/0 or a simpler UI) and then a network admin has to approve the route.
Sure - @eliasnaur this is what we have on the iOS side (note that some design details may change around a bit once @rosszurowski takes a design review)
It would be good to align our iOS and Android UX for exit nodes. @rosszurowski for thoughts on this
Yep. Just talking with @soniaappasamy about the design to see what the different considerations / states we need to build are. I should have something to share later today (early tomorrow EST at the latest).
I personally like Elia's design more, by using the same list of peers. It looks much simpler and I do not have to scan a different list than already present on the screen. But I guess if the ratio of non-exit nodes to exit-nodes is very large, Sonia's design might be better. Otherwise I prefer the single list.
@eliasnaur here's the design we're thinking for iOS. Android should follow the same general structure in a way that makes sense for Android. For example, swapping out iOS's AlertMenus for Android Menus. For the exit node picker itself, it makes the most sense to me to use a single-choice list AlertDialog, like Gmail's "Move to" feature. You know Android better than I do, and I trust your judgement on the translation. But if it'd save you time, I can prep Android specific mocks too.
The notification text and exit node icons are placeholders for now, but they should be easy to swap out. I'll get you and Sonia proper versions of both of those at some point today.
I was able to build an Android debug APK using the code in tailscale/tailscale-android#7, and signed in to a Tailnet with a node offering routes to 0.0.0.0/0,::/0
Nifty.
Menu selection to Route Traffic Via:
Selecting the node to route via:
Relaying through that node:
Disabling Routing via the node:
Relay node lost
Relay node is offline
Disabling the relay node
I think I am running into some weird things related to using a FreeBSD system as the exit node, which affect my MacOS laptop (and clearly unrelated to the Android build I'm running). I'll try again using a Linux system as the exit node.
After turning off the FreeBSD system and using an Ubuntu system to advertise routes to 0.0.0.0/0,::/0
I think default route is working for me, at least for IPv4. I've turned off Wi-fi on this phone, to make it use LTE. whatismyipaddress.com says my phone is 2607:fb90:X:X:X:X:X:X and 172.58.X.X.
2607:fb90 and 172.32.0.0/11 are T/Mobile IP ranges.
When I enable routing via my Ubuntu machine in the Tailscale app, whatismyipaddress.com says my IPv4 address is 135.180.X.X, and that IPv6 is not detected.
135.180.X.X is my sonic.net address, so the phone went over LTE to get to the house to the Ubuntu machine to route it back out.
IPv6 being broken is weird, I'll look into that more.
I can still reach the IPv6 web server running on the Ubuntu system, so IPv6 isn't broken altogether. It just seems like Android cannot get IPv6 packets past the Ubuntu system
Indeed I had problems getting the exit node to work (macOS). So what I meant is that the UI is ready, and I assume the remaining problem(s) is fixed in a Tailscale module upgrade.
Activity
bradfitz commentedon Feb 25, 2021
@eliasnaur, Tailscale 1.6 will let you route all your non-Tailscale traffic out one of your Tailscale node (like a traditional VPN).
We haven't decided a UI yet, but something like this perhaps:
Can you do something appropriate for Android?
(with one menu item being "Off (Local)" or equivalent)
Ultimately you need to set a pref. Here's how the CLI does it for
tailscale up:tailscale/cmd/tailscale/cli/up.go
Line 225 in ebf3f2f
cmd/tailscale: implement Tailscale 1.6 default route setting
eliasnaur commentedon Feb 28, 2021
I've implemented this on the
tailscale-1.6branch, using tailscale tip. See below for implementation details.How do I coordinate the release with you? Will you notify me when 1.6 is out?
I couldn't get route-all-traffic to work between my Android emulator and Pixel device. Is the feature supposed to work yet? If so, I can dig deeper and provide logs if they're helpful.
I opted for integrating the feature in the peer list that is always displayed anyway. A default route is selected by tapping one of your peers:
The routing peer will be marked and appear first in the list of peers:
Tapping it allow you to stop routing through it:
bradfitz commentedon Mar 1, 2021
@eliasnaur, an exit node can't be used until two things happen first: a node itself has to "advertise" (offer) the route (e.g.
tailscale up --advertise-routes=0.0.0.0/0,::/0or a simpler UI) and then a network admin has to approve the route.@soniaappasamy, can you share your iOS video with @eliasnaur?
soniaappasamy commentedon Mar 1, 2021
Sure - @eliasnaur this is what we have on the iOS side (note that some design details may change around a bit once @rosszurowski takes a design review)
It would be good to align our iOS and Android UX for exit nodes. @rosszurowski for thoughts on this
ios-default-routes-ui.mp4
eliasnaur commentedon Mar 1, 2021
Ok, thanks @soniaappasamy. I'll wait for @rosszurowski to approve your design to avoid redoing the UI more than once.
rosszurowski commentedon Mar 1, 2021
Yep. Just talking with @soniaappasamy about the design to see what the different considerations / states we need to build are. I should have something to share later today (early tomorrow EST at the latest).
tux21b commentedon Mar 1, 2021
I personally like Elia's design more, by using the same list of peers. It looks much simpler and I do not have to scan a different list than already present on the screen. But I guess if the ratio of non-exit nodes to exit-nodes is very large, Sonia's design might be better. Otherwise I prefer the single list.
eliasnaur commentedon Mar 1, 2021
FWIW, we could add an "exit nodes" section early in the peer list so they're easy to locate.
rosszurowski commentedon Mar 2, 2021
@eliasnaur here's the design we're thinking for iOS. Android should follow the same general structure in a way that makes sense for Android. For example, swapping out iOS's AlertMenus for Android Menus. For the exit node picker itself, it makes the most sense to me to use a single-choice list AlertDialog, like Gmail's "Move to" feature. You know Android better than I do, and I trust your judgement on the translation. But if it'd save you time, I can prep Android specific mocks too.
The notification text and exit node icons are placeholders for now, but they should be easy to swap out. I'll get you and Sonia proper versions of both of those at some point today.
cmd/tailscale: implement Tailscale 1.6 default route setting
cmd/tailscale: implement Tailscale 1.6 default route setting
cmd/tailscale: implement Tailscale 1.6 default route setting
19 remaining items
cmd/tailscale: implement Tailscale 1.6 default route setting
cmd/tailscale: implement Tailscale 1.6 default route setting
eliasnaur commentedon Mar 4, 2021
@rosszurowski, I've added you as reviewer for the PR that implements your final design.
cmd/tailscale: implement Tailscale 1.6 default route setting
cmd/tailscale: implement Tailscale 1.6 default route setting
DentonGentry commentedon Mar 11, 2021
I was able to build an Android debug APK using the code in tailscale/tailscale-android#7, and signed in to a Tailnet with a node offering routes to 0.0.0.0/0,::/0
Nifty.
Menu selection to Route Traffic Via:
Selecting the node to route via:
Relaying through that node:
Disabling Routing via the node:
Relay node lost
Relay node is offline
Disabling the relay node
I think I am running into some weird things related to using a FreeBSD system as the exit node, which affect my MacOS laptop (and clearly unrelated to the Android build I'm running). I'll try again using a Linux system as the exit node.
DentonGentry commentedon Mar 11, 2021
After turning off the FreeBSD system and using an Ubuntu system to advertise routes to 0.0.0.0/0,::/0
I think default route is working for me, at least for IPv4. I've turned off Wi-fi on this phone, to make it use LTE. whatismyipaddress.com says my phone is 2607:fb90:X:X:X:X:X:X and 172.58.X.X.
2607:fb90 and 172.32.0.0/11 are T/Mobile IP ranges.
When I enable routing via my Ubuntu machine in the Tailscale app, whatismyipaddress.com says my IPv4 address is 135.180.X.X, and that IPv6 is not detected.
135.180.X.X is my sonic.net address, so the phone went over LTE to get to the house to the Ubuntu machine to route it back out.
IPv6 being broken is weird, I'll look into that more.
DentonGentry commentedon Mar 11, 2021
With Tailscale disconnected, using the Wi-Fi in the house, https://ipv6test.google.com/ says that I have an IPv6 address.
With Tailscale connected but not using an exit node, using the Wi-Fi in the house, https://ipv6test.google.com/ says that I have an IPv6 address.
I am also able to connect from the Android phone over IP6 on Tailscale to a web server running on the Ubuntu system:
With Tailscale connected and using the Ubuntu system as an exit node, using the Wi-Fi in the house, https://ipv6test.google.com/ says that I do not have an IPv6 address.
I can still reach the IPv6 web server running on the Ubuntu system, so IPv6 isn't broken altogether. It just seems like Android cannot get IPv6 packets past the Ubuntu system
eliasnaur commentedon Mar 12, 2021
Indeed I had problems getting the exit node to work (macOS). So what I meant is that the UI is ready, and I assume the remaining problem(s) is fixed in a Tailscale module upgrade.
DentonGentry commentedon Mar 12, 2021
Yes. It is quite late here now, we expect to work on this tomorrow.
We'll track the effort in #1486
cmd/tailscale: implement Tailscale 1.6 default route setting
cmd/tailscale: implement Tailscale 1.6 default route setting