Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In my home network, I have a spare machine which I would like to configure to filter Internet traffic (block ads) as well as cache content. I would like to tell my DD-WRT router to pass all Internet traffic through this machine.

I do not want to add another NIC and do not want the machine to be directly on the "Internet". How else can I use this machine to effectively filter and cache all Internet traffic?

I am thinking I could use iptables to do something of this nature, but want to be careful that I am not creating a loop and the traffic cannot get out.

share|improve this question
Does it have not be transparent? If not then just block all outbound traffic that doesn't come from the filter. –  Zoredache Feb 12 '12 at 22:53
Yeah, I want to do it transparently. –  Walter White Feb 12 '12 at 23:12
Let me google that for you: dd-wrt.com/wiki/index.php/Squid_Transparent_Proxy. –  goblinbox Feb 13 '12 at 0:39
Hey, thanks for finding that. I did check their site, but I must have used the wrong keywords. –  Walter White Feb 14 '12 at 1:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.