Author Archive

Wine 1.3.24 Released

he Wine development release 1.3.24 is now available.

What’s new in this release:

* Various DirectInput improvements.
* Support for line breaking in Uniscribe.
* More UI elements in builtin Shell Explorer.
* Some more D3DX9 functions.
* Improved support for shell known folders.
* Various bug fixes.

The source is available now. Binary packages are in the process of being built, and will appear soon at their respective download locations.

Bugs fixed in 1.3.24:


How to set the PassivePortRange in pure-ftpd on Debian Squeeze

If you run a firewall on your Debian  server and want to use passive FTP connections, you have to define the passive port range in pure-ftpd and your firewall to ensure that the connections dont get blocked.

The following example is for pure-ftpd on Debian Squeeze:

Configure pure-ftpd:

echo "50000 50120" > /etc/pure-ftpd/conf/PassivePortRange

/etc/init.d/pure-ftpd restart
Restarting ftp server: Running: /usr/sbin/pure-ftpd -l pam -l
puredb:/etc/pure-ftpd/pureftpd.pdb -p 50000:50120 -O
clf:/var/log/pure-ftpd/transfer.log -S 192.168.1.100,2121 -8 UTF-8 -H -u 1000 -E -B

Enjoy


OpenVZ Create a Virtual Server How To

Create a Virtual Server:
Once you have OpenVZ installed you will be able to begin the process of installing individual containers.

Using the vzctl command you will be able to create a virtual server.

vzctl create 102 –ostemplate debian-6.0-x86 –config basic
Creating container private area (debian-6.0-x86)
Performing postcreate actions
Container private area was created

The following setting provides for the VE to start on boot:

vzctl set 102 –onboot yes –save

vzctl set 102 –hostname  debian-tutorials –save


Apache2 Web Server Logs – How To

Log Files:
Log files are critical to managing Apache.
Managing these logs can provide advance security warnings, provide detailed information in terms of who is visiting your site and where they are coming from and can help you troubleshoot the use of your server resources. The two main log files are listed below from a Debian Squeeze Server.
The access_log file gives you information on who is using your web server and the error_log provides information for troubleshooting.

/var/log/apache2/access_log
/var/log/apache2/error_log

How to View Apache2 Logs:

View apache2 logs with tail and head:

The basic tail command will show the tailend of the log.

tail /var/log/apache2/access_log

You can use the -n option to view a specific number of lines  like in this example:

tail -n100 /var/log/apache2/access_log

Head is the opposite of tail.


Iptables Shell Script To Drop Spamhaus Listed IP

The Spamhaus Project is one of the largest anti-spam DNS blacklist services known. Founded in 1998, Spamhaus has operations in Geneva, Switzerland, and London in addition to the 28 investigators and forensic specialists located in 8 countries. Spamhaus is a true 24 hour a day anti-spam operation. With over 60 public DNS Servers distributed across 18 countries, Spamhaus is able to serve billion of DNS requests to the world over, all free of charge. It has been estimated that 1.4 billion users mailboxes are in some way protected by The Spamhaus Project every day.

Here, I will show you a script that automatically blocks IPs blocked by Spamhaus:

#!/bin/bash

IPT=”/sbin/iptables”
FILE=”/tmp/drop.lasso”
URL=”http://www.spamhaus.org/drop/drop.lasso”

echo “”
echo -n “Deleting DROP list from existing firewall…”


Social Media

  
FeedBurner Subscribe



Categories

Page 20 of 47« First...1018192021223040...Last »
Copyright © 2012 Linux Debian Tutorials | Debian Squeeze Tutorials. All rights reserved.
↑ Back to Top