Launcher for dns_blocklist script

maloe 15dd5608d9 Delete 'test.tmp' 2 months ago
dns a7a6c1e137 sample files 6 years ago
LICENSE b9c1d8f9ca Initial commit 6 years ago
README.md 22972bd6eb Initial commit v0.2 6 years ago
dnsbl_launcher.sh 7774adafdc Initial commit v0.2 6 years ago

README.md

DNS_Blocklist_Launcher

Simple Launcher for DNS_Blocklist Script with additional features.

Main reason for this launcher was to break down the commandline in fcrontab from:

%daily * * bash /<path-to>/dns_blocklist.sh -s 1,2,3,5,7,8,12,13,14,"https://easylist.to/easylistgermany/easylistgermany.txt","https://easylist.to/easylist/easyprivacy.txt","https://easylist.to/easylist/fanboy-social.txt","https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win7/extra.txt","https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win7/spy.txt" -b ~/bin/blacklist.hosts -r 0.0.0.0

to clearly arranged:

%daily * * bash /<path-to>/dnsbl_launcher.sh

Requirements

This launcher requires the DNS Blocklist script by sfeakes be copied into a subfolder "dns".

The script can be download from here: dns_blocklist.sh

Additional features

  • add custom sources via source-file (instead of commandline argument)
  • list current blocklist
  • Search (grep-search) in blocklist,
  • list current source list.

Usage

Start the launcher without option for normal usage.

Output of dnsbl_launcher.sh --help :

Usage: dnsbl_launcher.sh [OPTION]
Launcher for DNS Blocklist Script (by sfeakes)

Options:
  -ls, --sourcelist           List sources
  -lb, --blocklist search     List and search unbound conf
  -ll, --logfile              List log
  -h,  --help                 Show this help

Sourcelist, Blacklists, Whitelists are expected in the same subfolder "dns". Edit the launcher to change pathes and fit your needs.

Documentation

See README of ipfire-scripts and Article on Kuketz-Blog

Change log

v0.2 (2018-02-11)

  • initial commit