feat: DNS Response Policy Zone (RPZ)
- syntax based on https://rpz.oisd.nl/basic/
This commit is contained in:
parent
695138c1e2
commit
7cf88158cd
39
README.md
39
README.md
|
@ -11,7 +11,7 @@ There are multiple formats available, refer to the appropriate section according
|
|||
- Vivaldi -> [URL-based (Vivaldi)](#url-based-vivaldi)
|
||||
- [Hosts](#hosts-based)
|
||||
- [Dnsmasq](#dnsmasq)
|
||||
- [BIND](#bind)
|
||||
- BIND -> BIND [zone](#bind) or [RPZ](#response-policy-zone)
|
||||
- [Unbound](#unbound)
|
||||
- Internet Explorer -> [Tracking Protection List (IE)](#tracking-protection-list-ie)
|
||||
- [Snort2](#snort2)
|
||||
|
@ -367,6 +367,41 @@ Lite version (online domains only):
|
|||
|
||||
</details>
|
||||
|
||||
## Response Policy Zone
|
||||
|
||||
This blocklist includes domains only.
|
||||
|
||||
- https://curben.gitlab.io/malware-filter/urlhaus-filter-rpz.conf
|
||||
|
||||
<details>
|
||||
<summary>Mirrors</summary>
|
||||
|
||||
- https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-rpz.conf
|
||||
- https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-rpz.conf
|
||||
- https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-rpz.conf
|
||||
- https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-rpz.conf
|
||||
- https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-rpz.conf
|
||||
- https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-rpz.conf
|
||||
|
||||
</details>
|
||||
|
||||
<br />
|
||||
Lite version (online domains only):
|
||||
|
||||
- https://curben.gitlab.io/malware-filter/urlhaus-filter-rpz-online.conf
|
||||
|
||||
<details>
|
||||
<summary>Mirrors</summary>
|
||||
|
||||
- https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-rpz-online.conf
|
||||
- https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-rpz-online.conf
|
||||
- https://raw.githubusercontent.com/curbengh/urlhaus-filter/master/urlhaus-filter-rpz-online.conf
|
||||
- https://cdn.statically.io/gh/curbengh/urlhaus-filter/master/urlhaus-filter-rpz-online.conf
|
||||
- https://gitcdn.xyz/repo/curbengh/urlhaus-filter/master/urlhaus-filter-rpz-online.conf
|
||||
- https://cdn.jsdelivr.net/gh/curbengh/urlhaus-filter/urlhaus-filter-rpz-online.conf
|
||||
|
||||
</details>
|
||||
|
||||
## Unbound
|
||||
|
||||
This blocklist includes domains only.
|
||||
|
@ -590,6 +625,8 @@ rule-files:
|
|||
- https://gitlab.com/iosprivacy/urlhaus-filter-mirror/raw/master/urlhaus-filter-dnsmasq-online.conf
|
||||
- https://gitlab.com/iosprivacy/urlhaus-filter-mirror/raw/master/urlhaus-filter-bind.conf
|
||||
- https://gitlab.com/iosprivacy/urlhaus-filter-mirror/raw/master/urlhaus-filter-bind-online.conf
|
||||
- https://gitlab.com/iosprivacy/urlhaus-filter-mirror/raw/master/urlhaus-filter-rpz.conf
|
||||
- https://gitlab.com/iosprivacy/urlhaus-filter-mirror/raw/master/urlhaus-filter-rpz-online.conf
|
||||
- https://gitlab.com/iosprivacy/urlhaus-filter-mirror/raw/master/urlhaus-filter-unbound.conf
|
||||
- https://gitlab.com/iosprivacy/urlhaus-filter-mirror/raw/master/urlhaus-filter-unbound-online.conf
|
||||
- https://gitlab.com/iosprivacy/urlhaus-filter-mirror/raw/master/urlhaus-filter.tpl
|
||||
|
|
19
script.sh
19
script.sh
|
@ -270,6 +270,25 @@ sed '1 i\'"$COMMENT_ONLINE"'' | \
|
|||
sed "1s/Blocklist/BIND Blocklist/" > "../urlhaus-filter-bind-online.conf"
|
||||
|
||||
|
||||
## DNS Response Policy Zone (RPZ)
|
||||
CURRENT_UNIX_TIME="$(date +%s)"
|
||||
RPZ_SYNTAX="\n\$TTL 30\n@ IN SOA rpz.curben.gitlab.io. hostmaster.rpz.curben.gitlab.io. $CURRENT_UNIX_TIME 86400 3600 604800 30\n NS localhost.\n"
|
||||
|
||||
cat "malware-hosts.txt" | \
|
||||
sed "s/$/ CNAME ./g" | \
|
||||
sed '1 i\'"$RPZ_SYNTAX"'' | \
|
||||
sed '1 i\'"$COMMENT"'' | \
|
||||
sed "s/^#/;/g" | \
|
||||
sed "1s/Blocklist/RPZ Blocklist/" > "../urlhaus-filter-rpz.conf"
|
||||
|
||||
cat "malware-hosts-online.txt" | \
|
||||
sed "s/$/ CNAME ./g" | \
|
||||
sed '1 i\'"$RPZ_SYNTAX"'' | \
|
||||
sed '1 i\'"$COMMENT_ONLINE"'' | \
|
||||
sed "s/^#/;/g" | \
|
||||
sed "1s/Blocklist/RPZ Blocklist/" > "../urlhaus-filter-rpz-online.conf"
|
||||
|
||||
|
||||
## Unbound-compatible blocklist
|
||||
cat "malware-hosts.txt" | \
|
||||
sed 's/^/local-zone: "/g' | \
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue