爱快创建OpenWrt虚拟机,自动优选ip

爱快创建OpenWrt虚拟机,自动优选ip
无趣openwrt固件定制地址https://openwrt.ai/
爱快虚拟机要下载这个固件
下面是虚拟机设置
接下来点击vnc,修改OpenWrt的网络ip
1、以root的身份登录;
2、修改/etc/config/network文件:
vim /etc/config/network
按i或者insert键,把 option gateway ‘192.168.1.1’改成自己需要的IP地址,如192.168.100.2,再按ESC键,再按:wq保存退出,重启即可。
进入OpenWrt的终端,下载优选ip一键脚本
项目地址:https://github.com/yonggekkk/openwrt_win64-ddns-cdnip
curl -ksSL https://gitlab.com/rwkgyg/cdnopw/raw/main/cdnopw.sh -o cdnopw.sh && bash cdnopw.sh
设置计划任务定时任务
每三个小时执行一次
1 | 30 0 * * * cd /root/cfipopw/ && bash cdnip.sh |
评论
匿名评论隐私政策









