Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: bakedjake

Message Too Old, No Replies

Squidy - running a local proxy cache?

     
9:50 pm on Jan 7, 2002 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38048
votes: 12


I've got a second box here that doesn't get much use. Linux all installed and working a-ok (no X).

I keep wondering about setting it up as a proxy cache running Squid. I've never worked with it before. What kind of time frame would it take for me to setup? Is it even worth the hassle? I'm on 512 dsl, but the modern browsers really suck at caching.

Think it is something I would find useful?

10:56 pm on Jan 7, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 6, 2000
posts:904
votes: 0


In most cases Squid will work perfectly happily from the default configuration, so it'd certainly be worth giving it a go.

I don't particularly use it for its caching functions, more as an access controller, so I don't know how much of an improvement it is over browser caching, but from the amount of tweakables in the config file I suspect it could be pretty effective.

Air

12:32 am on Jan 8, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 10, 2000
posts:1253
votes: 0


You'll get more bang by setting up the spare box as a DNS server. Then you can point to it as the primary and your usual DNS as the secondary.
12:59 am on Jan 8, 2002 (gmt 0)

Administrator from US 

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 21, 1999
posts:38048
votes: 12


That's phase two (I'm a bit shy of Bind at this point). I want a 3-4 gig web cache first.
9:45 am on Jan 8, 2002 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 4, 2000
posts:446
votes: 0


have you thought of running squid with junkbuster? caching and removes annoying banner ads...
9:52 am on Jan 8, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member littleman is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:June 17, 2000
posts:2924
votes: 0


I have bind running on my desktop so I could resolve when the ISP's dns wigs out. It seems to work fine, bind isn't a hog at all.
9:56 am on Jan 8, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 8, 2001
posts:926
votes: 0


Slightly off topic.

Have you considered using ipchains to turn it into a firewall also?

My linux server was port scanned and attacked about once an hour. That was on dialup, on ADSL I think that number would be (finger in air) sixfold.

I never dial up using windows anymore -- too dangerous ;)

10:10 pm on Jan 8, 2002 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 28, 2001
posts:97
votes: 0


I have both bind9.1 and squid2.4 running on my home intranet server (a Mandrake 8.0 headless box). Time frame wise, I guess it is about as simple as


$ rpm -U squid-*.rpm
$ rpm -U bind-*.rpm
$ rpm -U caching-nameserver-*.rpm

Well, not exactly, but you get the point :) Squid is pretty good caching system, and I use it with Fredrik's Sleezeball ([boost.linux.kz ]) to filter the wanted ads. Sleezeball is not a second level proxy like Junkbuster, but it is a URL rewriter plugin for Squid, which rewrite all the banner ads to a static local image.

Setting up a local cache DNS server is easier with RPM-based system since it includes all the configuration file for you. Just install the caching-nameserver and then change your /etc/resolv.conf to


nameserver 127.0.0.1

It is definitely much better than the browser based caching, and you get much more options to tune with. Moreover, since it serves the whole intranet, not only your browser can benefit from cached data, so can all other users from the same network.

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members