Archive for February, 2008

Installing DenyHosts

Tuesday, February 19th, 2008 | Web Thinkering | No Comments

To prevent Dictionary attacks, you can use DenyHosts to stay protected

 

On Ubuntu or debian

apt-get install python wget

apt-get install denyhosts

and go directly to edit the configuration file, if you want to have it from the source, follow to the next step.

tar xvzf DenyHosts-2.6.tar.gz

cd DenyHosts-2.6

python setup.py install

Now, you should configure to fit your needs, first copy the conf file example

cp /usr/share/denyhosts/denyhosts.cfg-dist /usr/share/denyhosts/denyhosts.cfg

Now edit the denyhosts.cfg

pico /usr/share/denyhosts/denyhosts.cfg

make sure you have this two options how your distro of Linux needs

    SECURE_LOG = /var/log/auth.log

    LOCK_FILE = /var/run/denyhosts.pid

The above example is for Debian / Ubuntu, etc.

Here you have how should be for some of other Linux distributions

# Redhat or Fedora Core:
#SECURE_LOG = /var/log/secure
#
# Mandrake, FreeBSD or OpenBSD:
#SECURE_LOG = /var/log/auth.log
#
# SuSE:
#SECURE_LOG = /var/log/messages

Now make it possible for DenyHosts to run as a daemon

cd /usr/share/denyhosts
cp daemon-control-dist daemon-control
pico daemon-control

Make sure this is like your distro needs

###############################################
#### Edit these to suit your configuration ####
###############################################

DENYHOSTS_BIN   = "/usr/bin/denyhosts.py"
DENYHOSTS_LOCK  = "/var/lock/subsys/denyhosts"
DENYHOSTS_CFG   = "/usr/share/denyhosts/denyhosts.cfg"

PYTHON_BIN      = "/usr/bin/env python"

for Ubuntu / Debian you should change the

###############################################
#### Edit these to suit your configuration ####
###############################################

DENYHOSTS_LOCK  = "/var/lock/subsys/denyhosts.pid"

Make sure the root owns the daemon-control file, and the permissions are 700

chown root:root daemon-control

chmod 700 daemon-control

create the link for the daemon-control script

cd /etc/init.d
ln -s /usr/share/denyhosts/daemon-control denyhosts
update-rc.d denyhosts defaults
/etc/init.d/denyhosts start

In RedHat Distributions you should do.

cd /etc/init.d
ln -s /usr/share/denyhosts/daemon-control denyhosts
chkconfig –add denyhosts && chkconfig denyhosts on
service denyhosts start

Another lost Check and Commision Junction’s Canned Support

Saturday, February 16th, 2008 | Net Moolah | No Comments

If the check has been lost in the mail, you may ask for the payment to be re-issued. We must also inform you that the bank will charge a $25 re-issue fee (for checks in U.S. dollars) or a $50 fee (for checks in non-U.S. dollars), which will be deducted from the re-issued payment.

A check was issued to me last November 20, 2007 by Commision Junction, however upto this day there’s no sign of the check. I even seek the assistance of the local postman to locate the missing checks but our efforts are futile. This would be my 2nd lost check.

It’s just a small check worth $26 but since they will deduct a $25 re-issuance fee, its like short of saying “sorry we won’t pay you!”. The email I had received is definitely a canned response and I guess I would only receive some more cans of automated replies if I pursue this.

Other networks are very transparent and will even send you a scanned copy of your check to prove they have sent it.

I think I would have to drop my CJ campaigns and move on to other networks with “human-support” and better payment methods.

PowWeb Hosting - Only $3.88 per month

Search