找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 11867|回复: 8

更新内置SS规则文件的方法

[复制链接]
发表于 2017-5-4 18:44 | 显示全部楼层 |阅读模式
本帖最后由 wideyu 于 2017-5-5 00:41 编辑
  1. [RT-AC54U /opt/home/admin]# grep 'tar -xzvf' /etc/storage/ez_buttons_script.sh
  2. [ ! -f /etc/storage/china_ip_list.txt ] && tar -xzvf /etc_ro/china_ip_list.tgz -C /tmp && ln -sf /tmp/china_ip_list.txt /etc/storage/china_ip_list.txt
  3. [ ! -f /etc/storage/basedomain.txt ] && tar -xzvf /etc_ro/basedomain.tgz -C /tmp && ln -sf /tmp/basedomain.txt /etc/storage/basedomain.txt
复制代码

内置SS规则文件存放在 /etc_ro/china_ip_list.tgz 和 /etc_ro/basedomain.tgz 无法修改,可以变通方法更新:

选择所需 订阅 GFW 规则更新: gfwlist 官方列表 Koolshare 列表,手动更新 SS 规则文件,等待更新结束,确认文件时间
  1. [RT-AC54U /opt/home/admin]# ls -l /tmp/ss/*.txt
  2. -rw-rw-rw-    1 admin    root         75210 May  4 17:58 /tmp/ss/all_domain.txt
  3. -rw-rw-rw-    1 admin    root        229424 May  4 17:57 /tmp/ss/chnroute.txt
复制代码
复制已更新文件到 /etc/storage
  1. [RT-AC54U /opt/home/admin]# cp -f /tmp/ss/all_domain.txt /etc/storage/all_domain.txt
  2. [RT-AC54U /opt/home/admin]# cp -f /tmp/ss/chnroute.txt /etc/storage/chnroute.txt
复制代码
修改从 /etc/storage 取内置SS规则文件
  1. sed '3 acp -f /etc/storage/all_domain.txt /tmp/basedomain.txt' -i /etc/storage/script/Sh15_ss.sh
  2. sed '3 acp -f /etc/storage/chnroute.txt /tmp/china_ip_list.txt' -i /etc/storage/script/Sh15_ss.sh
复制代码


纯折腾哈,启动更新、定时更新也是用得好好的。。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2017-7-2 14:18 | 显示全部楼层
可以加一下楼主的QQ吗,我也在找这个SS规则文件。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-7-2 22:00 | 显示全部楼层
ss下载速度还是不错的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-21 04:54 | 显示全部楼层
非常感谢,终于弄好了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-30 14:33 | 显示全部楼层
楼主,请问你知道有关wifi mac过滤定义文件在哪里吗?谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-31 18:06 | 显示全部楼层
学习学习..
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-4-1 14:42 | 显示全部楼层
这个是在控制台输入代码使用吗
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-8-15 16:15 | 显示全部楼层
这个规则可以自己修改吗?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-27 13:31 | 显示全部楼层
好象最终的gfwlist是几个文件合成的,请问如果gfwlist里最终只需要2行(并清空以前的ipset历史),比如  www.x.com, www.y.com 。 该怎么操作. 谢谢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 15:22

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

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