Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分规则内包含大量无效的保留地址 #534

Open
mm2231031 opened this issue Mar 21, 2023 · 2 comments
Open

部分规则内包含大量无效的保留地址 #534

mm2231031 opened this issue Mar 21, 2023 · 2 comments
Labels
good first issue Good for newcomers

Comments

@mm2231031
Copy link

规则列表内包含了大量的非公网地址,包括ABC类私有地址、广播地址、组播地址,规则使用后有时候会干扰防火墙的网络正常运行,虽然我自己的自动化脚本可以清理这些内容,不过我还是想询问以下规则保留这些地址是否有什么重要作用吗,如果没有什么作用,是否可以清理规则中的无效地址?
匹配出非公网的IPv4地址的内容如下

# grep -E "(^10|^172\.(1[6-9]|2[0-9]|3[01])|^192\.168|^169\.254|^22[4-9]|^2[3-5][0-9])\." *.rules
300hero-cn.rules:224.0.0.0/4
300hero-cn.rules:10.18.129.143/32
300hero-cn.rules:255.255.255.255/32
ARK--Survival-Evolved.rules:224.0.0.0/4
ARK--Survival-Evolved.rules:169.254.47.0/24
ARK--Survival-Evolved.rules:169.254.95.0/24
ARK--Survival-Evolved.rules:169.254.130.0/24
ARK--Survival-Evolved.rules:169.254.187.0/24
ARK--Survival-Evolved.rules:169.254.216.0/24
ARK--Survival-Evolved.rules:10.24.91.18/32
ARK--Survival-Evolved.rules:169.254.47.255/32
ARK--Survival-Evolved.rules:169.254.95.255/32
ARK--Survival-Evolved.rules:169.254.130.255/32
ARK--Survival-Evolved.rules:169.254.187.255/32
ARK--Survival-Evolved.rules:169.254.216.255/32
ARK--Survival-Evolved.rules:255.255.255.255/32
BattleField-4.rules:172.19.83.0/24
Blade&Soul TW.rules:169.254.0.0/16
Blade&Soul TW.rules:169.254.230.54/32
Blade&Soul TW.rules:169.254.250.122/32
Blade&Soul TW.rules:169.254.255.255/32
Blade-&-Soul-jp.rules:224.0.0.0/4
Blade-&-Soul-jp.rules:10.24.124.19/32
Blade-&-Soul-jp.rules:255.255.255.255/32
Blood-&-Soul-CN.rules:172.19.83.0/24
CS-GO.rules:169.254.0.0/16
CS-GO.rules:169.254.125.95/32
CS-GO.rules:169.254.10.218/32
CS-GO.rules:224.0.0.0/4
CS-GO.rules:240.0.0.0/4
Call-Of-Duty-4-Modern-Warfare.rules:10.24.190.13/32
Company-Of-Heroes-2.rules:224.0.0.0/4
Company-Of-Heroes-2.rules:10.22.201.15/32
Company-Of-Heroes-2.rules:255.255.255.255/32
Dark-Souls-3.rules:224.0.0.0/4
Dark-Souls-3.rules:169.254.49.0/24
Dark-Souls-3.rules:169.254.90.0/24
Dark-Souls-3.rules:169.254.99.0/24
Dark-Souls-3.rules:169.254.123.0/24
Dark-Souls-3.rules:169.254.189.0/24
Dark-Souls-3.rules:169.254.222.0/24
Dark-Souls-3.rules:169.254.250.0/24
Dark-Souls-3.rules:10.24.168.3/32
Dark-Souls-3.rules:169.254.49.255/32
Dark-Souls-3.rules:169.254.90.255/32
Dark-Souls-3.rules:169.254.99.255/32
Dark-Souls-3.rules:169.254.123.255/32
Dark-Souls-3.rules:169.254.189.255/32
Dark-Souls-3.rules:169.254.222.255/32
Dark-Souls-3.rules:169.254.250.255/32
Dark-Souls-3.rules:255.255.255.255/32
Dead-by-Daylight.rules:224.0.0.0/4
Dead-by-Daylight.rules:169.254.11.0/24
Dead-by-Daylight.rules:169.254.40.0/24
Dead-by-Daylight.rules:169.254.51.0/24
Dead-by-Daylight.rules:169.254.76.0/24
Dead-by-Daylight.rules:169.254.102.0/24
Dead-by-Daylight.rules:169.254.104.0/24
Dead-by-Daylight.rules:169.254.110.0/24
Dead-by-Daylight.rules:169.254.122.0/24
Dead-by-Daylight.rules:169.254.141.0/24
Dead-by-Daylight.rules:169.254.160.0/24
Dead-by-Daylight.rules:169.254.163.0/24
Dead-by-Daylight.rules:169.254.190.0/24
Dead-by-Daylight.rules:169.254.229.0/24
Dead-by-Daylight.rules:10.24.91.7/32
Dead-by-Daylight.rules:169.254.11.255/32
Dead-by-Daylight.rules:169.254.40.255/32
Dead-by-Daylight.rules:169.254.51.255/32
Dead-by-Daylight.rules:169.254.76.255/32
Dead-by-Daylight.rules:169.254.102.255/32
Dead-by-Daylight.rules:169.254.104.255/32
Dead-by-Daylight.rules:169.254.110.255/32
Dead-by-Daylight.rules:169.254.122.255/32
Dead-by-Daylight.rules:169.254.141.255/32
Dead-by-Daylight.rules:169.254.160.255/32
Dead-by-Daylight.rules:169.254.163.255/32
Dead-by-Daylight.rules:169.254.190.255/32
Dead-by-Daylight.rules:169.254.229.255/32
Dead-by-Daylight.rules:255.255.255.255/32
Destiny2-Asia.rules:10.22.16.9/32
Destiny2-Asia.rules:224.0.0.0/4
Destiny2-EU.rules:169.254.0.0/16
Destiny2-EU.rules:169.254.125.95/32
Destiny2-EU.rules:169.254.10.218/32
Destiny2-EU.rules:224.0.0.0/4
Destiny2-EU.rules:240.0.0.0/4
Destiny2-US.rules:169.254.0.0/16
Destiny2-US.rules:169.254.125.95/32
Destiny2-US.rules:169.254.10.218/32
Destiny2-US.rules:169.254.12.0/24
Destiny2-US.rules:169.254.31.0/24
Destiny2-US.rules:169.254.84.0/24
Destiny2-US.rules:169.254.132.0/24
Destiny2-US.rules:169.254.190.0/24
Destiny2-US.rules:169.254.206.0/24
Destiny2-US.rules:224.0.0.0/4
Destiny2-US.rules:240.0.0.0/4
Dirty-Bomb.rules:10.21.241.0/24
Discord-All.rules:172.21.8.190/32
Don't-Starve-steam.rules:10.24.190.2/32
Don't-Starve-steam.rules:224.0.0.0/4
Don't-Starve-steam.rules:255.255.255.255/32
Dota2-jp.rules:10.16.51.11/32
Euro-Truck-Simulator-2.rules:172.19.83.0/24
Fortnite-cn.rules:224.0.0.0/4
Fortnite-cn.rules:10.18.224.90/32
Fortnite-cn.rules:255.255.255.255/32
Forza-Motorsport-7.rules:172.19.83.0/24
Gang-Beasts.rules:224.0.0.0/4
Gang-Beasts.rules:10.24.190.17/32
Gang-Beasts.rules:255.255.255.255/32
Gwent_The-Witcher-Card-game.rules:10.24.190.28/32
Gwent_The-Witcher-Card-game.rules:224.0.0.0/4
HuangYeXingDong-cn.rules:224.0.0.0/4
HuangYeXingDong-cn.rules:10.18.224.83/32
HuangYeXingDong-cn.rules:255.255.255.255/32
L4D2-Test.rules:224.0.0.0/4
League-of-Legends-jp.rules:224.0.0.0/4
League-of-Legends-tw.rules:172.16.0.0/16
League-of-Legends-tw.rules:172.16.142.11/32
League-of-Legends-tw.rules:224.0.0.0/4
League-of-Legends-us.rules:172.16.0.0/16
League-of-Legends-us.rules:172.16.136.17/32
League-of-Legends-us.rules:224.0.0.0/4
MU2.rules:192.168.86.0/24
MU2.rules:192.168.86.132/32
MU2.rules:192.168.86.255/32
NIOH.rules:224.0.0.0/4
NIOH.rules:10.24.157.2/32
NIOH.rules:255.255.255.255/32
Origin.rules:172.19.83.0/24
Overwatch-Asia.rules:172.16.0.0/16
Overwatch-Asia.rules:172.16.142.11/32
Overwatch-Asia.rules:224.0.0.0/4
PUBG-INT.rules:10.255.255.255/32
PUBG-INT.rules:172.16.0.0/16
PUBG-INT.rules:172.16.218.162/32
PUBG-INT.rules:172.16.255.255/32
PUBG-kakao.rules:10.0.0.0/8
PUBG-kakao.rules:10.32.12.250/32
PUBG-kakao.rules:10.255.255.255/32
PUBG-kakao.rules:192.168.0.0/24
PUBG-kakao.rules:192.168.0.99/32
PUBG-kakao.rules:192.168.0.255/32
PUBG-kakao.rules:192.168.1.0/24
PUBG-kakao.rules:192.168.1.255/32
PUBG-kakao.rules:192.168.86.0/24
PUBG-kakao.rules:192.168.86.1/32
PUBG-kakao.rules:192.168.86.255/32
PUBG-kakao.rules:192.168.174.0/24
PUBG-kakao.rules:192.168.174.1/32
PUBG-kakao.rules:192.168.174.255/32
PUBGLite-Garena.rules:224.0.0.251/32
PlayerUnknown's-Battlegrounds-update.rules:172.16.0.0/16
PlayerUnknown's-Battlegrounds-update.rules:172.16.170.38/32
PlayerUnknown's-Battlegrounds-update.rules:224.0.0.0/4
Skip-all-China-IP-mini-and-LAN.rules:10.0.0.0/8
Skip-all-China-IP-mini-and-LAN.rules:169.254.0.0/16
Skip-all-China-IP-mini-and-LAN.rules:172.16.0.0/12
Skip-all-China-IP-mini-and-LAN.rules:192.168.0.0/16
The-Elder-Scrolls-Online.rules:224.0.0.0/4
The-Elder-Scrolls-Online.rules:10.24.190.13/32
The-Elder-Scrolls-Online.rules:255.255.255.255/32
Unturned.rules:224.0.0.0/4
Unturned.rules:10.24.135.6/32
Unturned.rules:255.255.255.255/32
VRchat.rules:10.30.225.6/32
Warframe.rules:169.254.0.0/16
Warframe.rules:169.254.94.226/32
Warframe.rules:169.254.114.16/32
Warframe.rules:169.254.255.255/32
Watch-Dogs2.rules:10.24.216.13/32
WoW-EU.rules:224.0.0.0/4
WoW-EU.rules:10.28.211.10/32
WoW-EU.rules:255.255.255.255/32
World-of-Warships.rules:224.0.0.0/4
World-of-Warships.rules:10.28.211.10/32
YouXiaDuiZhanPingTai.rules:224.0.0.0/4
YouXiaDuiZhanPingTai.rules:10.18.224.90/32
YouXiaDuiZhanPingTai.rules:255.255.255.255/32

批量清理规则可以用
sed -i '/(^10|^172.(1[6-9]|2[0-9]|3[01])|^192.168|^169.254|^22[4-9]|^2[3-5][0-9])./d' *.rules

@FQrabbit
Copy link
Owner

有些私有ip地址是为了绕过局域网的,其他的组播地址确实可以进行删除,应该是以前提交规则的时候没有进行排除导致的。

Some private IP addresses are used to bypass local area networks, while other multicast addresses can indeed be removed. This is probably caused by a lack of filtering during the submission of previous rules.

@FQrabbit
Copy link
Owner

如果您有时间的话,可以帮忙清理一些已有的规则存在不合理的广播地址和组播地址。

If you have the time, please help clean up some old rule files that contain unreasonable broadcast and multicast addresses.

@FQrabbit FQrabbit added the good first issue Good for newcomers label Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants