Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to setup squid as a caching server for my local network. I am looking for a solution to make the whole network use the proxy automatically. In other words, I want every client on the network to use the server without having to configure it on the client side. Is there a way to configure this on the router? Do pfsense or ddwrt have this capability?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

In general it sounds like you're looking for a transparent proxy. It's not entirely clear what router you're using, but I'll assume it's some kind of Linux box. If so, iptables can be configured to redirect certain traffic (i.e. web traffic) to a squid server without altering any client configuration. Here's an example that might be useful. Searching for "transparent proxy" will likely provide some additional clues. If you're using a proper hardware router you also may want to look into WCCP as a mechanism to redirect traffic to- and from- proxy servers.

share|improve this answer

This is the task of the WPAD protocol. There is Squid-specific documentation.

share|improve this answer
    
Assuming you control DHCP and / or DNS, this is the best solution. –  Sirex Oct 25 '12 at 0:38

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.