Posts

Showing posts from 2009
CHROOT-BIND

Before starting
This tutorial is written "only for a beginner,by a beginner".NOT FOR PRODUCTION

Why we are using CHROOT-BIND

The idea behind running BIND in a chroot jail is to limit the amount of access any malicious individual could gain by hacking BIND.
It is for the same reason that we run BIND as a non-root user.



CHROOT-BIND configuration
========================================
/var/named/chroot/---will be the root ("/") directory

ie;/etc/named.conf will be /var/named/chroot/etc/named.conf
/var/named/ will be /var/named/chroot/var/named/

KEEP THIS IN MIND EVERY TIME....
we will not refer original location ie; /var/named/chroot/etc/named.conf
Will refer as /etc/named.conf

=========================================
/etc/named.conf
=========================================
options
{
directory "/var/named";
};

controls {
inet 127.0.0.1 allow { localhost;127.0.0.1;} keys { rndckey; };
};


acl "safe-subnet" { 10.10.40.0/24; };
view "internal&q…

Clustering Apche Using RHCS(Redhat Cluster Suit)

How to Install Redhat Clustering Suite

For a cluster setup you need minimum two machines

1. Node1

2. Node2

In this setup we will install cluster management software on another machine called Manager

The machine names and IPs are

1. node1.ansil.com --- 10.10.40.212

2. node2.ansil.com --- 10.10.40.213

3. manager.ansil.com --- 10.10.40.211

Be sure that you can access these machines through their names(FQDN).For this use a dns server/flat dns(/etc/hosts)

Management Server

1. Configure YUM

2. Install Cluster management software Luci

3. Initialise Luci cluster manager

4. Set password for Luci admin login

5. Start Luci service

1. Configure YUM

First you have to setup a yum repository in management server. You can find the procedure for creating yum is in earlier post.

2. Install Cluster management software Luci

# yum install luci*

3. Initialise Luci cluster manager

# luci_admin init

4. Set password for Luci admin login

Enter password for ‘Admin’ user

Enter password:

Reenter password:

5. Start Luci service

# service lu…

How to Configure YUM

Image
Most of the beginners in Linux faces a big problem when they are deploying a package i.e.; dependency failure. To resolve this issue redhat introduced a technology called YUM.
YUM is a repository system contains information about packages and files inside every RPMs
Don’t worry about redhat repository .Create your own Yum repository in a local system and enjoy
Here we go

1. You must have all CDs used for Redhat installation
2. 3 GB partition formatted in ext3
3. Ftp service
4. Create repo package

Create a directory in / called yum

# mkdir /yum

Create one partition using fdisk with 3 gb size
After creating partition reboot the system or use partprob command to rebuild partition table

Format partition

# mkfs.ext3 /dev/sdX

Mount the newly created partition to /yum

# mount /dev/sdX /yum

Add the same to fstab for mounting at system startup

Mount your 1st CD to /mnt

# mount /dev/cdrom /mnt

Copy Server, Cluster, ClusterStorage, VT directories to /yum

# cp –ai /mnt/Server /yum
# cp –ai /mnt/Cluster /yum
# cp –ai /…