Debian

Filter spam or bad robot visit your Apache with Fail2ban

Since a long days before I keep on using Apache's mod_access for spam or bad robot filtering (http://edin.no-ip.com/content/block-apache-visiting-abnormal-user-agent). It is quite handy and simple; BTW, you need to configure it manually. The benefit of the model is you only need to have a functional Apache installed then you can set it up without any special difficult and dependence; and the drawback is simple that it is not flexible.

Some useful tools for enhenance Debian security

After my recent dark ages, is time to review my Debian security level... As a starting point, the Securing Debian Manual is a must for ANY Debian administrator. Moreover, there is some useful tools, e.g. tripwire, chkrootkit and fail2ban, too.

Some useful tools for enhenance Debian security

After my recent dark ages, is time to review my Debian security level... As a starting point, the Securing Debian Manual is a must for ANY Debian administrator. Moreover, there is some useful tools, e.g. tripwire, chkrootkit and fail2ban, too.

Server is being hacked...

Well.. Too bad that my server is being hacked by someone, and inject some zombie code to attack other servers. I found that on last night, clean those zombie code, change admin password and so on. BTW, it is still too late that No-IP have already block my user account... I should check my server more often.

AWstats + Apache + Webmin on Debin etch mini-HOWTO

AWstats is a good replacement of Analog and Webalizer: it provide a good interface, and can analyze different type of log files, including HTTP, FTP and SMTP. It is not too difficult to setup under Debian etch, but need some tricky skill. On the other, AWstats provide an official Webmin module. So may we make use of both Webmin and AWstats, for a handy configuration and management? This mini-HOWTO will cover the required step for installing AWstats and its Webmin module, also a simple example for how to make use all of this.

HOWTO keep running a CLI task handily?

cp is different from rsync and usually not provide enough debug message during file coping, e.g. how many bytes transferred. A simple command can give you a great hand: watch -n1 ls -la *

For sure that you can replace ls -la * as other Linux command/ Try man watch for more information :)

HOWTO keep trace a log file change?

You may hope to keep trace Apache log for web server debug, you may hope to keep trace Exim log when your mail server looks buggy, you may... Anyway, just run the following command: tail -f -n 50 /var/log/apache2/access.log

Exim4 + Maildir + Procmail on Debian etch mini-HOWTO

What is Procmail? From Wikipedia (http://en.wikipedia.org/wiki/Procmail):

Exim4 + Maildir + Mutt on Debian etch mini-HOWTO

It is not too difficult to have Maildir support under Exim4 of Debian etch, simply run: dpkg-reconfigure exim4-config

And answer "Maildir format in home directory" when asking for "Delivery method for local mail"

BTW, the main point is this line under /etc/exim4/update-exim4.conf.conf: dc_localdelivery='maildir_home'

On the other hand, during testing your Exim4 configuration, e.g.: echo "my test" | mail -s "test message" root

Exim4 + Courier + SSL on Debian etch mini-HOWTO

Not every one need a complete solution of virtual hosting email system: you may only hope to have a simple email system within your personal server, and let you check your system log remotely. For this, you may hope you email system come with:

  1. Support both SMTP, SSMTP with authentication
  2. Support both POP3, POP3S, IMAP2, IMAPS

And that's all! This simple HOWTO will guide you though the detail steps.

Pages

Subscribe to Debian