小姨子 Netflix 解锁 分流规则

103次阅读

共计 5215 个字符,预计需要花费 14 分钟才能阅读完成。

大佬帖子
https://hostloc.com/forum.php?mod=viewthread&tid=1059296

看了一下,分享一下分流规则

X-UI

  1. {
  2.   “api”: {
  3.     “services”: [
  4.       “HandlerService”,
  5.       “LoggerService”,
  6.       “StatsService”
  7.     ],
  8.     “tag”: “api”
  9.   },
  10.   “inbounds”: [
  11.     {
  12.       “listen”: “127.0.0.1”,
  13.       “port”: 62789,
  14.       “protocol”: “dokodemo-door”,
  15.       “settings”: {
  16.         “address”: “127.0.0.1”
  17.       },
  18.       “tag”: “api”
  19.     }
  20.   ],
  21.   “outbounds”: [
  22.     {
  23.       “tag”:”free”,
  24.       “protocol”: “freedom”,
  25.       “settings”: {}
  26.     },
  27.    
  28.     {
  29.       “tag”: “GoLaoyizi”,
  30.       “protocol”: “vmess”,
  31.       “streamSettings”: {
  32.         “network”: “ws”,
  33.         “security”: “tls”,
  34.         “tlsSettings”: {
  35.           “allowInsecure”: false
  36.         },
  37.         “wsSettings”: {
  38.           “path”: “ws”
  39.         }
  40.        },
  41.       “mux”: {
  42.         “enabled”: true,
  43.         “concurrency”: 8
  44.       },
  45.       “settings”: {
  46.         “vnext”: [
  47.           {
  48.             “address”: “ 自己改 ”,
  49.             “port”: 443,
  50.             “users”: [
  51.               {
  52.                 “id”: “ 自己改 ”,
  53.                 “security”: “auto”,
  54.                 “alterId”: 0
  55.               }
  56.             ]
  57.           }
  58.         ]
  59.       }
  60.     }
  61.   ],
  62. “routing”: {
  63.     “rules”: [
  64.       {
  65.             “type”: “field”,
  66.         “outboundTag”: “GoLaoyizi”,
  67.         “domain”: [“geosite:netflix”,”geoip:netflix”,”geosite:disney”,”geoip: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”]
  68.       },
  69.       {
  70.         “type”: “field”,
  71.         “outboundTag”: “free”,
  72.         “network”: “udp,tcp”
  73.       }
  74.     ]
  75.   }
  76. }

复制代码

八合一脚本

  1. # 编辑文件
  2. vim /etc/v2ray-agent/xray/conf/09_routing.json
  3. # 修改为以下内容
  4. {
  5.   “routing”: {
  6.     “domainStrategy”: “AsIs”,
  7.     “rules”: [
  8.      {
  9.         “type”: “field”,
  10.         “outboundTag”: “GoLaoyizi”,
  11.         “domain”: [“geosite:netflix”,”geoip:netflix”,”geosite:disney”,”geoip: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”]
  12.       },
  13.       {
  14.         “type”: “field”,
  15.         “outboundTag”: “free”,
  16.         “network”: “udp,tcp”
  17.       }
  18.     ]
  19.   }
  20. }
  21. # 编辑文件
  22. vim /etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json
  23. # 修改为以下内容
  24. {
  25.   “outbounds”: [
  26.   {
  27.       “tag”:”free”,
  28.       “protocol”: “freedom”,
  29.       “settings”: {}
  30.     },
  31.   {
  32.       “tag”: “GoLaoyizi”,
  33.       “protocol”: “vmess”,
  34.       “streamSettings”: {
  35.         “network”: “ws”,
  36.         “security”: “tls”,
  37.         “tlsSettings”: {
  38.           “allowInsecure”: false
  39.         },
  40.         “wsSettings”: {
  41.           “path”: “ws”
  42.         }
  43.       },
  44.       “mux”: {
  45.         “enabled”: true,
  46.         “concurrency”: 8
  47.       },
  48.       “settings”: {
  49.         “vnext”: [
  50.           {
  51.             “address”: “ 自己改 ”,
  52.             “port”: 443,
  53.             “users”: [
  54.               {
  55.                 “id”: “ 自己改 ”,
  56.                 “security”: “auto”,
  57.                 “alterId”: 0
  58.               }
  59.             ]
  60.           }
  61.         ]
  62.       }
  63.     }
  64.   ]
  65. }
  66. # 重启
  67. reboot

复制代码

