全球主机交流论坛

标题: 【转】warp解锁奈飞,后台监控自动刷新ip 脚本 [打印本页]

作者: 吹风秀跳刀    时间: 2021-11-28 02:49
标题: 【转】warp解锁奈飞,后台监控自动刷新ip 脚本
本帖最后由 吹风秀跳刀 于 2021-11-28 15:53 编辑

分享 某位大佬的github脚本
https://github.com/luoxue-bot/warp_auto_change_ip

目前的warp ipv4可以解锁奈飞,但用一段时间会失效(大概1天-1周不等)
而每次执行重启命令restart wg-quick@wgcf   就会刷新它的ip
这个脚本就是每隔一段时间(可设置),检测一下解锁nf是否有效,如果失效了,不断重启warp直到刷出了可以解锁奈飞的ip

(此脚本使用warp的ipv4,但不影响ssh的正常登录)

注意:脚本需要挂在后台,可以使用screen
进入screen后运行脚本

设置:每隔多长时间检测一下ip的解锁是否有效
脚本36行            echo -e "Region: ${region} Done, monitoring..."
脚本37行            sleep 6
第37行的sleep 6可以改成任意时间,单位是秒,一般来说,1分钟即sleep 60就行,ip基本都可以存活一整天以上,不需要那么频繁的检测

(先进入screen)
wget https://github.com/luoxue-bot/warp_auto_change_ip/raw/main/warp_change_ip.sh && chmod +x warp_change_ip.sh && ./warp_change_ip.sh

如果之前没用安装过warp,首次运行脚本,根据提示"Is warp installed? [y/n] " 选择n,它会安装warp
然后再次运行脚本,选y

接下来,"Input the region you want(e.g. HK,SG):"
这个地方输入vps所在的国家名字,例如HK US SG UK
注意:一定要大写字母,小写不行
美国的小鸡不可能刷出新加坡的ip,所以填小鸡的真实位置即可

当显示“Region: XX Done, monitoring..."的时候,就说明ok了
从screen退出,运行流媒体检测脚本
bash <(curl -L -s check.unlock.media)
会看到“您的网络为: Cloudflare Warp”,ipv4可以解锁奈飞

和 "题字"(v2,trojan)    的使用相关:
先搭好 题字,确认是通的能上网。再运行这个,不需要额外的设置,直接就可以上网看奈飞了

开启warp后,ipv4的流量会被接管,这时无法申请域名的证书。停止,申请证书,再打开 即可

停止warp
systemctl stop wg-quick@wgcf
启动
systemctl start wg-quick@wgcf
重启
systemctl restart wg-quick@wgcf

--
解锁的效果图,新加坡,美国




作者: yanaxiao    时间: 2021-11-28 02:51
前排留名,感谢分享。
作者: shtdalao    时间: 2021-11-28 03:12
mark以下
作者: Earsum    时间: 2021-11-28 03:37
mark 感谢分享
作者: wifitry    时间: 2021-11-28 06:24
感谢分享
作者: 风轻    时间: 2021-11-28 07:15
现在ipv6的还有能解么
作者: shuang76    时间: 2021-11-28 09:26
码了再说 感谢分享
作者: toxiiis    时间: 2021-11-28 09:30
感谢分享~
作者: luckmc    时间: 2021-11-28 09:31
感谢分享
作者: 风轻    时间: 2021-11-28 11:59
只有ipv4,的小鸡怎么搞
作者: Ralph    时间: 2021-11-28 12:05
NB, 学习
作者: Pogues    时间: 2021-11-28 13:00
好东西
作者: 吹风秀跳刀    时间: 2021-11-28 14:10
风轻 发表于 2021-11-28 11:59
只有ipv4,的小鸡怎么搞

这个就是给ipv4小鸡用的
作者: 风轻    时间: 2021-11-28 15:27
吹风秀跳刀 发表于 2021-11-28 14:10
这个就是给ipv4小鸡用的

用warp的ipv4,自己ssh都上不去啊。。只能有ipv6的用吧
作者: 吹风秀跳刀    时间: 2021-11-28 15:52
风轻 发表于 2021-11-28 15:27
用warp的ipv4,自己ssh都上不去啊。。只能有ipv6的用吧

用这个脚本,不影响ssh登录
作者: ajeef    时间: 2021-11-28 15:55
screen 是临时的,重启就无效了
作者: trackcn    时间: 2021-11-28 16:01
为什么还需要这个呢
作者: 风轻    时间: 2021-11-28 16:08
ajeef 发表于 2021-11-28 15:55
screen 是临时的,重启就无效了

