SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Revision of Pound from Fri, 04/27/2012 - 08:34
Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.
Installation
Create a directory to work in:
mkdir -p /extra/src
cd /extra/src
Download and unpack the source:
wget http://www.apsis.ch/pound/Pound-2.6.tgz
tar zxf Pound-2.6.tgz
cd Pound-2.6
Configure it, then build and install:
./configure --with-ssl
make
make install
Basic Configuration
Create a config file /usr/local/etc/pound.cfg
for a basic setup to proxy requests to an internal server:
## sample pound.cfg
#
User "nobody"
Group "nobody"
## Logging: (goes to syslog by default)
## 0 no logging
## 1 normal
## 2 extended
## 3 Apache-style (common log format)
LogLevel 1
## check backend every X secs:
Alive 30
## Run in foreground for daemontools startup
Daemon 0
ListenHTTP
Address 1.2.3.4
Port 80
Service
HeadRequire "Host: .*www.server0.com.*"
#Enable WebDAV
xHTTP 2
BackEnd
Address 192.168.0.10
Port 80
End
End
Service
HeadRequire "Host: .*www.server1.com.*"
BackEnd
Address 192.168.0.11
Port 80
End
End
End
Automatic Startup
We're going to use daemontools.
If you haven't already, install daemontools.
Create a directory for the Pound service:
mkdir -m 1755 /var/service/pound
cd /var/service/pound
Create the run script and make it executable:
echo '#!/bin/sh' > run
echo 'exec /usr/local/sbin/pound' >> run
chmod 755 run
Our log script comes from John Simpson:
mkdir -m 755 log
cd log
wget http://qmail.jms1.net/scripts/service-any-log-run
mv service-any-log-run run
chmod 755 run
Finally, add the service to daemontools by creating the symbolic link in /service
ln -s /var/service/pound /service/pound
Confirm that the service is running:
svstat /service/pound /service/pound/log
- Log in to post comments