wulabing

  1. # 打开配置文件
  2. vim /usr/local/etc/xray/config.json
  3. # 修改为以下内容
  4. {
  5.   “log”: {
  6.     “access”: “/var/log/xray/access.log”,
  7.     “error”: “/var/log/xray/error.log”,
  8.     “loglevel”: “warning”
  9.   },
  10.   “inbounds”: [
  11.     {
  12.       “port”: 41407,
  13.       “listen”: “127.0.0.1”,
  14.       “tag”: “VLESS-in”,
  15.       “protocol”: “VLESS”,
  16.       “settings”: {
  17.         “clients”: [
  18.           {
  19.             “id”: “ 安装时生成的 id”,
  20.             “alterId”: 0
  21.           }
  22.         ],
  23.         “decryption”: “none”
  24.       },
  25.       “streamSettings”: {
  26.         “network”: “ws”,
  27.         “wsSettings”: {
  28.           “path”: “/ 生成的路径 /”
  29.         }
  30.       }
  31.     }
  32.   ],
  33.   “outbounds”: [
  34.      {
  35.       “tag”:”free”,
  36.       “protocol”: “freedom”,
  37.       “settings”: {}
  38.     },
  39.     {
  40.       “tag”: “GoLaoyizi”,
  41.       “protocol”: “vmess”,
  42.       “streamSettings”: {
  43.         “network”: “ws”,
  44.         “security”: “tls”,
  45.         “tlsSettings”: {
  46.           “allowInsecure”: false
  47.         },
  48.         “wsSettings”: {
  49.           “path”: “ws”
  50.         }
  51.        },
  52.       “mux”: {
  53.         “enabled”: true,
  54.         “concurrency”: 8
  55.       },
  56.       “settings”: {
  57.         “vnext”: [
  58.           {
  59.             “address”: “ 自己改 ”,
  60.             “port”: 443,
  61.             “users”: [
  62.               {
  63.                 “id”: “ 自己改 ”,
  64.                 “security”: “auto”,
  65.                 “alterId”: 0
  66.               }
  67.             ]
  68.           }
  69.         ]
  70.       }
  71.     }
  72.   ],
  73.   “dns”: {
  74.     “servers”: [
  75.       “https+local://1.1.1.1/dns-query”,
  76.       “1.1.1.1”,
  77.       “1.0.0.1”,
  78.       “8.8.8.8”,
  79.       “8.8.4.4”,
  80.       “localhost”
  81.     ]
  82.   },
  83.   “routing”: {
  84.     “domainStrategy”: “AsIs”,
  85.     “rules”: [
  86.       {
  87.             “type”: “field”,
  88.         “outboundTag”: “GoLaoyizi”,
  89.         “domain”: [“geosite:netflix”,”geoip:netflix”,”geosite:disney”,”geoip: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”]
  90.       },
  91.       {
  92.         “type”: “field”,
  93.         “outboundTag”: “free”,
  94.         “network”: “udp,tcp”
  95.       }
  96.     ]
  97.   }
  98. }
  99. # 重启
  100. reboot

复制代码

关于分流,常用的 outbound 配置

  1. #SS
  2.     {
  3.       “protocol”: “shadowsocks”,
  4.       “settings”: {
  5.         “servers”: [
  6.           {
  7.             “address”: “ 自己改 ”,
  8.             “method”: “ 自己改(如 chacha20-ietf-poly1305”,
  9.             “ota”: false,
  10.             “password”: “ 自己改 ”,
  11.             “port”: 自己改         
  12.           }
  13.         ]
  14.       },
  15.       “tag”: “ 自己改 ”
  16.     }
  17. #socks
  18.     {
  19.             “tag”: “ 自己改 ”,
  20.             “protocol”: “socks”,
  21.             “settings”: {
  22.                 “servers”: [
  23.                     {
  24.                         “address”: “ 自己改 ”,
  25.                         “port”: 自己改,
  26.                         “users”: []
  27.                     }
  28.                 ]
  29.             }
  30.         }
  31. #vmess 等
  32. 见上
  33. #ipv4 v6 出站,双栈网络下 IPv6 优先级更高
  34.     {
  35.       “tag”:”IP4-out”,
  36.       “protocol”: “freedom”,
  37.       “settings”: {}
  38.     },
  39.     {
  40.       “tag”:”IP6-out”,
  41.       “protocol”: “freedom”,
  42.       “settings”: {
  43.         “domainStrategy”: “UseIPv6”
  44.       }

复制代码

关于 vim,按 i 进入编辑模式,编辑好了按 ESC,输入 :wq   然后 enter  即可保存退出

毕竟不是自己服务器,我把 address 与 id 留空了,请自己修改添加

网友回复:

注册 这玩意应该自己看看就懂的,不会用就该去学习,人越多越容易翻车

twentyone wulabing 怎么改啊大佬

adamlau 修改方法大同小异,#尝试找到配置文件位置 find / -name xray 复制代码 再对比,添加出口路由规则,

wugg 这个是要顶一下的

twentyone

StarkSands 确定 geosite:netflix”,”geoip:netflix” 可以写在一起,也就是都写在 domain 下?

正文完
 0