Privoxy on DD-WRT

Privoxy is an ad blocker built into DD-WRT Firmware. The default configuration is fine but the end user is unable to configure changes or make exceptions. This page discusses how to edit.

When first enabling Privoxy under “Services > AdBlocking in DD-WRT the config file is empty.

Once you enable it set your browser proxy. On Mac it is done under “System Preferences > Network > Advanced > Proxies”. Set them to your router address and port 8118. My address is 10.0.1.1. Yours is probably 192.168.1.1 unless you changed it.
Stacks Image 15857
Now in a browser go to http://config.privoxy.org then click on “View and change the current configuration”
Stacks Image 16802
Stacks Image 15863
All the Action and Filter files say “View Only” which means you can’t change anything. Do the following steps so you can get an edit button.

Go to DD-WRT router page and then go to Administration > Management then scroll down and enable JFFS2 support.
Stacks Image 15867
Now enable SSHd under Services > Services > Secure Shell
Stacks Image 15871
Reboot the router. Now on your computer open a terminal and type

ssh 10.0.1.1 -l root

where 10.0.1.1 is the actual address of your router. Yours may be 192.168,1.1 if you never changed it.

Enter your password and then do this

cd /jffs

Stacks Image 15875
That step was kind of unnecessary but good to double check your JFFS support got added. Now do this

cd /etc/privoxy

then list the contents of the folder

ls
Stacks Image 16785
Now do this to copy those files to /jffs

cp -r /etc/privoxy /jffs

Now in your browser go back to config.privoxy.org and scroll down a little until you see “The following options were given in the config file”

Highlight and copy all those
Stacks Image 16789
Now open your DD-WRT config and go to “Services > Adblocking” and paste the configuration in the “Custom Configuration” box. Change the “confdir” to /jffs/privoxy and change “Enable Edit Actions” from 0 to 1.
Stacks Image 16793
Now go back to the config.privoxy.org page and you should see edit buttons.
Stacks Image 16797
Now in the pic above click the edit button for default.action. Scroll down until you find this below.

The top entry you’ll see is .office.microsoft.com

If you have a website you need to “whitelist” like Hulu, just click the add button and type in

.hulu.

That will prevent privoxy from filtering that page which would cause playback problems. Also in my example below I was having issues with flightaware.com
Stacks Image 22764
Stacks Image 22766
Yer Doing It!
3,565