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 Pure-FTPd from Mon, 09/27/2010 - 13:49
Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.
Installation
Download the source:
cd /extra/src
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.29.tar.gz
tar zxf pure-ftpd-1.0.29.tar.gz
cd pure-ftpd-1.0.29Configure, with support for virtual users, and build it:
./configure --with-puredb
make install-stripCreate an unprivileged user and group for Pure-FTPd to run as:
groupadd pure-ftpd
useradd -g pure-ftpd -d /var/empty -s /etc pure-ftpdAutomatic Startup
Rather than xinetd or inetd, we're going to use daemontools to control Pure-FTPd startup. Install it per the instructions if it is not already on your system.
We'll use some tcpserver rules to control access to our FTP server. Install it,
then create /etc/tcp/pure-ftpd with some basic rules in it:
127.:allow
192.168.0.:allowBuild a CDB file from the rules file with:
tcprules /etc/tcp/pure-ftpd.cdb /etc/tcp/pure-ftpd.tmp < /etc/tcp/pure-ftpd
chmod 644 /etc/tcp/pure-ftpd.cdbChange the location of the log file in /etc/pure-ftpd.conf so that multilog gets the error messages:
xferlog_file=/dev/stdoutCreate the directories to hold the service scripts:
mkdir -m 1755 /var/service/pure-ftpd
cd /var/service/pure-ftpdThen create the service run script, /var/service/pure-ftpd/run:
#!/bin/sh
exec 2>&1
exec /usr/local/sbin/pure-ftpdMake the run script executable:
chmod 700 /var/service/pure-ftpd/runSet up the logging script:
mkdir -m 755 log
cd log
wget http://qmail.jms1.net/scripts/run.log
mv run.log run
chmod 700 runStart the service by creating the symbolic link in /service:
ln -s /var/service/pure-ftpd /service/After a few seconds, confirm that it is running:
svstat /service/pure-ftpd- Log in to post comments