diff --git a/README.md b/README.md index e35a5eb9..92f47e88 100644 --- a/README.md +++ b/README.md @@ -270,21 +270,11 @@ Lite version (online domains only): This blocklist includes domains only. -### Install +Save the ruleset to "/usr/local/etc/dnsmasq/urlhaus-filter-dnsmasq.conf". Refer to this [guide](https://gitlab.com/malware-filter/malware-filter/wikis/update-filter) for auto-update. -``` -# Create a new folder to store the blocklist -mkdir -p /usr/local/etc/dnsmasq/ +Configure dnsmasq to use the blocklist: -# Create a new cron job for daily update -printf '#!/bin/sh\ncurl -L "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-dnsmasq.conf" -o "/usr/local/etc/dnsmasq/urlhaus-filter-dnsmasq.conf"\n' > /etc/cron.daily/urlhaus-filter - -# cron job requires execution permission -chmod 755 /etc/cron.daily/urlhaus-filter - -# Configure dnsmasq to use the blocklist -printf "\nconf-file=/usr/local/etc/dnsmasq/urlhaus-filter-dnsmasq.conf\n" >> /etc/dnsmasq.conf -``` +`printf "\nconf-file=/usr/local/etc/dnsmasq/urlhaus-filter-dnsmasq.conf\n" >> /etc/dnsmasq.conf` - https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-dnsmasq.conf @@ -321,19 +311,11 @@ This blocklist includes domains only. ### Install -``` -# Create a new folder to store the blocklist -mkdir -p /usr/local/etc/bind/ +Save the ruleset to "/usr/local/etc/bind/urlhaus-filter-bind.conf". Refer to this [guide](https://gitlab.com/malware-filter/malware-filter/wikis/update-filter) for auto-update. -# Create a new cron job for daily update -printf '#!/bin/sh\ncurl -L "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-bind.conf" -o "/usr/local/etc/bind/urlhaus-filter-bind.conf"\n' > /etc/cron.daily/urlhaus-filter +Configure BIND to use the blocklist: -# cron job requires execution permission -chmod 755 /etc/cron.daily/urlhaus-filter - -# Configure BIND to use the blocklist -printf '\ninclude "/usr/local/etc/bind/urlhaus-filter-bind.conf";\n' >> /etc/bind/named.conf -``` +`printf '\ninclude "/usr/local/etc/bind/urlhaus-filter-bind.conf";\n' >> /etc/bind/named.conf` Add this to "/etc/bind/null.zone.file" (skip this step if the file already exists): @@ -419,21 +401,11 @@ Lite version (online domains only): This blocklist includes domains only. -### Install +Save the rulesets to "/usr/local/etc/unbound/urlhaus-filter-unbound.conf". Refer to this [guide](https://gitlab.com/malware-filter/malware-filter/wikis/update-filter) for auto-update. -``` -# Create a new folder to store the blocklist -mkdir -p /usr/local/etc/unbound/ +Configure Unbound to use the blocklist: -# Create a new cron job for daily update -printf '#!/bin/sh\ncurl -L "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-unbound.conf" -o "/usr/local/etc/unbound/urlhaus-filter-unbound.conf"\n' > /etc/cron.daily/urlhaus-filter - -# cron job requires execution permission -chmod 755 /etc/cron.daily/urlhaus-filter - -# Configure Unbound to use the blocklist -printf '\n include: "/usr/local/etc/unbound/urlhaus-filter-unbound.conf"\n' >> /etc/unbound/unbound.conf -``` +`printf '\n include: "/usr/local/etc/unbound/urlhaus-filter-unbound.conf"\n' >> /etc/unbound/unbound.conf` - https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-unbound.conf @@ -466,19 +438,7 @@ Lite version (online domains only): ## dnscrypt-proxy -### Install - -``` -# Create a new folder to store the blocklist -mkdir -p /etc/dnscrypt-proxy/ - -# Create a new cron job for daily update -printf '#!/bin/sh\ncurl -L "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-dnscrypt-blocked-names.txt" -o "/etc/dnscrypt-proxy/urlhaus-filter-dnscrypt-blocked-names.txt"\n' > /etc/cron.daily/urlhaus-filter -printf '\ncurl -L "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-dnscrypt-blocked-ips.txt" -o "/etc/dnscrypt-proxy/urlhaus-filter-dnscrypt-blocked-ips.txt"\n' >> /etc/cron.daily/urlhaus-filter - -# cron job requires execution permission -chmod 755 /etc/cron.daily/urlhaus-filter -``` +Save the rulesets to "/etc/dnscrypt-proxy/". Refer to this [guide](https://gitlab.com/malware-filter/malware-filter/wikis/update-filter) for auto-update. Configure dnscrypt-proxy to use the blocklist: