Using DNSMasq to Block Ads on Edgerouter


This guide will explain how to install a dnsmasq blacklist in order to have built in ad blocking functionality within an Edgerouter.

Pre-requisite
You must be logged in as root in the router

Installation
In the /tmp/ directory

 curl https://community.ubnt.com/ubnt/attachments/ubnt/EdgeMAX/78132/74/install_dnsmasq_blklist.v3.7.8.tgz | tar zvx 


 bash ./install_dnsmasq_blklist.v3.7.8 


If you are installing the DNSmasq blacklist for the first time, select option 0 on the menu.

If you are updating the DNSmasq blacklist Uninstall the previous version by selecting option 1.
After a successful uninstall, select option 0 to install.

Reference: https://community.ubnt.com/t5/EdgeRouter/CLI-Integrated-dnsmasq-Adblocking-amp-Blacklisting-v3-7-8-Easy/td-p/1344740