Skip to content

FR: Userspace networking mode support for Android client #10126

Open

Description

@ruattd

What are you trying to do?

I'm trying to connect to tailnet without VPN service on Android devices.

How should we solve this?

Tailscale CLI has a "userspace networking mode" which offers a SOCKS5 or HTTP proxy, I just want the Android client to support it.

What is the impact of not solving this?

Similar to #8017 , but the apps providing proxy service often support more flexible filtering rules. For example, they can route only the required traffic (such as 100.0.0.0/8) to tailnet instead of all traffic.

Anything else?

No response

Activity

  1. Marven11 commented on Aug 6, 2024

    @Marven11

    Still waiting for this feature.

    I want to use Tailscale on my Android phone while visiting websites like YouTube and GitHub in China. To visit those websites, I need to connect to my proxy server via Clash Meta, which works as a VPN on my Android phone.

    I could have just configured Clash Meta to connect to Tailscale over a SOCKS5 proxy, and Clash Meta would have routed all the traffic correctly. Without the SOCKS5 proxy, I can still route the traffic to my computer over Tailscale and use Clash Meta there, but that would make the network much slower when I'm outside and not connected to my Wi-Fi.

    I believe there are numerous users who want to use Tailscale along with other proxies or VPNs, given the fact that things like YouTube, GitHub, and ChatGPT are blocked or extremely slow in China. And since many people don't have a public IPv4 address in China, software like Tailscale becomes even more important for accessing home networks.

  2. yqs112358 commented on Sep 14, 2024

    @yqs112358

    Sure, it will be great if we can have socks5 proxy on android.

    It's not only about VPNs but also something like ADBlock or ADGuard, or some security softwares which need an android VPN to work. It's gonna have a big impact on users all over the world.

  3. jiz4oh commented on Dec 4, 2024

    @jiz4oh

    +1

  4. Asutorufa commented on Jan 31, 2025

    @Asutorufa
    Contributor

    I tried to create a userspace-networking only tailscale android application https://github.com/Asutorufa/tailscaled-socks5-android, it works for me. Maybe you can use this temporarily.
    It uses exec.Command to run tailscaled daemon.
    You can ssh into it to run tailscale or login with auth key.
    The prebuild apk at github actions https://github.com/Asutorufa/tailscaled-socks5-android/actions.

    Update: I’ve found a successor that’s better than the one I made: https://github.com/SingerBallad/tailscaled-socks5-android. If anyone is interested in giving it a try, I think this new fork can offer a better user experience.

    Update: Here is another one https://github.com/bropines/tailsocks .

  5. Asutorufa commented on Feb 9, 2025

    @Asutorufa
    Contributor

    I tried to create a userspace-networking only tailscale android application https://github.com/Asutorufa/tailscaled-socks5-android, it works for me. Maybe you can use this temporarily. It uses exec.Command to run tailscaled daemon. You can ssh into it to run tailscale or login with auth key. The prebuild apk at github actions https://github.com/Asutorufa/tailscaled-socks5-android/actions.

    And I support direct connection to tailscale(tsnet) in my proxy kit https://github.com/yuhaiin/yuhaiin , it supports android and allows easy network bypass configuration at gui.

  6. yqs112358 commented on Jul 13, 2025

    @yqs112358

    Currently, we can use the solution in #410 to use 2 VPN apps together. In other words, use Working Profile and Every Proxy to archive the co-existing running of Tailscale and another Android VPN. Read the blog for more details:

    https://blog.openyq.top/posts/26027/

  7. punkice3407 commented on Sep 2, 2025

    @punkice3407

    +1

  8. 0kay64 commented on Sep 4, 2025

    @0kay64

    I tried to create a userspace-networking only tailscale android application https://github.com/Asutorufa/tailscaled-socks5-android, it works for me. Maybe you can use this temporarily. It uses exec.Command to run tailscaled daemon. You can ssh into it to run tailscale or login with auth key. The prebuild apk at github actions https://github.com/Asutorufa/tailscaled-socks5-android/actions.

    Image

    Hello, where can I read how to work with your application, I installed it, in the attached screenshot you can see that nothing is particularly clear, I googled the info and found nothing

  9. Asutorufa commented on Sep 4, 2025

    @Asutorufa
    Contributor

    @0kay64 I'm sorry it's so simple, the first line is the socks5 listening address, the second line is the ssh listening address, and the third line is the auth key.

    you can use ssh to connect with ssh 127.0.0.1/192.168.x.x -p 1056, and which has tailscale cli in it.
    Generate auth key at tailscale admin console(tailscale.com) [Settings -> Personal Settings -> Keys -> Auth Keys -> Generate auth key…]

  10. paulsavo-100 commented on Dec 1, 2025

    @paulsavo-100

    Hi there anyway to get a 32bit apk version?

    I use tailscale to connect remotely to my elderly parents android devices so i can control them for them

    However the access a lot off content with a vpn so as soon as i connect i lose my connection as tailscale disconnects

    This would prevent this from happening but all their devices are 32 bit ie google streamer

    Is there anyway you could help

    Thanks in advance

    Paul

  11. ge9 commented on Dec 29, 2025

    @ge9

    I made another solution to this problem.
    https://github.com/ge9/ts-proxy
    This can process traffic between local network and tailnet by port-forwarding or socks5 proxy, supporting both direction.
    Tested in Termux.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions