使用wgcf激活小鸡新IP
系统DEBIAN 9
安装wireguard
引用 https://blog.kelu.org/tech/2020/05/17/debian-9-install-wireguard.html
sudo apt-get install libmnl-dev linux-headers-$(uname -r) build-essential make git # 安装必要的包
如果无法安装headlers,那么应该是内核偏老,先升级到比较新的内核
echo "deb http://deb.debian.org/debian/ unstable main" | tee /etc/apt/sources.list.d/unstable.list
echo -e "Package: *\nPin: release a=unstable\nPin-Priority: 150\n" | tee /etc/apt/preferences.d/limit-unstable
apt-get update
apt-get upgrade
apt-get install wireguard-dkms wireguard-tools
安装WGCF
curl -fsSL git.io/wgcf.sh | bash
注册 WARP 账户 (将生成 wgcf-account.toml 文件保存账户信息)
生成 WireGuard 配置文件 (wgcf-profile.conf)
wgcf register
wgcf generate
修改wgcf-profile.conf文件,interface下加入下面两条 你主机的真实IP,将其拷入 /etc/wireguard/ 下
PostUp = ip rule add from XXX.XXX.XXX.XXX lookup main
PostDown = ip rule delete from XXX.XXX.XXX.XXX lookup main
cp wgcf-profile.conf /etc/wireguard/wgcf.conf
启动关闭 wireguard的命令:
apt install openresolv
wg-quick up wgcf
wg-quick down wgcf
开机启动等命令:守护 开机。。。
systemctl start wg-quick@wgcf
systemctl enable wg-quick@wgcf
systemctl status wg-quick@wgcf
systemctl stop wg-quick@wgcf
systemctl restart wg-quick@wgcf
测试Netflix解锁
apt install curl jq -y
bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh")
https://www.920.im/deploy-cloudflare-warp-to-unlock-netflix-and-solve-google-recaptcha-problem/