Loading...
Loading...
Compare original and translation side by side
operation not permittedbe-child sshhttp_proxyNO_PROXYoperation not permittedbe-child sshhttp_proxyNO_PROXYenv | grep -i proxyNO_PROXYhttp_proxy=http://127.0.0.1:1082
https_proxy=http://127.0.0.1:1082
NO_PROXY=localhost,127.0.0.1 ← Missing Tailscale!NO_PROXYexport NO_PROXY=localhost,127.0.0.1,.ts.net,100.64.0.0/10,192.168.*,10.*,172.16.*| Entry | Covers | Why |
|---|---|---|
| MagicDNS domains ( | Matched before DNS resolution |
| Tailscale IPs ( | Precise CIDR, no public IP false positives |
| RFC 1918 private networks | LAN should never be proxied |
.ts.net100.64.0.0/10undefinedenv | grep -i proxyNO_PROXYhttp_proxy=http://127.0.0.1:1082
https_proxy=http://127.0.0.1:1082
NO_PROXY=localhost,127.0.0.1 ← 缺少Tailscale相关配置!NO_PROXYexport NO_PROXY=localhost,127.0.0.1,.ts.net,100.64.0.0/10,192.168.*,10.*,172.16.*| 配置项 | 覆盖范围 | 原因 |
|---|---|---|
| MagicDNS域名( | 在DNS解析前匹配 |
| Tailscale IP段( | 精确的CIDR范围,不会误匹配公网IP |
| RFC 1918私有网络 | 局域网流量永远不应被代理 |
.ts.net100.64.0.0/10undefined
Then persist in shell config (`~/.zshrc` or `~/.bashrc`).
然后将配置持久化到shell配置文件(`~/.zshrc`或`~/.bashrc`)。route -n get <tailscale-ip>destination: 100.64.0.0
interface: utun7 # Tailscale interface (utunN varies)destination: 100.64.0.0
gateway: 192.168.x.1 # Default gateway
interface: en0 # Physical interface, NOT Tailscalenetstat -rn | grep 100.64100.64/10 192.168.x.1 UGSc en0 ← Proxy added this (wins)
100.64/10 link#N UCSI utun7 ← Tailscale route (loses)UGScUCSIroute -n get <tailscale-ip>destination: 100.64.0.0
interface: utun7 # Tailscale接口(utunN编号不固定)destination: 100.64.0.0
gateway: 192.168.x.1 # 默认网关
interface: en0 # 物理接口,而非Tailscale接口netstat -rn | grep 100.64100.64/10 192.168.x.1 UGSc en0 ← 代理添加的路由(优先级更高)
100.64/10 link#N UCSI utun7 ← Tailscale路由(优先级更低)UGScUCSItun-excluded-routes100.64.0.0/10→ en0IP-CIDR,100.64.0.0/10,DIRECT
IP-CIDR,fd7a:115c:a1e0::/48,DIRECTroute -n get <tailscale-ip>tun-excluded-routes100.64.0.0/10→ en0IP-CIDR,100.64.0.0/10,DIRECT
IP-CIDR,fd7a:115c:a1e0::/48,DIRECTroute -n get <tailscale-ip>undefinedundefinedoperation not permitted"action": "accept""ssh": [
{
"action": "accept",
"src": ["autogroup:member"],
"dst": ["autogroup:self"],
"users": ["autogroup:nonroot", "root"]
}
]"action": "check""accept"operation not permitted"action": "accept""ssh": [
{
"action": "accept",
"src": ["autogroup:member"],
"dst": ["autogroup:self"],
"users": ["autogroup:nonroot", "root"]
}
]"action": "check""action": "accept"be-child sshundefinedbe-child sshundefined
Look for:
**Fix** — replace snap with apt installation:
```bash
查找以下日志内容:
**修复方案** — 替换snap安装版本为apt安装版本:
```bash
**Important**: The new installation may assign a different Tailscale IP. Check with `tailscale status --self`.
**重要提示**:新安装的Tailscale可能会分配不同的Tailscale IP。使用`tailscale status --self`查看。undefinedundefined
All three must pass. If step 1 fails, revisit Step 3. If step 2 fails, check WSL sshd or firewall. If step 3 fails, revisit Steps 4-5.
三项测试必须全部通过。如果步骤1失败,返回步骤3重新检查。如果步骤2失败,检查WSL的sshd服务或防火墙。如果步骤3失败,返回步骤4-5重新检查。