全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
楼主: 吹风秀跳刀

[疑问] 【转】warp解锁奈飞,后台监控自动刷新ip 脚本

  [复制链接]
发表于 2021-12-8 23:49:13 | 显示全部楼层
重启服务器后需要重新配置吗?还是说可以做一个开机自启脚本?
发表于 2021-12-10 13:35:54 | 显示全部楼层
Failed to restart wg-quick@wgcf.service: Unit wg-quick@wgcf.service not found.
发表于 2021-12-10 13:37:05 | 显示全部楼层
技术大佬 mark
发表于 2021-12-11 23:00:09 | 显示全部楼层
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]: wg-quick@wgcf.service: Main process exited, code=exited, status=127/n/a
12月 11 14:57:52 centos-s-1vcpu-1gb-intel-sgp1-01 systemd[1]: wg-quick@wgcf.service: 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.
报错啊
发表于 2021-12-14 18:18:12 | 显示全部楼层
Dec 14 18:08:58 NoxiousLeft-VM systemd[1]: wg-quick@wgcf.service: 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"

我也报错了
发表于 2021-12-16 14:13:11 | 显示全部楼层
本帖最后由 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基本都可以存活一整天以上,不需要那么频繁的检测
发表于 2021-12-20 11:55:03 | 显示全部楼层
谢谢楼主,请教一下,不看奈飞的时候要不要停止warp?还有怎么看warp用的流量。谢谢
发表于 2021-12-30 22:31:50 | 显示全部楼层
越来越难扫到,而且容易两三天就崩了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-25 13:34 , Processed in 0.099916 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表