sing-box
sing-box copied to clipboard
SFM 会自动更改系统hostname
操作系统
macOS
系统版本
Sonoma 14.5
安装类型
sing-box for macOS 图形客户端程序
如果您使用图形客户端程序,请提供该程序版本。
1.9.3
版本
No response
描述
原hostname是在macOS的系统设置内设置的,如
~> hostname
MacBook-Pro.local
关闭SFM的代理后系统hostname会被自动改成局域网IP
~> hostname
192.168.0.42
重新开启会恢复。使用命令行没有该问题,但命令行程序在macOS下无法正确代理DNS。这导致我部分workflow出现问题,希望能得到修复/恢复方案
重现方式
开启/关闭SFM开关即可,(可能)需要有TUN inbound,没有详细测试。下面是当前的配置,去除了没关系的一些rules
{
"dns": {
"servers": [
{ "address": "https://1.1.1.1/dns-query" },
{
"tag": "local",
"address": "https://223.5.5.5/dns-query",
"detour": "direct"
}
],
"rules": [
{
"outbound": "any",
"server": "local"
}
]
},
"inbounds": [
{
"type": "mixed",
"tag": "mixed-in",
"listen": "0.0.0.0",
"listen_port": 7892,
"sniff": true
},
{
"type": "tun",
"inet4_address": "172.19.0.1/30",
"inet6_address": "fdfe:dcba:9876::1/126",
"auto_route": true,
"strict_route": true,
"sniff": true
}
],
"outbounds": [
{
"type": "trojan",
"tag": "proxy",
"server": "",
"server_port": ,
"password": "",
"tls": {
"enabled": true,
"server_name": ""
},
"multiplex": {
"enabled": true
}
},
{
"type": "direct",
"tag": "direct"
},
{
"type": "block",
"tag": "block"
},
{
"type": "dns",
"tag": "dns-out"
}
],
"route": {
"rules": [
{
"protocol": "dns",
"outbound": "dns-out"
},
{
"ip_is_private": true,
"outbound": "direct"
},
{
"rule_set": [
"geoip-cn",
"geosite-cn",
"geosite-geolocation-cn"
],
"outbound": "direct"
},
{
"rule_set": "geosite-category-ads-all",
"outbound": "block"
}
],
"rule_set": [
{
"type": "remote",
"tag": "geoip-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs"
},
{
"type": "remote",
"tag": "geosite-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs"
},
{
"type": "remote",
"tag": "geosite-geolocation-cn",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-geolocation-cn.srs"
},
{
"type": "remote",
"tag": "geosite-category-ads-all",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs"
}
],
"final": "proxy",
"auto_detect_interface": true
}
}
日志
No response
支持我们
- [ ] 我已经 赞助
完整性要求
- [X] 我保证阅读了文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
- [X] 我保证提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
- [X] 我保证提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
- [X] 我保证提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。