全球主机交流论坛
标题:
socks落地分流求助
[打印本页]
作者:
cced
时间:
2023-10-28 01:19
标题:
socks落地分流求助
vps上用DOCKER转socks的,参考
https://91ai.net/forum.php?mo ... amp;highlight=ivacy
这个帖子整的。
用 curl --proxy socks5h://127.0.0.1:1080 ipinfo.io 正常取得落地节点信息。
然后用X-UI架,使用正常,可解锁落地。然后此种情况下是全局模式,VPS流量不够。
开始折腾分流,折腾了各种方式,论坛、yt各种方法都参考了,就是死活上不去。全局正常。请各位大佬指点,谢谢。
分流配置如下 :
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"tag": "hbo",
"protocol": "socks",
"settings": {
"servers":[
{
"address": "127.0.0.1",
"port": 1080
}
]
}
}
],
"policy": {
"levels": {
"0": {
"handshake": 10,
"connIdle": 100,
"uplinkOnly": 2,
"downlinkOnly": 3,
"statsUserUplink": true,
"statsUserDownlink": true,
"bufferSize": 10240
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
},
{
"type": "field",
"outboundTag": "hbo", //这里能用别的名称,能和出站中的Tag对上即可
"domain": ["geosite:hbogoasia","geosite:hboasia","geosite:hbo","hbogoasia.ph","hbogoasia.sg","hbogoasia.in"]
}
]
}
},
"stats": {}
}
正常配置如下
正常使用,全局ph
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"inbounds": [
{
"listen": "127.0.0.1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
},
"tag": "api"
}
],
"outbounds": [
{
"protocol": "socks",
"settings": {
"servers":[
{
"address": "127.0.0.1",
"port": 1080
}
]
}
},
{
"protocol": "freedom",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"policy": {
"levels": {
"0": {
"handshake": 10,
"connIdle": 100,
"uplinkOnly": 2,
"downlinkOnly": 3,
"statsUserUplink": true,
"statsUserDownlink": true,
"bufferSize": 10240
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
}
]
},
"stats": {}
}
作者:
Dwight
时间:
2023-10-28 01:26
本帖最后由 Dwight 于 2023-10-28 01:27 编辑
入站是dokodemo,是还有nginx前置的吧
作者:
Dwight
时间:
2023-10-28 01:30
另外,可能是你没开sniff的缘故,匹配不到自定义网站
"sniffing": {
"enabled": true,
"destOverride": ["http", "tls"]
},
作者:
嘉然今天吃什么
时间:
2023-10-28 01:34
看得脑袋疼。
第30行,有一个逗号是中文逗号
作者:
cced
时间:
2023-10-28 23:12
@嘉然今天吃什么
用JSON校验工具检查过的。
@Dwight
加了,不是没用。
奇怪了,只要加路由规则分流就失联,但是这个 规则 应该没有错啊.
{
"type": "field",
"outboundTag": "hbo", //这里能用别的名称,能和出站中的Tag对上即可
"domain": ["geosite:hbogoasia","geosite:hboasia","geosite:hbo","hbogoasia.ph","hbogoasia.sg","hbogoasia.in"]
}
]
}
}
欢迎光临 全球主机交流论坛 (https://91ai.net/)
Powered by Discuz! X3.4