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

FR: Android add intents to toggle use exit node #8143

Open
DarkFox opened this issue May 15, 2023 · 0 comments · May be fixed by tailscale/tailscale-android#142
Open

FR: Android add intents to toggle use exit node #8143

DarkFox opened this issue May 15, 2023 · 0 comments · May be fixed by tailscale/tailscale-android#142
Labels
fr Feature request L2 Few Likelihood OS-android P1 Nuisance Priority level T0 New feature Issue type

Comments

@DarkFox
Copy link

DarkFox commented May 15, 2023

What are you trying to do?

In tailscale/tailscale-android#87 intents were added to connect or disconnect the VPN. It would be nice to also be able to toggle the use of an exit node, perhaps with the option to specify which exit node, using extra data.

How should we solve this?

No response

What is the impact of not solving this?

I'm currently turning on use exit node manually, when on untrusted networks.

Anything else?

No response

@DarkFox DarkFox added fr Feature request needs-triage labels May 15, 2023
@DentonGentry DentonGentry changed the title FR: Add intents to toggle use exit node FR: Android add intents to toggle use exit node May 27, 2023
@DentonGentry DentonGentry added OS-android L2 Few Likelihood P1 Nuisance Priority level T0 New feature Issue type and removed needs-triage labels May 27, 2023
333fred added a commit to 333fred/tailscale-android that referenced this issue Dec 9, 2023
Closes tailscale/tailscale#8143. I map friendly labels from intent extras to tailscale node IDs, with empty string or not specifying the `exitNode` intent extra as the "no exit node" action. When a bad exit node is specified, the app will helpfully display an "unknown exit node" error in the UI, but will not pop up anything. The tasker syntax I tested with locally is:

Action: `com.tailscale.ipn.USE_EXIT_NODE`
Package: `com.tailscale.ipn`
Class: `com.tailscale.ipn.IPNReceiver`
Target: Broadcast Receiver
Extra: `exitNode:exitNodeLabelOrEmpty`
Extra: `allowLanAccess:trueOrFalse`
333fred added a commit to 333fred/tailscale-android that referenced this issue May 3, 2024
Closes tailscale/tailscale#8143. I map friendly labels from intent extras to tailscale node IDs, with empty string or not specifying the exitNode intent extra as the "no exit node" action. When an error is encountered, we will push a notification with a friendly message to the status notification channel. The tasker syntax I tested with locally is:

Action: `com.tailscale.ipn.USE_EXIT_NODE`
Package: `com.tailscale.ipn`
Class: `com.tailscale.ipn.IPNReceiver`
Target: Broadcast Receiver
Extra: `exitNode:exitNodeLabelOrEmpty`
Extra: `allowLanAccess:trueOrFalse`

Signed-off-by: Fredric Silberberg <fred@silberberg.xyz>
333fred added a commit to 333fred/tailscale-android that referenced this issue May 3, 2024
Closes tailscale/tailscale#8143. I map friendly labels from intent extras to tailscale node IDs, with empty string or not specifying the exitNode intent extra as the "no exit node" action. When an error is encountered, we will push a notification with a friendly message to the status notification channel. The tasker syntax I tested with locally is:

Action: `com.tailscale.ipn.USE_EXIT_NODE`
Package: `com.tailscale.ipn`
Class: `com.tailscale.ipn.IPNReceiver`
Target: Broadcast Receiver
Extra: `exitNode:exitNodeLabelOrEmpty`
Extra: `allowLanAccess:trueOrFalse`

Signed-off-by: Fredric Silberberg <fred@silberberg.xyz>
333fred added a commit to 333fred/tailscale-android that referenced this issue May 3, 2024
Closes tailscale/tailscale#8143. I map friendly labels from intent extras to tailscale node IDs, with empty string or not specifying the exitNode intent extra as the "no exit node" action. When an error is encountered, we will push a notification with a friendly message to the status notification channel. The tasker syntax I tested with locally is:

Action: `com.tailscale.ipn.USE_EXIT_NODE`
Package: `com.tailscale.ipn`
Class: `com.tailscale.ipn.IPNReceiver`
Target: Broadcast Receiver
Extra: `exitNode:exitNodeLabelOrEmpty`
Extra: `allowLanAccess:trueOrFalse`

Signed-off-by: Fredric Silberberg <fred@silberberg.xyz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fr Feature request L2 Few Likelihood OS-android P1 Nuisance Priority level T0 New feature Issue type
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants