Skip to content

FR: Tailscale needs to work on MacOS when connected over OpenVPN #16652

Open

Description

@istathar

What are you trying to do?

Our staff are working at a remote customer site that has a considerably restricted network environment. If we are to use Tailscale's impressive features (app, grants, SSH, etc) then our staff there need to be able to ... connect to Tailscale. And because every corporate IT department on the planet considers Tailscale a VPN and thus an egress threat, Tailscale is blocked, in this case both by inhibiting DNS resolution of *.tailscale.com lookups and by blocking IP ranges.

We are allowed to initiate TLS tunnels to servers we control under our domain name, so as a workaround we have provisioned a commercial OpenVPN server. Our staff now have internet access!

We then attempted to connect to Tailscale. The Tailscale client connects from Linux over OpenVPN which is brilliant. However, it does not work from MacOS.

Extensive investigation and consultation with the Tailscale solutions team led to the realization that OpenVPN on MacOS is installing two half routes 0.0.0.0/1 and 128.0.0.0/1 which is apparently is their long-standing workaround to leaving the existing system default route in place but capturing all traffic and sending it through their interface instead by virtue of these routes being more specific and thus preferred to 0.0.0.0/0. Very clever of them.

The problem arises because the Tailscale client software is still using the default route as presented by the operating system to do DNS lookups and send packets. Because this default is on the restricted wifi network our staff find themselves on, the DNS lookups of e.g. controlplane.tailscale.com and the DERP servers fail, and packets attempting to be sent also are blocked, and thus the user is unable to connect.

Much as I would love to tell all our staff to run Linux, sadly in 2025 it is still not quite the Year Of The Linux Desktop so we have to accept the reality that people will attempt to connect their Mac laptops to Tailscale from this site.

How should we solve this?

If the Tailscale client on Macs could be convinced to either:

  • respect the system route table (and not attempt to identify the "default" out of some equally excessive burst of cleverness); or
  • be told which interface to use explicitly; or
  • recognize the signature OpenVPN routes and interface names and chose that as the outboind interface

then Tailscale's traffic would reach the internet over the perfectly viable route that is available to it, and we would be able to be customers of Tailscale again.

What is the impact of not solving this?

Users at our customer sites will not be able to reach to the services they need to do their assigned roles, which means we will not be able to use Tailscale ACL grants to authorize their access, which means we cannot decide to use Tailscale at our company for staff access to internal services. Already having had to buy OpenVPN to get access outbound was bad enough. Still not being able to use Tailscale even after doing this would really make it hard to continue justifying its use.

Activity

  1. istathar commented on Jul 25, 2025

    @istathar
    Author

    We were originally by sales to raise support tickets:

    https://tailscale.atlassian.net/servicedesk/customer/portal/1/TSS-58154
    https://tailscale.atlassian.net/servicedesk/customer/portal/1/TSS-58391
    https://tailscale.atlassian.net/servicedesk/customer/portal/1/TSS-58393

    The support team asked for bugs. These are already open:

    #1552
    #15957

    In particular the first was found by our CTO when trying to resolve this problem. This issue is being opened so we can discuss the appropriate approach to addressing this in the Tailscale client were we to attempt to solve this in code.

  2. added a commit that references this issue on Jul 25, 2025
    706cde8
  3. added
    OS-macos
    and removed on Aug 19, 2025
  4. halo commented on Jan 28, 2026

    @halo

    I'm afraid to ask, but is there any known workaround? Such as

    • teaching Tailscale to split-route out to the Internet without OpenVPN
    • compile the netmon code manually with a fix in it
    • change how OpenVPN installs its routes

    I saw your fantastic PR #16654 by the way, thank you! Hoping it'll get merged (it might need a rebase).

  5. istathar commented on Feb 4, 2026

    @istathar
    Author

    I'm afraid to ask, but is there any known workaround?

    We tried the split route thing (and variations thereof) and had some success, but it's horribly manual and of course not persistent. At the end of the day this needs to work out-of-the-box for a person who aren't experienced systems engineers.

  6. Nagato-Yuzuru commented on Nov 3, 2026

    @Nagato-Yuzuru

    We tried the split route thing (and variations thereof) and had some success, but it's horribly manual and of course not persistent.

    Same here, so I made it persistent: https://github.com/Nagato-Yuzuru/tsunderlay . I hope it helpful.

    Root cause: Tailscale on macOS pins its sockets to en0, so it never touches the VPN. TS_BIND_TO_INTERFACE_BY_ROUTE=true is supposed to fix that, but it chokes on the VPN gateway lookup (interfaceIndexFor() in net/netns) and quietly falls back to en0. Add a host route to the gateway via the utun and it just works.

    macOS + IPv4 only, and I haven't tried it on a network that blocks Tailscale outside the VPN.

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

    OS-macosfr

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions