pfSense with Squid

Metraon

Limp Gawd
Joined
Feb 23, 2011
Messages
307
Hello

I have this setup I want to run as fast as possible for my cabin in the woods.

2wire Modem (DSL) ----- pfSense ------ Switch ------- AP & Computer

I am getting a 2 mbps connection out of my DSL Line so I decided to save a little bandwidth to use pfSense with squid to cache some pages.

I use 8.8.8.8 and 8.8.4.4 as the DNS and I was wondering if I can give those IP with the DHCP or just the pfSense IP as the DNS.

IE a typical lease is :

Adress : 10.1.1.*/24
DG : 10.1.1.1
DNS1 : 8.8.8.8
DNS2 : 8.8.4.4

vs

Adress : 10.1.1.*/24
DG : 10.1.1.1
DNS : 10.1.1.1

Does it make any difference in performance or any troubles for caching ?


And I would like to know if there a way/package to know what is cached ?

Thanks
 
Its definitly possible to give out whatever DNS servers you want to the client PC's. On the page where you configure your DHCP options you can specify the DNS servers you want to use.

As far as seeings whats cached. You can browse the cache folders. But I've never checked to see whats actually in them.

Latency is increased with caching, but not so much that you'd probably notice it on a 2Mb connection.
 
Squid is called a transparent proxy for a reason - the DNS you use doesn't matter.

pfSense automatically redirects the outbound traffic to port 80 to the squid server.

Also, just for reference, a local DNS server will be much faster for cached queries, especially over shit-ass dsl. There are also tricks to keep commonly accessed sites cached.
 
The last I played with pfSense it had an Unbound package available. I would set that up and use Google's public DNS as forwarders. I believe in this configuration Unbound will still cache DNS and forward any non-cached items.

In that case I'd continue to assign your clients the IP of your pfSense box for DNS.
 
Back
Top