可以通过修改sing box的配置文件来指定监听端口,文件位置:
/Users/mcj/Library/Group Containers/group.io.nekohasekai.sfa/configs/config_1.json
从配置文件中可以看到,socks监听端口是2333,混合监听端口是2334:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
{ "dns":{ "rules":[ { "outbound":[ "any" ], "server":"local" }, { "disable_cache":true, "geosite":[ "category-ads-all" ], "server":"block" }, { "clash_mode":"global", "server":"remote" }, { "clash_mode":"direct", "server":"local" }, { "geosite":"cn", "server":"local" } ], "servers":[ { "address":"https:\/\/1.1.1.1\/dns-query", "detour":"\u8282\u70b9\u9009\u62e9", "tag":"remote" }, { "address":"https:\/\/223.5.5.5\/dns-query", "detour":"direct", "tag":"local" }, { "address":"rcode:\/\/success", "tag":"block" } ], "strategy":"prefer_ipv4" }, "experimental":{ "clash_api":{ "external_controller":"127.0.0.1:9090", "secret":"" } }, "inbounds":[ { "auto_route":true, "domain_strategy":"prefer_ipv4", "endpoint_independent_nat":true, "inet4_address":"172.19.0.1\/30", "inet6_address":"2001:0470:f9da:fdfa::1\/64", "mtu":9000, "sniff":true, "sniff_override_destination":true, "stack":"system", "strict_route":true, "type":"tun" }, { "domain_strategy":"prefer_ipv4", "listen":"127.0.0.1", "listen_port":2333, "sniff":true, "sniff_override_destination":true, "tag":"socks-in", "type":"socks", "users":[ ] }, { "domain_strategy":"prefer_ipv4", "listen":"127.0.0.1", "listen_port":2334, "sniff":true, "sniff_override_destination":true, "tag":"mixed-in", "type":"mixed", "users":[ ] } ], "outbounds":[ { ] }, ] } ], "route":{ "auto_detect_interface":true, "rules":[ { "geosite":"category-ads-all", "outbound":"block" }, { "outbound":"dns-out", "protocol":"dns" }, { "clash_mode":"direct", "outbound":"direct" }, { "clash_mode":"global", "outbound":"\u8282\u70b9\u9009\u62e9" }, { "geoip":[ "cn", "private" ], "outbound":"direct" }, { "geosite":"cn", "outbound":"direct" } ] } } |




最新评论
同样
站长您好,亚马逊云咨询推广资源,望建立联系,可邮件,谢谢。
换友情链接吗?
看你的站做的挺不错的
恭喜!!太强了,硕博连读啊
雁过留毛,人过留名。
看不懂但大受震撼
每天都在战争,希望2026和平.