-
{
"log": {
"access": "/xray/access.log",
"error": "/xray/error.log",
"loglevel": "debug",
"dnsLog": true,
"maskAddress": ""
},
"dns": {
"servers": [
{
"address": "1.1.1.1",
"domains": ["geosite:geolocation-!cn"]
},{
"address": "223.5.5.5",
"domains": ["geosite:cn"],
"expectIPs": ["geoip:cn"]
},
{
"address": "114.114.114.114",
"domains": ["geosite:cn"]
},
"localhost"
]
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"domain": ["geosite:category-ads-all"],
"outboundTag": "block"
},
{
"type": "field",
"domain": ["geosite:cn"],
"outboundTag": "proxy"
},
{
"type": "field",
"domain": ["geosite:geolocation-!cn"],
"outboundTag": "proxy"
},
{
"type": "field",
"ip": ["223.5.5.5"],
"outboundTag": "direct"
},
{
"type": "field",
"ip": ["geoip:cn", "geoip:private"],
"outboundTag": "direct"
}
]
},
"inbounds": [
{
"tag": "socks-in",
"protocol": "socks",
"listen": "127.0.0.1",
"port": 10800,
"settings": {
"udp": true
}
}
],
"outbounds": [
{
"mux": {
"enabled": false
},
"tag": "proxy",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "xxx.xxx.xxx.xx",
"port": 1800,
"users": [
{
"user": "user",
"pass": "password"
}
]
}
]
}
},
{
"tag": "direct",
"protocol": "freedom"
},
{
"tag": "block",
"protocol": "blackhole"
}
]
} |
Beta Was this translation helpful? Give feedback.
Answered by
itxwh
Jun 19, 2025
Replies: 2 comments 1 reply
-
在公网中 socks(以及openssh等)协议会被阻断,连不上或者随机掉线是正常的。如果你本地测试也不通就发个issue吧。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
我選擇是shadowsocks,目前沒有發現問題、 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
好的感谢,本地socks是没问题的