August 2012
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories

August 2012
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

BIND CHROOT

######################## DNS CONFIGURATION ######## 1. DNS Server Name: rhel5test.linux.com (192.168.1.21) ; domain: linux.com 2. Download and Install Packages related to bind: yum install bind* bind-utils, bind-sdb, bind-libs, bind-9.3, bind-chroot, bind-libbind-devel yum install caching-nameserver 3. Configure : name.conf file ( main configuration file ) cd /var/named/chroot/etc/ cp named.caching-nameserver.conf named.conf vi named.conf options { listen­on port […]

qmail-newu

SYNOPSIS qmail-newu

DESCRIPTION qmail-newu reads the assignments in /var/qmail/users/assign and writes them into /var/qmail/users/cdb in a binary format suited for quick access by qmail-lspawn.

Linux Hardening Script

#Please check a script regarding Linux Hardening, it may help you to configure your system

####################################################### #!/bin/bash

#####LInux Hardening Script#####

#######################################################

# #

# Files involved in this script are as follow: #

# /etc/ssh/ssh_config #

# /etc/init.d/functions #

# /boot/grub/grub.conf #

# /etc/vsftpd/ftpusers #

# /etc/securetty #

# /etc/issue #

# /etc/motd #

# […]

TCP FineTuning on Linux/RedHat-CentOS-Debian

Here are some, very handy and kewl TCP Fine tunings, i guess i put this together from a few things… and, i would suggest reading my iptables article on here about maybe fine tuning that for anti icmp etc to but, you CAN achieve the same things with tuning the stack! So, we can even […]

Blocking Nmap Scans using IPtables on Linux server

Below Rules will block few of the Nmap Scans on ur linux server

The default config files of IPtables for RHEL / CentOS / Fedora Linux are located here

/etc/sysconfig/iptables –

iptables -A INPUT -p tcp –tcp-flags ALL FIN -j DROP iptables -A INPUT -p tcp –tcp-flags ALL NONE -j DROP iptables -A INPUT […]

Securing /tmp Partition

If you are renting a server then chances are everything is lumped in / and a small amount partitioned for /boot and some for swap. With this current setup, you have no room for making more partitions unless you have a second hard-drive. Learn how to create a secure /tmp partition even while your server […]

E-mail Alert on Root SSH Login

E-mail Alert on Root SSH Login

Want to be notified instantly when someone logs into your server as root? No problem, check out this nice tutorial on email notification for root logins. Keeping track of who logs into your server and when is very important, especially when you’re dealing with the super user account. We […]

Log all activity

I log sshd session in a file called /var/log/sshd.log and here’s how I do it: 1. touch /var/log/sshd.log

2. edit your /etc/syslog.conf and add the lines !sshd *.* /var/log/sshd.log

3. killall -HUP syslogd

The sshd will now log stuff into /var/log/sshd.log. Edit your /etc/ssh/sshd_config file to determine what gets logged. By default, the following […]

Hide Apache Info

One of the things which gives a potential attacker some help is them knowing which versions of software you use. This can be very easy to find out, particularly if you have never taken steps to secure this information.

For example: I would like to know what software apache.org are using/have used so I look […]

CentOS / Redhat Iptables

How do I configure a host-based firewall called Netfilter (iptables) under CentOS / RHEL / Fedora / Redhat Enterprise Linux? Netfilter is a host-based firewall for Linux operating systems. It is included as part of the Linux distribution and it is activated by default. This firewall is controlled by the program called iptables. Netfilter filtering […]