小姨子 Netflix 解锁 分流规则

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.       “tag”: “GoLaoyizi”,
  29.       “protocol”: “vmess”,
  30.       “streamSettings”: {
  31.         “network”: “ws”,
  32.         “security”: “tls”,
  33.         “tlsSettings”: {
  34.           “allowInsecure”: false
  35.         },
  36.         “wsSettings”: {
  37.           “path”: “ws”
  38.         }
  39.        },
  40.       “mux”: {
  41.         “enabled”: true,
  42.         “concurrency”: 8
  43.       },
  44.       “settings”: {
  45.         “vnext”: [
  46.           {
  47.             “address”: “自己改”,
  48.             “port”: 443,
  49.             “users”: [
  50.               {
  51.                 “id”: “自己改”,
  52.                 “security”: “auto”,
  53.                 “alterId”: 0
  54.               }
  55.             ]
  56.           }
  57.         ]
  58.       }
  59.     }
  60.   ],
  61. “routing”: {
  62.     “rules”: [
  63.       {
  64.             “type”: “field”,
  65.         “outboundTag”: “GoLaoyizi”,
  66.         “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”]
  67.       },
  68.       {
  69.         “type”: “field”,
  70.         “outboundTag”: “free”,
  71.         “network”: “udp,tcp”
  72.       }
  73.     ]
  74.   }
  75. }

复制代码

八合一脚本

  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”,”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”]
  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”,”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”]
  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.         “domainStrategy”: “UseIPv4”
  39.     }
  40.     },
  41.     {
  42.       “tag”:”IP6-out”,
  43.       “protocol”: “freedom”,
  44.       “settings”: {
  45.         “domainStrategy”: “UseIPv6”
  46.       }

复制代码

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

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

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注