Hi Ashley,
First make sure you you use shallalist. This is nicely documented on the nxfilter man pages. Change policy to block ads and trackers.
Then Take a look at privoxy.
It (still) blocks all the ads in youtube (and a lot more!) if you combine it with nxfilter.
You can install privoxy on the same machine as NX filter.
Default install of privoxy should do fine, only need to make sure privoxy listens for outside clients: privoxy=>config.txt=> listen addres=>change it to "your local ipv4 address:8118" instead of localhost or 127.0.0.1.
Set the proxy options for your browser (yourserver:8118) on the client (in the internet browser or system wide, depends on the OS) (and test)
See the privoxy documentation how to test if privoxy is used (
http://config.privoxy.org on your browser should give a message that privoxy is used)
Optional:
If you run a descent DHCP server you could send out the proxy settings automatically with a wpad option and/ or create an alias in NXfilter called WPAD pointing to your server that servers the wpad files.
If you use dhcp/dns for wpad deploy you need to have a webserver running @port 80. NX filter already does that job. Just put the wpad files in the root of the web folder in nxfilter.
Search google for wpad deployment to see how to create the 2 needed files and deply ith through DHCP and/or DNS
Note: most routers serving dhcp have no option to create wpad options. You need a "real" dhcp server to do that.
NX filter is fine to serve wpad. Make sure nxfilter webserver serves the wpad files before you enable wpad broadcast.
The files wpad.dat and wpad.pac should have the same contents. Just create wpad.pac and copy the contents to wpad.pac.
Why is wpad broadcast the best option:
Sometimes a page does not want to play with privoxy.
As there is no easy way to whitelist a site in privoxy, use wpad.pac to exclude that difficult nasty site:
if (shExpMatch(host, "*.example.com")) { return "DIRECT"; }
Final step:
Make sure to block the Ads and trackers in NX filter. (if you use shallalist => default policy=> block)
That will stop all the ads in youtube on all your clients including ipads etc.
For ipads/phonestablets/android you need to enable proxy in the wifi settings. Either manual yournxfilterserver:8118 or automatically (set to auto on device) by using WPAD mentioned above.
Another nice feature for ipads: the proxy setting is system wide: no more/way less in-app ads.
Optional 2
If you get all above running:
Combining privoxy with adblock pro rules will give you an even almost total ad-free browsing experience.
There is plenty scripts available for importing adblock-pro rules in privoxy.
But for that you need some knowledge editing cron jobs or windows batch programming.
Optional 3
Replace your isp dns forwarder with opendns servers in the nxfilter config.
With opendns you can block even more. Opendns is free and "cloud based" and stops a lot of bad sites.
See google how to get opendns working
Best regards,
Jeroen