安卓使用避免两个软件创建系统VPN冲突
大概分为三个步骤
添加入站,填写auth-key等信息(tailscale后台生成)
proxies:
# Replace auth-key with a one-off Tailscale auth key before first start.
# This creates a separate tailnet device named android-box.
- name: Tailscale-Home
type: tailscale
hostname: android-box
auth-key: "tskey-auth-xxxxxxxx"
control-url: https://controlplane.tailscale.com
state-dir: /data/adb/box/mihomo/路径参考
ephemeral: false
udp: true
accept-routes: true
ip-version: ipv4-prefer
添加策略组选择Tailscale-Home
- {name: Home LAN, type: select, proxies: [Tailscale-Home, DIRECT, Proxy]}
添加规则,家里网段直连
rules:
- IP-CIDR,192.168.1.0/24,Home LAN,no-resolve
- IP-CIDR,192.168.0.0/24,Home LAN,no-resolve
- IP-CIDR,100.64.0.0/10,Home LAN,no-resolve