It really reminds me of how you block ads on a router that allow SSH access (like any router running Tomato, DD-WRT, OpenWRT...).
There are several guides online, like http://www.linksysinfo.org/index.php?threads/all-u-need-ad-b...
Anyway, I have mixed feelings on blocking ads at the router level (or using the RasbPi to block them). Those methods don't allow control, so if you need to disable adblocking for any reason, it's not something you can do just pressing a button.
Also, since it doesn't work on a per-site basis like Adblock Plus, you can't disable it on sites that you want to support and use ads in a non-intrusive way.