altivo: Geekish ham radio pony (radio)
[personal profile] altivo
Today, besides cataloging a stack of stuff, I configured the squid cache on the new server. Squid's a useful tool, but horribly complex. Fortunately I don't need many of its features.

Supposedly the old proxy server (still running, but not for much longer) that was configured and installed by an outside agency, had bandwidth controls and a squid cache. It was a black box to me for the last two years because it seemed to be working and the network architecture was such that I couldn't easily communicate with it or look inside. Even though I have the requisite passwords, they left me no documentation whatsoever on their setup, so I had to reverse engineer it by hunting down all the configuration files and such.

Turns out it was doing nothing except DHCP and pass-through. Squid was running but not actually getting any traffic because the IPtables weren't set up. Bandwidth control was supposed to be happening in squid, but since no traffic was going through it there was no bandwidth monitoring either.

This new setup is actually functional. Web traffic goes through the cache. Bandwidth is monitored independently using kernel enforced queue disciplines. There is no other way for that subnet to reach the outside except by going through this gateway. Just goes to show once again, if you want something done right, you have to do it yourself.

There may need to be some cache tuning, but we're functional now. To be absolutely sure, I'll probably install portsentry and tripwire on the machine even though it has no real exposure to the internet. (There's a hardware firewall between it and the real internet, so no inbound connection from outside can reach it.It's not set up to respond to anything but SSH from that direction in any case.) Probably the whole thing can go live on Monday.

Date: 2009-03-22 11:08 am (UTC)
From: [identity profile] cabcat.livejournal.com
Oooh goody, does that mean noone can hog bandwidth?

Date: 2009-03-22 02:31 pm (UTC)
ext_39907: The Clydesdale Librarian (argos)
From: [identity profile] altivo.livejournal.com
Well, it makes it much more difficult, at least. And it makes sure that no one on the public laptop subnet can take over the entire T1, which was the problem we kept having with one particular guy.

Date: 2009-03-22 09:53 pm (UTC)
From: [identity profile] heavens-steed.livejournal.com
The squid was running through traffic uncontrolled? This sounds like a really bad monster movie...

Date: 2009-03-24 01:33 am (UTC)
ext_39907: The Clydesdale Librarian (Default)
From: [identity profile] altivo.livejournal.com
Actually the traffic was running through the squid uncontrolled, which gets really messy. ;p

November 2024

S M T W T F S
     12
345678 9
10111213141516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 11th, 2026 07:19 pm
Powered by Dreamwidth Studios