Webserver such as Nginx / Lighttpd accepets passwords using encoded method i.e. function crypt(3) is needs. You can create the password file with the htpasswd program from Apache. Sometime Apache is not installed use the following perl script to create password.

How do I use crypt.pl?

Download script

Set permissions:
chmod +x crypt.pl Read the rest of this entry »

Posted in Uncategorized | No Comments »

Setup virtual users instead of local users and configure user specific home directories for each user, or shared between a handful of users.

The reason for setting up virtual users, and different home directory for each user, was to allow ftp access to a web server running a number of different sites for different clients. Each client can have one or more login to the ftp server, and the usernames and passwords can be shared with the apache webserver, so you only need to store their passwords in one place.

I’m choosing vsftpd as the ftp server, as it seems to have the best reputation for being secure (and having the fewest security bugs)

 

Installing

Whilst each flavour of linux has it’s own way of installing software, I’m going to run through using debian, so you will need to adapt it for whichever distro you use.

Firstly we need to download and install the ftp server VSFTPD

debian# apt-get install vsftpd Read the rest of this entry »

Posted in Uncategorized | No Comments »

20060131-fedora.jpg

There are many reasons people are hesitant to try Linux. The biggest of these reasons is that installing Linux generally requires people to do a list of difficult and unfamiliar tasks. However, I am going to introduce “virtualization” which is a fancy term for running Linux like any other program in Windows. The following article will guide you through the process of setting up Linux so you can run it like any other program in Windows. Don’t be intimated, these directions are designed for the absolute beginner and will not require you to do anything unfamiliar, threatening, or permanent to your computer. When you are finished you will be able to run Linux like any other program in Windows and share files between Linux and Windows.

The first step is to install VMWare Player. Read the rest of this entry »

Posted in Uncategorized | 1 Comment »

We will learn to run squid with squidGuard that is a URL redirector used to use blacklists.

[1] Install squidguard
lan:~#

aptitude -y install squidguard

lan:~#

mv /etc/squid/squidGuard.conf /etc/squid/squidGuard.conf.bk

lan:~#

vi /etc/squid/squidGuard.conf
# write like following example
#
# CONFIG FILE FOR SQUIDGUARD
#dbhome /var/lib/squidguard/db
logdir /var/log/squid

# create a category ‘dame’

dest dame {

# prohibited domain list
domainlist dame/domains
# prohibited url list
urllist dame/urls
}

acl {

default {
# permit to access except ‘dame’
pass !dame all
# redirect URL
redirect http://www.google.co.jp/
}

}

lan:~#

mkdir /var/lib/squidguard/db/dame

lan:~#

vi /var/lib/squidguard/db/dame/domains
# write domains you’d like to prohibit to access
yahoo.co.jp
example.com

lan:~#

vi /var/lib/squidguard/db/dame/urls
# write URLs you’d like to prohibit to access
www.yahoo.co.jp/deny/
www.example.com/

lan:~#

squidGuard -C all

lan:~#

chown -R proxy. /var/lib/squidguard/db/dame

lan:~#

vi /etc/squidclamav.conf
# line 59: change PATH

squidguard

/usr/bin/squidGuard

lan:~#

/etc/init.d/squid restart

Restarting Squid HTTP proxy: squid Waiting………done.

[2] Try to access to Yahoo set as prohibited domain in [1]. Anyway, this redirect setting is an example to show action of this squidGuard, but please make your own original redirect page because it’s meaningless to redirect to google like this example.

Thanks to Author, source here

Posted in Uncategorized | No Comments »

[1] Install clamd first
lan:~#
mkdir -p /var/run/clamav

lan:~#
chown clamav. /var/run/clamav

lan:~#
vi /usr/local/etc/clamd.conf

# line 8: maike it comment

#
Example

# line 72: change

LocalSocket
/var/run/clamav/clamd.sock

# line 80: make valid

TCPSocket 3310

# line 87: make valid

TCPAddr 127.0.0.1

# line 150: make valid

User clamav

lan:~#
/usr/local/sbin/clamd &

[1] 30805
[2] Install squidclamav
# Install packages for dependency

lan:~#
aptitude -y install libcurl3-gnutls-dev libwww-curl-perl libcurl3-gnutls libcurl3 curl libcurl3-openssl-dev slang-curl Read the rest of this entry »

Posted in Uncategorized | No Comments »