服务器,不考虑重启哈哈
作者: bamcky    时间: 2021-11-28 16:43
来个试试 感谢分享
作者: shijinqiang    时间: 2021-11-28 16:44
netflix也没什么好看的
作者: 风轻    时间: 2021-11-28 17:11
吹风秀跳刀 发表于 2021-11-28 15:52
用这个脚本,不影响ssh登录

我试了下,ssh登陆是没问题,如果建网站的话,好像都GG了
作者: hxy545680604    时间: 2021-11-28 18:35
感谢分享 我就说warp怎么解锁奈菲一会好一会不行
作者: Ralph    时间: 2021-11-28 20:09
NB。 自动的就很好啊。
作者: 卤蛋    时间: 2021-11-28 21:08
很吊的样子
作者: 泰阳    时间: 2021-11-29 00:05
大哥6666
作者: toxiiis    时间: 2021-11-29 09:28
Mark,感谢分享
作者: toxiiis    时间: 2021-11-29 09:48
大佬。。。。求助。。。再次运行脚本出现这个了:Resolving github.com (github.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘github.com’
咋整呀?
作者: 吹风秀跳刀    时间: 2021-11-29 09:51
toxiiis 发表于 2021-11-29 09:48
大佬。。。。求助。。。再次运行脚本出现这个了:Resolving github.com (github.com)... failed: Temporary ...

wget --no-check-certificate https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcp.sh && chmod +x tcp.sh && ./tcp.sh
可能是内核版本低于5.x了,先安装个bbr的1选项,就会装上高版本的内核
作者: toxiiis    时间: 2021-11-29 09:53
吹风秀跳刀 发表于 2021-11-29 09:51
wget --no-check-certificate https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcp.sh && chmod + ...

好嘞,我试试,感谢大佬~~进screen的命令是screen -S lnmp这个吗?还是有别的?
作者: 吹风秀跳刀    时间: 2021-11-29 09:57
本帖最后由 吹风秀跳刀 于 2021-11-29 10:01 编辑
toxiiis 发表于 2021-11-29 09:53
好嘞,我试试,感谢大佬~~进screen的命令是screen -S lnmp这个吗?还是有别的? ...


screen -S qwe
创建一个名字叫qwe的screen,
等完事了,按住ctrl+A+D,从qwe退出

screen -r qwe
就是再连进qwe

screen -ls
查看有几个screen窗口
作者: toxiiis    时间: 2021-11-29 09:59
吹风秀跳刀 发表于 2021-11-29 09:51
wget --no-check-certificate https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcp.sh && chmod + ...

完了,原来的vasma脚本进bbr进不去了。。。,用您给我的这个脚本也进不去
wget --no-check-certificate https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcp.sh && chmod +x tcp.sh && ./tcp.sh
--2021-11-29 01:58:09--  https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcp.sh
Resolving github.com (github.com)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘github.com’
这是啥情况哇~?
作者: 吹风秀跳刀    时间: 2021-11-29 10:02
toxiiis 发表于 2021-11-29 09:59
完了,原来的vasma脚本进bbr进不去了。。。,用您给我的这个脚本也进不去
wget --no-check-certificate h ...


systemctl stop wg-quick@wgcf
先停掉warp,再操作
作者: toxiiis    时间: 2021-11-29 10:03
大佬,关闭warp进去了,版本没问题呀,5..10了都

系统信息: Debian GNU/Linux 10 KVM x86_64 5.10.78-bbrplus
当前状态: 已安装 BBRplus 加速内核 , BBRplus启动成功
当前拥塞控制算法为: bbrplus 当前队列算法为: fq


作者: 吹风秀跳刀    时间: 2021-11-29 10:05
toxiiis 发表于 2021-11-29 10:03
大佬,关闭warp进去了,版本没问题呀,5..10了都

系统信息: Debian GNU/Linux 10 KVM x86_64 5.10.78-bbrp ...

你开启warp后
ping 外网的ip,比如ping 8.8.8.8能通吗
作者: toxiiis    时间: 2021-11-29 10:07
吹风秀跳刀 发表于 2021-11-29 10:05
你开启warp后
ping 外网的ip,比如ping 8.8.8.8能通吗

没试。。。这一套操作有没有针对小白的,哈哈哈,包括修改那个测试间隔的。。。。我得再研究研究,谢谢大佬~~~
作者: pqpq    时间: 2021-11-29 10:08
楼主,请问有IPV6的脚本吗?
作者: 大吊    时间: 2021-11-29 10:15
支持一下感谢有你!
作者: Joyace    时间: 2021-11-29 10:16
甲骨文能刷到新加坡ip吗
作者: 吹风秀跳刀    时间: 2021-11-29 10:18
Joyace 发表于 2021-11-29 10:16
甲骨文能刷到新加坡ip吗


只能刷到当地的ip,韩国日本什么的刷不出新加坡
而甲骨文新加坡本身就是解锁的(据之前的测试)
作者: pqpq    时间: 2021-11-29 13:59
可惜warp解锁已经被玩坏了,扫了半天都扫不到一个可用的Ip!
作者: yem    时间: 2021-12-1 12:20
pqpq 发表于 2021-11-29 13:59
可惜warp解锁已经被玩坏了,扫了半天都扫不到一个可用的Ip!

脚本问题 显示不能用 实际可用
作者: Earsum    时间: 2021-12-1 12:24
马克
作者: KevinSu    时间: 2021-12-1 12:26
感谢分享
作者: beastie    时间: 2021-12-1 12:40

感谢分享~
作者: langer    时间: 2021-12-1 18:05
MARK,顶

作者: nabesic    时间: 2021-12-1 18:54
感谢分享
作者: logo    时间: 2021-12-1 18:55
mark
作者: nike1999    时间: 2021-12-1 19:33
吹风秀跳刀 发表于 2021-11-29 09:51
wget --no-check-certificate https://github.com/ylx2016/Linux-NetSpeed/raw/master/tcp.sh && chmod + ...

这一步具体怎么操作  也遇到了一样的问题
作者: aLam    时间: 2021-12-1 19:34
好家伙 刷了半个钟还没有解锁ip
作者: cheese    时间: 2021-12-2 09:06
阿联酋该怎么解锁呢? 写AE和DXB都不行
作者: 吹风秀跳刀    时间: 2021-12-2 09:58
cheese 发表于 2021-12-2 09:06
阿联酋该怎么解锁呢? 写AE和DXB都不行

填UAE试试
作者: dole    时间: 2021-12-2 10:42
马克!
作者: fs6738    时间: 2021-12-2 11:12
本帖最后由 fs6738 于 2021-12-2 11:14 编辑

好用,感谢
作者: lwin    时间: 2021-12-2 11:25
本帖最后由 lwin 于 2021-12-2 11:35 编辑

virmach成功,腾讯云不成功:warp以后所有网站打不开
作者: shengzi    时间: 2021-12-2 16:23
好用,解救了RN



/**
* 明明只是活着,哀伤却无处不在
*
* Link https://greasyfork.org/zh-CN/scripts/396933-hostloc-zsbd
*/
作者: w138789    时间: 2021-12-2 16:28
mark一下,,,也许以后有用
作者: yaobiao314    时间: 2021-12-4 23:55
mark 一下 试用
作者: codion    时间: 2021-12-5 00:18
这个牛!
作者: 暖暖的微风    时间: 2021-12-5 08:25
迪士尼能解锁么
作者: xiaomao    时间: 2021-12-5 08:38
warp解锁 感谢分享
作者: faint32    时间: 2021-12-5 08:40
mark
作者: peiqi    时间: 2021-12-5 09:02
马克啊
作者: lzs5240    时间: 2021-12-7 18:39
Mark 目前自己用另一个小鸡解锁了
作者: ch3    时间: 2021-12-7 20:53
留言备用
作者: sobi188    时间: 2021-12-7 20:53
好厉害
作者: liuli    时间: 2021-12-8 11:55
不错很好用,我把美国搬瓦工的机器给解锁了。
作者: 逆风笑    时间: 2021-12-8 11:58
Mark
作者: zvkv    时间: 2021-12-8 11:59
mark 感谢分享
作者: annijack    时间: 2021-12-8 23:19
mark
作者: xuliliang    时间: 2021-12-8 23:34
mark
作者: a8866051    时间: 2021-12-8 23:49
重启服务器后需要重新配置吗?还是说可以做一个开机自启脚本?
作者: rru    时间: 2021-12-10 13:35
Failed to restart [email protected]: Unit [email protected] not found.
作者: micms    时间: 2021-12-10 13:37
技术大佬 mark
作者: Christos    时间: 2021-12-11 22:40
顶。。
作者: Christos    时间: 2021-12-11 23:00
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 systemd[1]: Starting WireGuard via wg-quick(8) for wgcf...
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip link add wgcf type wireguard
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] wg setconf wgcf /dev/fd/63
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip -4 address add 172.16.0.2/32 dev wgcf
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip -6 address add fd01:5ca1:ab1e:8d0d:abe5:44f6:a7a9:387/128 dev wgcf
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip link set mtu 1420 up dev wgcf
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] mount `8.8.8.8 8.8.4.4 2001:4860:4860::8888 2001:4860:4860::8844' /etc/resolv.conf
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] wg set wgcf fwmark 51820
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip -4 route add 0.0.0.0/0 dev wgcf table 51820
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip -4 rule add not fwmark 51820 table 51820
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip -4 rule add table main suppress_prefixlength 0
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] sysctl -q net.ipv4.conf.all.src_valid_mark=1
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] iptables-restore -n
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: /usr/bin/wg-quick: line 32: iptables-restore: command not found
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] umount /etc/resolv.conf
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip -4 rule delete table 51820
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip -4 rule delete table main suppress_prefixlength 0
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 wg-quick[98369]: [#] ip link delete dev wgcf
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 systemd[1]: [email protected]: Main process exited, code=exited, status=127/n/a
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 systemd[1]: [email protected]: Failed with result 'exit-code'.
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 systemd[1]: Failed to start WireGuard via wg-quick(8) for wgcf.
报错啊

作者: rqk666    时间: 2021-12-14 18:18
Dec 14 18:08:58 NoxiousLeft-VM systemd[1]: [email protected]: Failed with result 'exit-code'.
Dec 14 18:08:58 NoxiousLeft-VM systemd[1]: Failed to start WireGuard via wg-quick(8) for wgcf.
Dec 14 18:15:27 NoxiousLeft-VM systemd[1]: Starting WireGuard via wg-quick(8) for wgcf...
Dec 14 18:15:27 NoxiousLeft-VM wg-quick[1317]: [#] ip link add wgcf type wireguard
Dec 14 18:15:27 NoxiousLeft-VM wg-quick[1317]: Error: Unknown device type.
Dec 14 18:15:27 NoxiousLeft-VM wg-quick[1317]: Unable to access interface: Protocol not supported
Dec 14 18:15:27 NoxiousLeft-VM wg-quick[1317]: [#] ip link delete dev wgcf
Dec 14 18:15:27 NoxiousLeft-VM wg-quick[1317]: Cannot find device "wgcf"

我也报错了
作者: mazilong    时间: 2021-12-14 19:12
好帖
作者: pqpq    时间: 2021-12-16 14:13
本帖最后由 pqpq 于 2021-12-16 17:54 编辑

请教这一步怎么设置?还有用楼主的这个脚本,一直刷Ip 无论是美区还是港区我都还没成功过,另外一个warp一键脚本反而一次成功...

设置:每隔多长时间检测一下ip的解锁是否有效
脚本36行            echo -e "Region: ${region} Done, monitoring..."
脚本37行            sleep 6
第37行的sleep 6可以改成任意时间,单位是秒,一般来说,1分钟即sleep 60就行,ip基本都可以存活一整天以上,不需要那么频繁的检测
作者: charles97    时间: 2021-12-20 11:55
谢谢楼主,请教一下,不看奈飞的时候要不要停止warp?还有怎么看warp用的流量。谢谢
作者: 虚竹    时间: 2021-12-30 22:31
越来越难扫到,而且容易两三天就崩了
作者: BZGOGO    时间: 2021-12-30 22:48
感谢分享
作者: stingeo    时间: 2022-1-4 00:08
失效了哦~
作者: kimigao    时间: 2022-1-4 01:44
谢谢分享
作者: 剁手mjj    时间: 2022-1-4 03:52
mark
作者: Christos    时间: 2022-1-4 09:52

作者: ilufdy    时间: 2022-1-4 14:43
我用的是CFwarp的
作者: w138789    时间: 2022-1-4 14:56
rru 发表于 2021-12-10 13:35
Failed to restart : Unit  not found.

你这是服务没装

(先进入screen)
wget https://github.com/luoxue-bot/warp_auto_change_ip/raw/main/warp_change_ip.sh && chmod +x warp_change_ip.sh && ./warp_change_ip.sh

如果之前没用安装过warp,首次运行脚本,根据提示"Is warp installed? [y/n] " 选择n,它会安装warp
然后再次运行脚本,选y
作者: w138789    时间: 2022-1-4 14:58
a8866051 发表于 2021-12-8 23:49
重启服务器后需要重新配置吗?还是说可以做一个开机自启脚本?

这不是开机自启的问题..这个脚本是定时循环检测有没有被封..被封就会重启服务达到解锁目的
作者: w138789    时间: 2022-1-4 14:59
暖暖的微风 发表于 2021-12-5 08:25
迪士尼能解锁么

试了是可以解锁的...
作者: 暖暖的微风    时间: 2022-1-5 11:16
w138789 发表于 2022-1-4 14:59
试了是可以解锁的...

谢谢回复
作者: why33    时间: 2022-1-5 11:29
那是不是所有流量都走cf线路了,岂不是慢死了
作者: atXiang    时间: 2022-1-27 14:21
mark有用
作者: VPS小白白    时间: 2022-2-4 02:06
收藏~感谢分享,新年快乐
作者: crystalstudio    时间: 2022-2-4 02:44
感谢分享,收藏吃灰
作者: hostedu    时间: 2022-2-11 14:20
提示: 作者被禁止或删除 内容自动屏蔽




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4