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.
Pure FTPd
Primary tabs
Installation
Download the source:
cd /extra/src
wget http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.36.tar.gz
tar zxf pure-ftpd-1.0.36.tar.gz
cd pure-ftpd-1.0.36Configure, 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.cdbCreate 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-ftpd -s -j -lpuredb:/etc/pureftpd.pdb -d --syslog=noneMake 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