adblock on OpenWRT

Dec 3, 2016

Here are the steps I followed to get adblock installed on Chaos Calmer OpenWRT running on a TL-WR1043N/ND.

  1. Downloaded and installed adblock and luci-app-adblock as per the readme
  2. The Adblock page in Luci reported runtime error, please check the log!
  3. Couldn’t find any logs via SCP so SSH in and execute /etc/init.d/adblock start for a more helpful error
  4. With that hint, edited uhttpd config as per the readme
  5. Try starting again and get warn : please install 'uclient-fetch' or 'wget' with ssl support to use adblock
  6. Install wget: opkg update & opkg install wget
  7. Try a restart: /etc/init.d/adblock start
  8. Success!

    domain adblock processing finished successfully (1.5.3, r46767, 03.12.2016 10:00:46)

  9. Update DNS entries, surf the web, run some spammy apps on the iPad
  10. Query the stats: /etc/init.d/adblock stats

firewall statistics: 9.85%/0% of all packets in prerouting chain are ad related & blocked

Done!