Skip to content

chris-ss/openwrt_auto_cf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

openwrt_auto_cf

OpenWRT中自动优选CloudFlare IP的脚本,包含PassWall和shadowsocksR Plus

首先ssh进openwrt中

可以用uci命令查看配置项

uci show shadowsocksr

or

uci show passwall

下载脚本

wget https://raw.githubusercontent.com/chris-ss/openwrt_auto_cf/main/ssrp.sh

or

wget https://raw.githubusercontent.com/chris-ss/openwrt_auto_cf/main/passwall.sh

给脚本权限并执行测速都能正常运行

chmod +x ssrp.sh && bash ssrp.sh

检测正常后添加到openwrt后台-系统-计划任务

0 4 * * 3,6 bash /root/ssrp.sh > /dev/null

注意/root/ssrp.sh为实际你存放脚本的路径。 0 4 * * 3,6的意思是在每周三、周六的凌晨4点会自动运行一次。

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages