archlinux下使用qbittorrent-nox防范PCDN吸血的一些补充

环境 list
Host: OptiPlex 7040 [i5-6500T]
OS: Arch Linux x86_64
Kernel: 6.10.0-arch1-2

工具 list
aur包:qbittorrent-enhanced-nox 4.6.5.10-1

参考blog如下

近期anacrolix_torrent等无限下载工具的说明与对策

对其中 对策 A2、对策B 做出一些补充:

1. peer_blacklist.txt的有效路径是 /var/lib/qbittorrent/ ,而不是 /home/user/

可通过 find 命令查询

❯ sudo find / -name "qBitt*"
[sudo] password for list:
/home/list/.config/qBittorrent
/home/list/.config/qBittorrent/qBittorrent.conf
/home/list/.cache/qBittorrent
/home/list/.local/share/qBittorrent
/usr/src/debug/qbittorrent-enhanced-nox/qBittorrent-Enhanced-Edition-release-4.6.5.10
/usr/src/debug/qbittorrent-enhanced/qBittorrent-Enhanced-Edition-release-4.6.5.10
/var/lib/qbittorrent/.config/qBittorrent
/var/lib/qbittorrent/.config/qBittorrent/qBittorrent-data.conf
/var/lib/qbittorrent/.config/qBittorrent/qBittorrent.conf
/var/lib/qbittorrent/.cache/qBittorrent
/var/lib/qbittorrent/.local/share/qBittorrent

访问 /var/lib/qbittorrent/ 需要root权限

[root@arch7040m qBittorrent]# cd /var/lib/qbittorrent/.local/share/qBittorrent
[root@arch7040m qBittorrent]# ls
BT_backup  GeoDB  logs  nova3  peer_blacklist.txt  peers.db  rss

peer_blacklist.txt 的内容

-GT0003- github.com/anacrolix/torrent\s\(devel\)\s\(anacrolix/torrent\sunknown\)
-DT0001- .*
-HP0001- .*

2. qbee使用 dat 文件需要空格才能正确识别

#错误的ip format
218.92.139.0-218.92.139.255
#正确的ip format
218.92.139.0 - 218.92.139.255

维基百科的 IPFilter 说 .dat格式 必须要前导0 ,但经过我实际测试,qbee中并不是必须。

点击展开

添加空格后的 ip ban list
1.180.24.0 - 1.180.25.255
36.102.218.0 - 36.102.218.255
36.143.31.0 - 36.143.31.255
36.143.102.0 - 36.143.102.255
36.143.112.0 - 36.143.112.255
36.143.114.0 - 36.143.114.255
36.143.133.0 - 36.143.133.255
36.143.147.0 - 36.143.147.255
36.143.176.0 - 36.143.176.255
36.143.209.0 - 36.143.210.255
36.143.220.0 - 36.143.220.255
39.150.2.0 - 39.150.2.255
39.164.32.0 - 39.164.33.255
39.164.41.0 - 39.164.41.255
39.164.45.0 - 39.164.45.255
39.164.253.0 - 39.164.254.255
42.52.131.0 - 42.52.131.255
58.241.210.0 - 58.241.210.255
59.47.225.0 - 59.47.225.255
59.47.235.0 - 59.47.235.255
59.47.237.0 - 59.47.237.255
59.83.212.0 - 59.83.212.255
112.0.188.0 - 112.0.188.255
112.45.16.0 - 112.45.16.255
112.45.20.0 - 112.45.20.255
112.83.125.0 - 112.83.125.255
112.192.189.0 - 112.192.189.255
114.236.141.0 - 114.236.141.255
117.55.203.0 - 117.55.203.255
119.53.106.0 - 119.53.107.255
119.53.109.0 - 119.53.112.255
119.53.163.0 - 119.53.163.255
122.224.33.0 - 122.224.33.255
123.184.152.0 - 123.184.152.255
123.186.146.0 - 123.186.146.255
139.210.127.0 - 139.210.127.255
139.210.254.0 - 139.210.254.255
175.19.0.0 - 175.19.0.255
175.19.2.0 - 175.19.3.255
175.19.8.0 - 175.19.8.255
175.19.10.0 - 175.19.10.255
175.19.42.0 - 175.19.42.255
182.32.204.0 - 182.32.205.255
183.131.219.0 - 193.131.219.255
183.197.12.0 - 183.197.12.255
183.197.21.0 - 183.197.21.255
183.197.24.0 - 183.197.25.255
183.197.30.0 - 183.197.31.255
183.197.250.0 - 183.197.251.255
183.198.40.0 - 183.198.42.255
183.198.83.0 - 183.198.83.255
183.198.160.0 - 183.198.160.255
183.198.162.0 - 183.198.162.255
183.198.165.0 - 183.198.167.255
183.198.224.0 - 183.198.224.255
183.198.226.0 - 183.198.228.255
183.199.90.0 - 183.199.90.255
183.199.148.0 - 183.199.150.255
183.199.208.0 - 183.199.209.255
183.199.217.0 - 183.199.217.255
183.199.238.0 - 183.199.239.255
183.227.110.0 - 183.227.111.255
183.228.140.0 - 183.228.143.255
218.7.138.0 - 218.7.138.255
218.24.113.0 - 218.24.113.255
218.60.174.0 - 218.60.174.255
218.92.139.0 - 218.92.139.255
218.104.106.0 - 218.104.106.255
221.9.12.0 - 221.9.12.255
221.9.17.0 - 221.9.19.255
221.11.96.0 - 221.11.96.255
221.103.102.0 - 221.103.102.255
221.203.3.0 - 221.203.3.255
221.203.6.0 - 221.203.6.255
223.78.79.0 - 223.78.80.255
223.88.223.0 - 223.88.223.255
::ffff:1.180.24.0 - ::ffff:1.180.25.255
::ffff:36.102.218.0 - ::ffff:36.102.218.255
::ffff:36.143.31.0 - ::ffff:36.143.31.255
::ffff:36.143.102.0 - ::ffff:36.143.102.255
::ffff:36.143.112.0 - ::ffff:36.143.112.255
::ffff:36.143.114.0 - ::ffff:36.143.114.255
::ffff:36.143.133.0 - ::ffff:36.143.133.255
::ffff:36.143.147.0 - ::ffff:36.143.147.255
::ffff:36.143.176.0 - ::ffff:36.143.176.255
::ffff:36.143.209.0 - ::ffff:36.143.210.255
::ffff:36.143.220.0 - ::ffff:36.143.220.255
::ffff:39.150.2.0 - ::ffff:39.150.2.255
::ffff:39.164.32.0 - ::ffff:39.164.33.255
::ffff:39.164.41.0 - ::ffff:39.164.41.255
::ffff:39.164.45.0 - ::ffff:39.164.45.255
::ffff:39.164.253.0 - ::ffff:39.164.254.255
::ffff:42.52.131.0 - ::ffff:42.52.131.255
::ffff:58.241.210.0 - ::ffff:58.241.210.255
::ffff:59.47.225.0 - ::ffff:59.47.225.255
::ffff:59.47.235.0 - ::ffff:59.47.235.255
::ffff:59.47.237.0 - ::ffff:59.47.237.255
::ffff:59.83.212.0 - ::ffff:59.83.212.255
::ffff:112.0.188.0 - ::ffff:112.0.188.255
::ffff:112.45.16.0 - ::ffff:112.45.16.255
::ffff:112.45.20.0 - ::ffff:112.45.20.255
::ffff:112.83.125.0 - ::ffff:112.83.125.255
::ffff:112.192.189.0 - ::ffff:112.192.189.255
::ffff:114.236.141.0 - ::ffff:114.236.141.255
::ffff:117.55.203.0 - ::ffff:117.55.203.255
::ffff:119.53.106.0 - ::ffff:119.53.107.255
::ffff:119.53.109.0 - ::ffff:119.53.112.255
::ffff:119.53.163.0 - ::ffff:119.53.163.255
::ffff:122.224.33.0 - ::ffff:122.224.33.255
::ffff:123.184.152.0 - ::ffff:123.184.152.255
::ffff:123.186.146.0 - ::ffff:123.186.146.255
::ffff:139.210.127.0 - ::ffff:139.210.127.255
::ffff:139.210.254.0 - ::ffff:139.210.254.255
::ffff:175.19.0.0 - ::ffff:175.19.0.255
::ffff:175.19.2.0 - ::ffff:175.19.3.255
::ffff:175.19.8.0 - ::ffff:175.19.8.255
::ffff:175.19.10.0 - ::ffff:175.19.10.255
::ffff:175.19.42.0 - ::ffff:175.19.42.255
::ffff:182.32.204.0 - ::ffff:182.32.205.255
::ffff:183.131.219.0 - ::ffff:193.131.219.255
::ffff:183.197.12.0 - ::ffff:183.197.12.255
::ffff:183.197.21.0 - ::ffff:183.197.21.255
::ffff:183.197.24.0 - ::ffff:183.197.25.255
::ffff:183.197.30.0 - ::ffff:183.197.31.255
::ffff:183.197.250.0 - ::ffff:183.197.251.255
::ffff:183.198.40.0 - ::ffff:183.198.42.255
::ffff:183.198.83.0 - ::ffff:183.198.83.255
::ffff:183.198.160.0 - ::ffff:183.198.160.255
::ffff:183.198.162.0 - ::ffff:183.198.162.255
::ffff:183.198.165.0 - ::ffff:183.198.167.255
::ffff:183.198.224.0 - ::ffff:183.198.224.255
::ffff:183.198.226.0 - ::ffff:183.198.228.255
::ffff:183.199.90.0 - ::ffff:183.199.90.255
::ffff:183.199.148.0 - ::ffff:183.199.150.255
::ffff:183.199.208.0 - ::ffff:183.199.209.255
::ffff:183.199.217.0 - ::ffff:183.199.217.255
::ffff:183.199.238.0 - ::ffff:183.199.239.255
::ffff:183.227.110.0 - ::ffff:183.227.111.255
::ffff:183.228.140.0 - ::ffff:183.228.143.255
::ffff:218.7.138.0 - ::ffff:218.7.138.255
::ffff:218.24.113.0 - ::ffff:218.24.113.255
::ffff:218.60.174.0 - ::ffff:218.60.174.255
::ffff:218.92.139.0 - ::ffff:218.92.139.255
::ffff:218.104.106.0 - ::ffff:218.104.106.255
::ffff:221.9.12.0 - ::ffff:221.9.12.255
::ffff:221.9.17.0 - ::ffff:221.9.19.255
::ffff:221.11.96.0 - ::ffff:221.11.96.255
::ffff:221.103.102.0 - ::ffff:221.103.102.255
::ffff:221.203.3.0 - ::ffff:221.203.3.255
::ffff:221.203.6.0 - ::ffff:221.203.6.255
::ffff:223.78.79.0 - ::ffff:223.78.80.255
::ffff:223.88.223.0 - ::ffff:223.88.223.255
2408:862e:ff:ff0d::0 - 2408:862e:ff:ff0d::ffff
2408:8631:2e09:d05::0 - 2408:8631:2e09:d05::ffff
2408:8738:6000:d::0 - 2408:8738:6000:d::ffff
2409:873c:f03:6001::0 - 2409:873c:f03:6001::ffff
2409:873c:f03:6002::0 - 2409:873c:f03:6002::ffff
2409:873c:f03:6003::0 - 2409:873c:f03:6003::ffff
2409:873c:f03:6004::0 - 2409:873c:f03:6004::ffff
2409:873c:f03:6005::0 - 2409:873c:f03:6005::ffff
2409:873c:f03:6006::0 - 2409:873c:f03:6006::ffff
2409:873c:f03:6007::0 - 2409:873c:f03:6007::ffff
2409:873c:f03:6008::0 - 2409:873c:f03:6008::ffff
2409:873c:f03:6009::0 - 2409:873c:f03:6009::ffff
2409:873c:f03:600a::0 - 2409:873c:f03:600a::ffff
240e:90c:2000:301::0 - 240e:90c:2000:301::ffff
240e:90e:2000:2006::0 - 240e:90e:2000:2006::ffff
240e:918:8008:1::0 - 240e:918:8008:1::ffff
240e:918:8008:2::0 - 240e:918:8008:2::ffff
240e:918:8008:3::0 - 240e:918:8008:3::ffff
240e:918:8008:4::0 - 240e:918:8008:4::ffff
posted @ 2024-07-26 17:44  橘子国王  阅读(273)  评论(0编辑  收藏  举报