Sunday, March 25, 2007

IPKungfu, Squid Screwed on Edgy... Nah!

Whew! I almost thought that I could no longer use my trusted combination of IpKungfu and Squid for a transparent proxy setup on our local intranet here at the Community eCenter of Gerona.

Yesterday, I upgraded our router/squid/samba/printer server from Ubuntu Dapper to Ubuntu Edgy Eft via a fresh install.

To my horror, as I tried to run ipkungfu from the terminal... it won't run leaving several lines of error warnings! I did some research with Mr. Google in which I find out that I only have to open /usr/sbin/ipkungfu...
sudo gedit /usr/sbin/ipkungfu
and change the first line to...
#!/bin/bash
and then my IpKungfu started to work flawlessly.

Then next is Squid. When I tried the same configurations I used on this blogpost, Squid won't start with matching errors (again!).

After a few seconds Googling the net, I found out that I no longer have to setup the lines below on Squid version 2.6 (Dapper uses the older version)...
httpd_accel_host virtual
httpd_accel_port 80
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
Instead, all I have to do is to change the http_port tag at the squid configuration file from "http_port 3128" to "http_port 3128 transparent" and that's it!

Now Ipkungfu and Squid works well hand in hand (and a bit zippier!) on my Ubuntu Edgy Eft box as if it was configured by a pro. :)

Online Resources: Transparent Caching on Squid 2.6 and Ipkungfu on Edgy Eft.

1 comment:

Riccardo said...

Thanks, for ipkungfu it worked! How strange nobody explains this issue.