Difference between revisions of "Bering-uClibc 5.x - User Guide - Advanced Topics - Setting Up Add blocking with dnsmasq"

From bering-uClibc
Jump to: navigation, search
((treading carefully :-)))
(manual setup)
Line 8: Line 8:
* The <code class="filename">curl.lrp</code> package.
* The <code class="filename">curl.lrp</code> package.
==manual setup==
==Manual setup==
==== (treading carefully :-))====
==== (treading carefully :-))====

Revision as of 06:34, 14 November 2016


There is a lot of info on the net about setting dnsmasq to block advertisements, trackings... etc. This is a quick guide that shows a minimalist setup to filter add sites with dnsmasq and maybe gets you started with a lot of options depending on your level of paranoia !


  • You will need Bering-uClibc 5.x or higher.
  • The curl.lrp package.

Manual setup

(treading carefully :-))

Enter the command:

curl -s -d mimetype=plaintext http://pgl.yoyo.org/as/serverlist.php?hostformat=dnsmasq-server > /root/tmpfile.list

Check your file tmpfile.list, you should have a list of server with the following format:

server=/... etc /


cp /root/tmpfile.list /etc/dnsmasq.d/addblock.list

Edit /etc/dnsmasq.conf and enter:


Restart dnsmasq with:

/etc/init.d/dnsmasq restart

That's it, all the nasty adds should be gone ! (well a bunch of them !)