大佬帖子
https://hostloc.com/forum.php?mod=viewthread&tid=1059296
看了一下,分享一下分流规则
X-UI
- {
"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": [
{
"tag":"free",
"protocol": "freedom",
"settings": {}
},
{
"tag": "GoLaoyizi",
"protocol": "vmess",
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": false
},
"wsSettings": {
"path": "ws"
}
},
"mux": {
"enabled": true,
"concurrency": 8
},
"settings": {
"vnext": [
{
"address": "自己改",
"port": 443,
"users": [
{
"id": "自己改",
"security": "auto",
"alterId": 0
}
] }
] }
}
],
"routing": {
"rules": [
{
"type": "field",
"outboundTag": "GoLaoyizi",
"domain": ["geosite:netflix","geosite:disney","cdn.registerdisney.go.com","disneyplus.com","disney-plus.net","dssott.com","bamgrid.com","execute-api.us-east-1.amazonaws.com","global.edge.bamgrid.com"]
},
{
"type": "field",
"outboundTag": "free",
"network": "udp,tcp"
}
]}
}
八合一脚本
- #编辑文件
vim /etc/v2ray-agent/xray/conf/09_routing.json
#修改为以下内容
{
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"outboundTag": "GoLaoyizi",
"domain": ["geosite:netflix","geosite:disney","cdn.registerdisney.go.com","disneyplus.com","disney-plus.net","dssott.com","bamgrid.com","execute-api.us-east-1.amazonaws.com","global.edge.bamgrid.com"]
},
{
"type": "field",
"outboundTag": "free",
"network": "udp,tcp"
}
]}
}
#编辑文件
vim /etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json
#修改为以下内容
{
"outbounds": [
{
"tag":"free",
"protocol": "freedom",
"settings": {}
},
{
"tag": "GoLaoyizi",
"protocol": "vmess",
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": false
},
"wsSettings": {
"path": "ws"
}
},
"mux": {
"enabled": true,
"concurrency": 8
},
"settings": {
"vnext": [
{
"address": "自己改",
"port": 443,
"users": [
{
"id": "自己改",
"security": "auto",
"alterId": 0
}
] }
] }
}
]}
#重启
reboot
wulabing
- #打开配置文件
vim /usr/local/etc/xray/config.json
#修改为以下内容
{
"log": {
"access": "/var/log/xray/access.log",
"error": "/var/log/xray/error.log",
"loglevel": "warning"
},
"inbounds": [
{
"port": 41407,
"listen": "127.0.0.1",
"tag": "VLESS-in",
"protocol": "VLESS",
"settings": {
"clients": [
{
"id": "安装时生成的id",
"alterId": 0
}
],
"decryption": "none"
},
"streamSettings": {
"network": "ws",
"wsSettings": {
"path": "/生成的路径/"
}
}
}
],
"outbounds": [
{
"tag":"free",
"protocol": "freedom",
"settings": {}
},
{
"tag": "GoLaoyizi",
"protocol": "vmess",
"streamSettings": {
"network": "ws",
"security": "tls",
"tlsSettings": {
"allowInsecure": false
},
"wsSettings": {
"path": "ws"
}
},
"mux": {
"enabled": true,
"concurrency": 8
},
"settings": {
"vnext": [
{
"address": "自己改",
"port": 443,
"users": [
{
"id": "自己改",
"security": "auto",
"alterId": 0
}
] }
] }
}
],
"dns": {
"servers": [
"https+local://1.1.1.1/dns-query",
"1.1.1.1",
"1.0.0.1",
"8.8.8.8",
"8.8.4.4",
"localhost"
]},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"outboundTag": "GoLaoyizi",
"domain": ["geosite:netflix","geosite:disney","cdn.registerdisney.go.com","disneyplus.com","disney-plus.net","dssott.com","bamgrid.com","execute-api.us-east-1.amazonaws.com","global.edge.bamgrid.com"]
},
{
"type": "field",
"outboundTag": "free",
"network": "udp,tcp"
}
]}
}
#重启
reboot
关于分流,常用的outbound配置
- #SS
{
"protocol": "shadowsocks",
"settings": {
"servers": [
{
"address": "自己改",
"method": "自己改(如chacha20-ietf-poly1305",
"ota": false,
"password": "自己改",
"port": 自己改
}
] },
"tag": "自己改"
}
#socks
{
"tag": "自己改",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "自己改",
"port": 自己改,
"users": [] }
] }
}
#vmess等
见上
#ipv4 v6出站,双栈网络下 IPv6优先级更高
{
"tag":"IP4-out",
"protocol": "freedom",
"settings": {}
},
{
"tag":"IP6-out",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv6"
}
关于vim,按i进入编辑模式,编辑好了按ESC,输入 :wq 然后enter即可保存退出
毕竟不是自己服务器,我把address与id留空了,请自己修改添加
热议
推荐楼 adamlau 2022-8-11 23:03:51
这玩意应该自己看看就懂的,不会用就该去学习,人越多越容易翻车
3楼 wugg 2022-8-11 23:25:56
再对比,添加出口路由规则,
5楼 StarkSands 2022-8-11 23:51:59
这个是要顶一下的
6楼 comet 2022-8-12 05:26:15
顶
7楼 tombruse 2022-8-12 06:30:31
确定geosite:netflix","geoip:netflix"可以写在一起,也就是都写在domain下?
8楼 wpkzxp 1小时前
迪士尼能解锁吗
9楼 pqpq 1小时前
其实"小姨子"是什么意思呢?搞不懂...
10楼 51wing 半小时前
其实"小姨子"是什么意思呢?搞不懂...
估计是xyz的域名吧
12楼 jasper 半小时前
geosite直接配置进去就可以生效吗?我这里加上没有什么效果,是不是要下载一个geosite文件才可以
13楼 jinwyp 半小时前
费那事,直接用脚本自带小姨子解锁 , 神秘力量解锁就是小姨子, 还有不要用小姨子解锁d+ 没有star频道
https://github.com/jinwyp/one_click_script/blob/master/README_CN.md
14楼 Mgle 10分钟前
顶一下,感谢!
申明:本文内容由网友收集分享,仅供学习参考使用。如文中内容侵犯到您的利益,请在文章下方留言,本站会第一时间进行处理。
评论前必须登录!
立即登录 注册