Wise people learn when they can; fools learn when they must - Arthur Wellesley

Friday, 28 April 2017

RHEL6 - 31 - RPM


RHEL6-31-RPM


Red Hat has simplified the installation of software in Linux by creating the Red Hat Package Manager (RPM). A package, or RPM file, will install a given application and create the necessary directories to run it.

An RPM package can contain an arbitrary set of files. The larger part of RPM files encountered are “binary RPMs” (or BRPMs) containing the compiled version of some software. There are also “source RPMs” (or SRPMs) files containing the source code used to produce a package. These have an appropriate tag in the file header that distinguishes them from normal (B)RPMs, causing them to be extracted to /usr/src on installation. SRPMs customarily carry the file extension “.src.rpm” (.spm on file systems limited to 3 extension characters, e.g. old DOS FAT).

Tuesday, 25 April 2017

RHEL6 - 30 - CHROOT JAIL (FTP/SFTP)


RHEL6-30-CHROOT JAIL (FTP/SFTP)

WHAT IS CHROOT-JAIL?

A chroot operation changes the apparent root directory for a running process and its children. It allows you to run a program with a root directory other than /. The program cannot see or access files outside the designated directory tree. Such an artificial root directory is called a chroot jail, and its purpose is to limit the directory access of a potential attacker. The chroot jail locks down a given process and any user ID that it is using so that all they see is the directory in which the process is running. To the process, it appears that the directory in which it is running is the root directory. 

Tuesday, 18 April 2017

RHEL6 - 29 - TCP WRAPPERS


RHEL6-29-TCP WRAPPERS
  
WHAT IS TCP WRAPPER?

As name suggest, wrapping of TCP, protection of services that communicate using the TCP protocol.
The Linux services or commands that can be controlled through tcp_wrappers are those that use the libwrap library.

For network services that utilize it, TCP Wrappers add an additional layer of protection by defining which hosts are or are not allowed to connect to "wrapped" network services. One such wrapped network service is the xinetd super server. This service is called a super server because it controls connections to a subset of network services and further refines access control.

Sunday, 16 April 2017

RHEL6 - 28 - XINETD


RHEL6-28-XINETD

xinetd stands for “extended internet service daemon”

To control access to Internet services, use xinetd, which is a secure replacement for inetd. The xinetd daemon conserves system resources, provides access control and logging, and can be used to start special-purpose servers. xinetd can also be used to grant or deny access to particular hosts, provide service access at specific times, limit the rate of incoming connections, limit the load created by connections, and more.

RHEL6 – 27 - SSH


RHEL6–27-SSH
  
SSH:
SSH is a client/server protocol, which helps us to access the remote system over the network. The communication done via encrypted tunnel. Whenever client access the server, the client downloads the secure key from server and simultaneously server fetch the secure key from client. These keys make the secure encrypted tunnel between client/server for communication.

Saturday, 15 April 2017

RHEL6 - 26 - TELNET


RHEL6-26-TELNET


HOW TO CONFIGURE TELNET IN RHEL6?

Telnet is very unsecure way to connect with other system. This is unsecure because communication between systems is in plain text.

By default
-   Telnet is not installed,
-   User “root” is not allowed,
-   After installing telnet again telnet login is not permitted.

RHEL6 - 25 - VIRTUAL IP


RHEL6-25-VIRTUAL IP


HOW TO CONFIGURE VIRTUAL IP IN RHEL6?

Before configuring virtual IP we need to know how many network interfaces are available?

Various ways to find available Network Interfaces on the RHEL system.

Wednesday, 12 April 2017

RHEL6 - 24- LINUX KERNEL - 3


RHEL6-24-LINUX KERNEL -3


KERNEL TUNING:

Kernel Tuning via /proc/sys          Temporary
Kernel Tuning via sysctl             Temporary
Kernel Tuning via /etc/sysctl.conf   Permanent

Kernel Tuning via /proc/proc                Temporary

Monday, 10 April 2017

RHEL6-23-LINUX KERNEL -2


RHEL6-23-LINUX KERNEL -2


KERNEL TUNING:

As we already know that “lsmod” is used to get the info about loaded modules.

LOADING KERNEL MODULES:

There are 2 ways to load the kernel modules, “insmod” and “modprobe”

“insmod” inserts a single module into the kernel, provided underlying dependencies are already loaded.