docs: 📝 update readme
This commit is contained in:
parent
d968c0da5c
commit
71f3ec7605
25
README.md
25
README.md
|
@ -7,13 +7,11 @@
|
|||
|
||||
## 防火墙阻止吸血
|
||||
|
||||
1. 创建脚本
|
||||
|
||||
修改自 [WhymustIhaveaname/Transmission-Block-Xunlei](https://github.com/WhymustIhaveaname/Transmission-Block-Xunlei)
|
||||
脚本修改自 [WhymustIhaveaname/Transmission-Block-Xunlei](https://github.com/WhymustIhaveaname/Transmission-Block-Xunlei)
|
||||
|
||||
因为是在openwrt中运行,所以有点不太一样
|
||||
|
||||
openwrt需要安装`iptables ip6tables`模块
|
||||
需要安装`iptables ip6tables`模块
|
||||
|
||||
### 白名单模式:
|
||||
|
||||
|
@ -35,14 +33,7 @@ openwrt需要安装`iptables ip6tables`模块
|
|||
|
||||
`block_blacklist.sh`
|
||||
|
||||
* block_clients: 里的都会被阻止,每行一条
|
||||
* 当时间的小时数字是12的整数倍时,清空防火墙规则和log (eg:12:00/24:00)
|
||||
* 当ip是私有地址时,忽略
|
||||
* `--debug`: 调试模式会打印更多信息,但不会写入log和添加防火墙
|
||||
* `--chain`: 查看防火墙已添加的ip
|
||||
* `--log`: 查看日志
|
||||
* `--flush`: 清空防火墙规则和log
|
||||
* `--help`: 帮助信息
|
||||
* block_clients: 每行一条
|
||||
|
||||
### 添加计划任务
|
||||
|
||||
|
@ -53,15 +44,11 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin
|
|||
*/2 * * * * /root/allow_whitelist.sh 2>> /tmp/allow_whitelist.log
|
||||
```
|
||||
|
||||
## 添加屏蔽url
|
||||
## transmission添加屏蔽url
|
||||
|
||||
修改自 [PBH-BTN/BTN-Collected-Rules](https://github.com/PBH-BTN/BTN-Collected-Rules) 的all.txt
|
||||
修改自 [PBH-BTN/BTN-Collected-Rules](https://github.com/PBH-BTN/BTN-Collected-Rules) 的all.txt, github action 每天自动更新
|
||||
|
||||
github action 每天自动更新
|
||||
|
||||
`transmission_blacklist.gz` 体积更小, 下载更快.
|
||||
|
||||
需要复制的是raw, 并且不能被墙.
|
||||
设置transmission的URL阻止清单`https://github.com/jqtmviyu/Transmission-block-xunlei-pcdn/raw/main/transmission_blacklist.gz`
|
||||
|
||||
### 定时更新
|
||||
|
||||
|
|
Loading…
Reference in New Issue