教程文档

原文链接:https://bulianglin.com/archives/netflix-unlock.html

操作系统:Ubuntu 22.04

安装x-ui:

bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)

关闭防火墙:ufw disable

检测是否解锁奈飞:

#项目地址:https://github.com/sjlleo/netflix-verify

#下载检测解锁程序
wget -O nf https://github.com/sjlleo/netflix-verify/releases/download/v3.1.0/nf_linux_amd64 && chmod +x nf

#执行
./nf

#通过代理执行
./nf -proxy socks5://127.0.0.1:30000

一、原生IP解锁

有钱就行,略…

二、二级代理解锁

xray 配置模版:

//本地监听配置
{
    "listen": "127.0.0.1",
    "port": 30000, 
    "protocol": "socks", 
    "sniffing": {
        "enabled": true,
        "destOverride": ["http", "tls"]
    }
}

//路由规则
{
    "type": "field",
    "outboundTag": "netflix_proxy",
    "domain": [
        "geosite:netflix",
        "geosite:disney"
    ]
}

//二级代理
//填入你自己的解锁节点配置

三、WARP代理解锁

官方客户端不支持arm架构VPS

安装WARP:

#官方教程:https://pkg.cloudflareclient.com/install

#安装WARP仓库GPG 密钥:
curl https://pkg.cloudflareclient.com/pubkey.gpg | sudo gpg --yes --dearmor --output /usr/share/keyrings/cloudflare-warp-archive-keyring.gpg

#添加WARP源:
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/cloudflare-warp-archive-keyring.gpg] https://pkg.cloudflareclient.com/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/cloudflare-client.list

#更新APT缓存:
apt update

#安装WARP:
apt install cloudflare-warp

#注册WARP:
warp-cli register

#设置为代理模式(一定要先设置):
warp-cli set-mode proxy

#连接WARP:
warp-cli connect

#查询代理后的IP地址:
curl ifconfig.me --proxy socks5://127.0.0.1:40000

xray 完整配置模版:

{
  "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": {}
    },
    {
      "tag": "netflix_proxy",
"protocol": "vmess",
"settings": {
"vnext": [ { "address": "127.0.0.1", "port": 40000 } ] }
},
{ "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "rules": [ { "type": "field", "outboundTag": "netflix_proxy", "domain": [ "geosite:netflix", "geosite:disney" ] }, { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "ip": [ "geoip:private" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" } ] }, "stats": {} }

四、DNS劫持解锁

确保端口未被占用:53/80/443

解锁机设置:

#项目地址:https://github.com/myxuchangbin/dnsmasq_sniproxy_install

#下载脚本
wget --no-check-certificate -O dnsmasq_sniproxy.sh https://raw.githubusercontent.com/myxuchangbin/dnsmasq_sniproxy_install/master/dnsmasq_sniproxy.sh

#执行安装脚本
bash dnsmasq_sniproxy.sh

#关闭本地DNS服务
systemctl stop systemd-resolved && systemctl disable systemd-resolved && rm -rf /etc/resolv.conf && echo 'nameserver 8.8.8.8'>/etc/resolv.conf

节点服务器设置:

#关闭本地DNS服务
systemctl stop systemd-resolved && systemctl disable systemd-resolved 

#设置DNS服务器
rm -rf /etc/resolv.conf && echo 'nameserver 146.56.99.155'>/etc/resolv.conf

#默认优先ipv6,直接禁用ipv6
echo "1" > /proc/sys/net/ipv6/conf/all/disable_ipv6 

附录:

节点添加位置

完整节点配置语法

ps:可将节点配置放入v2n客户端连接正常、ping正常、测速正常之后,导出所选配置为客户端配置,截取outbunds节点信息部分(一般写作”tag”: “proxy”)

vmess+ws+tls

     {
      "tag": "netflix_proxy",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "xx.xxxx.com",
            "port": 443,
            "users": [
              {
                "id": "2031df321-22789hg-4d4e-feas1-j45k1masd0012ae",
                "alterId": 0,
                "email": "[email protected]",
                "security": "zero"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "ws",
        "security": "tls",
        "tlsSettings": {
          "allowInsecure": false
        },
        "wsSettings": {
          "path": "/ccvvs"
        }
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    }

完整节点配置语法vmess+tcp


    {
      "tag": "netflix_proxy",
      "protocol": "vmess",
      "settings": {
        "vnext": [
          {
            "address": "0.0.0.0",
            "port": 20801,
            "users": [
              {
                "id": "25685k23-e2356-33de-55697qs-2456asdqq",
                "alterId": 0,
                "email": "[email protected]",
                "security": "auto"
              }
            ]
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    }
{
      "tag": "netflix_proxy",
      "protocol": "shadowsocks",
      "settings": {
        "servers": [
          {
            "address": "xx.xx.00.00",
            "method": "chacha20-ietf-poly1305",
            "ota": false,
            "password": "9Jhgf768aQ",
            "port": 54321,
            "level": 1
          }
        ]
      },
      "streamSettings": {
        "network": "tcp"
      },
      "mux": {
        "enabled": false,
        "concurrency": -1
      }
    }
分类: Vps

0 条评论

发表回复

Avatar placeholder