From e7d346c21183f9a93073ea9c7fdce0e9d18f80ab Mon Sep 17 00:00:00 2001 From: olli Date: Sun, 8 Oct 2023 14:24:53 +0200 Subject: [PATCH] tornet.yml aktualisiert --- tornet.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tornet.yml b/tornet.yml index 8f08418..92250db 100644 --- a/tornet.yml +++ b/tornet.yml @@ -405,8 +405,11 @@ block: | cd /etc/dnscrypt-proxy + touch locked-names-local-whitelist.txt + chmod 660 locked-names-local-whitelist.txt + chown root:sudo locked-names-local-whitelist.txt # get hosts blocklist from https://github.com/StevenBlack/hosts - g_runcmd wget https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts -O - | grep "^0\.0\.0\.0 " | cut -d" " -f2 | grep "\." | egrep -v '^\.|\.$' >${g_tmp}/blocked-names.txt + g_runcmd wget https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling/hosts -O - | grep "^0\.0\.0\.0 " | cut -d" " -f2 | grep "\." | egrep -v '^\.|\.$' | egrep -v -f locked-names-local-whitelist.txt >${g_tmp}/blocked-names.txt numhosts=$(cat ${g_tmp}/blocked-names.txt | wc -l) if [ "$numhosts" -gt 50000 ] then @@ -414,6 +417,9 @@ else g_echo_error "Not enough lines in hosts blocklist from https://github.com/StevenBlack/hosts" fi + touch locked-names-local-aditions.txt + chmod 660 locked-names-local-additions.txt + chown root:sudo locked-names-local-additions.txt [ -s blocked-names-local-additions.txt ] && cat blocked-names-local-additions.txt >>blocked-names.txt systemctl restart dnscrypt-proxy