Koozali.org: home of the SME Server

Transparent Caching Proxy

Trevor

Transparent Caching Proxy
« on: April 13, 2000, 12:22:19 AM »
With E-Smith 4.0b, is there anyway to modify the scripts to force everyone to cache their web traffic through squid?

Thanks,

Trevor Ouellette

Charlie Brady

RE: Transparent Caching Proxy
« Reply #1 on: April 14, 2000, 04:59:31 AM »
Trevor wrote:

> With E-Smith 4.0b, is there anyway to modify the scripts to
> force everyone to cache their web traffic through squid?

There are some developers working on some configuration changes to make that happen. It won't be in 4.0, but should be by 4.1. If you interested in contributing or testing of development versions then you might like to join the developers mailing list.

Regards

Charlie

Tim Litwiller

RE: Transparent Caching Proxy
« Reply #2 on: April 16, 2000, 09:21:29 AM »
edit your squid.conf template to include this

httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

then
run these two lines
the first needs to be all one line
and the second needs your servers internal ip address put in place of yourserverip

--start first--
ifconfig | grep "inet addr:" | awk -F':' '{ print $2 }' | awk '{ print "ipchains -A input -j
ACCEPT -p tcp -s 0.0.0.0/0 -d " $1 "/32 80" }' | sh
--end first--

--start second--
ipchains -A input -j REDIRECT 3128 -p tcp -s yourserverip/24 -d 0.0.0.0/0 800
--end second--


see minihowto at
http://boost.linux.kz/docs/TransparentProxy-miniHOWTO.txt