Files
2026-03-01 01:43:46 +08:00

30 lines
1.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 任务
# 日志
网络大佬们,求教一个问题。
我们日常办公需要使用一个公司的 VPN 访问公司内网,这个 VPN 其实是启动了一个网卡我看,请问如何让我们公司的内网域名指定网卡或者有什么不错的方案针对这种场景呢?公司域名走公司 VPN,然后别的走我的 sing-box tun。
万分感谢。
![](../../../attachment/images-paste/image-20251116104520054.png)
```
TUN 入站:添加 route_exclude_address: ["12.0.0.0/16"]
出站新增:direct 出站 tag: "company-network"bind_interface: "controller",用于走公司 VPN 控制器网卡;
路由规则:为 domain_suffix: ["komect.net"] 指定出站 company-network
DNS 服务器:新增 Company-DNS,类型 udpserver: "12.0.0.1", detour: "company-network"
DNS 规则:domain_suffix: ["komect.net"] 使用 Company-DNS,策略 prefer_ipv4
```
# 总结
因为 mihomo 的设置问题,把自己的代理工具尝试切换到了 sing-box。
房东的弟弟来安灯了。没坚持到吃饭就掉了,因为是用双面胶粘贴的。