Luoboyun1 GB of trial traffic for new accounts, valid 24 hours, for Clash / Mihomo clientsAlipay, WeChat or cryptoSign upAdAdLuoboyun, 1 GB to tryFor new accounts, 24 hours, Alipay / WeChat / cryptoSign up
dl-tailscale.is
English
简体中文繁體中文EnglishРусскийفارسی

Clashes Compiled

Alongside a proxy or VPN

Phones allow one VPN; TUN mode grabs routes on computers; Alibaba Cloud uses 100.100 for DNS. What works together and the rules to add.

Where two lines cross, one has to give way
Where two lines cross, one has to give way Pi.1415926535, CC BY-SA 3.0

Tailscale handles only traffic to your own devices, so in theory it gets along with a proxy. In practice they collide in three places.

One cause: two programs want to decide where a packet goes. Tailscale only wants 100.64 to 100.127 and your subnets, the proxy everything else. Let each have its own.

On a phone: one or the other

Android and iOS allow a single VPN. Start the proxy app and Tailscale goes down.

  1. Exit node at homeonly Tailscale on the phone
  2. Proxy in the routeronly Tailscale on the phone
Two ways out on a phone

On a computer: it depends on the mode

The proxy's modeWith TailscaleWhat to do
System proxyUsually finePut 100.64.0.0/10 and ts.net on the bypass list
TUNOften takes the routesDirect rules, exclude the Tailscale process
Another full VPNUsually notChoose one

With a mihomo-based client put these rules first:

rules in the profile
rules:
  - IP-CIDR,100.64.0.0/10,DIRECT,no-resolve
  - DOMAIN-SUFFIX,ts.net,DIRECT
  - DOMAIN-SUFFIX,tailscale.com,DIRECT
  - PROCESS-NAME,tailscaled.exe,DIRECT

With fake-ip DNS add +.ts.net to fake-ip-filter. If the sign-in site does not open where you are, send the third rule through the proxy.

AdLuoboyunLines for your Clash / Mihomo, 1 GB on sign-up to use within 24 hours.Lines for Clash

On a server: Alibaba Cloud's 100.100

Alibaba Cloud's internal DNS and mirrors use addresses inside 100.64.0.0/10. Tailscale's firewall rule drops packets from that range, and the machine can no longer resolve any name. Issue 21249 describes it.

  1. Recognise it: apt update fails right after installing and no name resolves.
  2. Switch the system to public DNS and public mirrors.
  3. If that is not enough, tailscale up --netfilter-mode=nodivert or off, and manage the firewall yourself.

What is steadiest

Computer: the proxy as system proxy, Tailscale as usual. Enough for most.

TUN needed: it takes everything, with Tailscale's ranges, domains and process excluded.

Phone: put the proxy on a router or exit node at home and run only Tailscale.

Four exclusions

WhatTextWhy
Range100.64.0.0/10, fd7a:115c:a1e0::/48Between devices
Subnet routesYour 192.168.x.0/24Behind routers
Domainsts.net, tailscale.com, tailscale.ioNames, login
ProcesstailscaledIts own packets

In mihomo also by route:

tun
tun:
  enable: true
  auto-route: true
  route-exclude-address:
    - 100.64.0.0/10
    - fd7a:115c:a1e0::/48

Names go wrong

MagicDNS sets 100.100.100.100; the proxy wants DNS too. Either:

dns
dns:
  nameserver-policy:
    "+.ts.net": 100.100.100.100

or tailscale set --accept-dns=false and use addresses.

On a router

A proxy that takes the whole house also takes every device's punching, so all relay. Set UDP 41641 and 3478 direct, or exempt those devices. With Tailscale on the router, allow forwarding from tailscale0 to lan.

Others in 100.64

Some providers, companies and clouds use it too. ip route get address shows tailscale0 if they clash; an IP pool in the policy limits Tailscale to a part.

Order

  1. Only TailscaleWorks: fine
  2. Only the proxyWorks: fine
  3. Both, either firstTry
  4. RoutesWhere does 100.64 go
  5. DNSnslookup a name
  6. ExclusionsOne at a time
When it fails
Does userspace mode avoid this?

Yes. tailscaled with --tun=userspace-networking creates no adapter and offers a SOCKS5 proxy; good for containers, awkward day to day.

Does the order of starting matter?

It does; the later one tends to take the default route. When things break, quit both, start the proxy, then Tailscale.

A company VPN?

It often takes everything and forbids others; ask.

Game boosters?

Usually no conflict; otherwise exclude tailscaled.

Two VPNs on iPhone?

Not possible; use an exit node.

Read next

Neighbouring topics

Keywords on this page: Tailscale with another VPN, Tailscale and Clash, VPN conflict Tailscale