Re: Addblock + Badhost blocking via unbound(8) and pf anchors

2018-08-25 Thread jin
Thanks Jordan, i will look at those links. On Sat, 25 Aug 2018, 10:31 Jordan Geoghegan, wrote: > You may want to check out the more recent guides I wrote for the updated > version of these scripts: > > www.geoghegan.ca/unbound-adblock.html > > www.geoghegan.ca/pfbadhost.html > > > On 08/24/18

Re: Addblock + Badhost blocking via unbound(8) and pf anchors

2018-08-25 Thread Jordan Geoghegan
You may want to check out the more recent guides I wrote for the updated version of these scripts: www.geoghegan.ca/unbound-adblock.html www.geoghegan.ca/pfbadhost.html On 08/24/18 06:32, jin wrote: Hello Thanks for sharing all those informations. I've been looking a way to create a

Re: Addblock + Badhost blocking via unbound(8) and pf anchors

2018-08-24 Thread jin
Hello Thanks for sharing all those informations. I've been looking a way to create a blacklist and you sent this mail just on time. Your web page help me a lot. On the OpenBSD your script do all jobs but on linux based systems I wrote a shell script for update iptables rules.

Re: Addblock + Badhost blocking via unbound(8) and pf anchors

2017-12-31 Thread Jordan Geoghegan
Hi Freddy, I just ran some further benchmarks between your first and second script, compared to mine, and again similar results were found. Your second script was significantly faster than the first, but still didn't match the grep-piped-into-awk config. This shouldn't be the case though. I

Re: Addblock + Badhost blocking via unbound(8) and pf anchors

2017-12-30 Thread Jordan Geoghegan
I have tried using all awk for the script before, but I find piping the grep output into awk to be 2-3x faster on the Edgerouter Lite. I just ran some timed tests for your script against mine on the ErLite, and I got similar results, with my script completing in ~6 seconds against the

Re: Addblock + Badhost blocking via unbound(8) and pf anchors

2017-12-30 Thread Freddy DISSAUX
> Hi everyone, Hello, [ snip ] > cat hosts | grep '^0\.0\.0\.0' | awk '{print "local-zone: \""$2"\" > redirect\nlocal-data: \""$2" A 0.0.0.0\""}' > ads.conf awk 'NF == 2 && $1 == "0.0.0.0" && $2 ~ /^[a-z0-9]/ { print "local-zone: \"" $2 "\" redirect\nlocal-data: \"" $2 " A " $1 "\"" }' host >