Archive for March, 2010

Linux-Memory Performance statistics

Wednesday, March 31st, 2010

Ref: Optimizing Linux® Performance: A Hands-On Guide to Linux® Performance Tools
Ref:http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/admin-primer/s1-resource-what-to-monitor.html
Ref:http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/admin-primer/s1-resource-rhlspec.html
Basic explanation of memory related words:
Swap (Not Enough Physical Memory)

All systems have a fixed amount of physical memory in the form of RAM chips.
The Linux kernel allows applications to run even if they require more memory
than available with the physical memory.The Linux kernel uses [...]

529/Failure Audit(MICROSOFT_AUTHENTICATION_PACKAGE_V1_0)

Monday, March 29th, 2010

Ref: http://www.winvistatips.com/security-log-eventid-529-smtp-t673781.html
Ref: http://www.pcreview.co.uk/forums/thread-1596278.php
Bad guys are trying to authenticate server via port 25.
How to reproduce this log:
# Type telnet 25,and then press ENTER.
# Type EHLO , and then press ENTER.
# Type AUTH LOGIN. The server responds with an encrypted prompt for your user name.
# Enter your user name encrypted in base 64. You [...]

how to configure logrotate for apache log files

Wednesday, March 24th, 2010

Problem : When you install apache from source , by default logrotate will not rotate those logs file as the path for log files are different.
Solution: You can edit httpd file under /etc/logrotate.d/ directory and insert bellow lines

/usr/local/apache/logs/*log {
missingok
notifempty
sharedscripts
postrotate
[...]

Linux:How to use aide to check file system integrity

Monday, March 15th, 2010

Installing Aide:

Yum install aide

Creating the database:

aide -c /etc/aide.conf –i
Output : AIDE database at /var/lib/aide/aide.db.new.gz initialized.
This process creates a new file, aide.db.new.gz in /var/lib/aide/.You must rename this file to aide.db.gz, which is the correct name for the AIDE database.

Testing Aide:

aide -c /etc/aide.conf –C

Cisco:Basic commands to setup a cisco router

Wednesday, March 10th, 2010

How to lock the privilege mode :

enable
configure terminal
enable secret cisco

How to secure vty ?

enable
configure terminal
line vty 0 15 [ for help type line vty ? ]
login
password cisco

How to secure console port?

enable
configure terminal
line con 0
login
password cisco

How to secure the aux port?

enable
configure terminal
line aux 0
login
password cisco

How to setup banner?

enable
configure terminal
banner motd [...]