iptables: Stop Bruteforce attacks

What is iptables?

A simple wiki definition goes as “iptables is a user-space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall (implemented as different Netfilter modules) and the chains and rules it stores.

It is a tool that allows sysadmins to manipulate linux kernel firewall for security. I have used iptables to secure webserver from any anomaliies that may occur from intruders.

Before proceeding to the iptables firewall, Please follow the basic server configuration which consists of basic security configs.

Linux Server Configuration Best Practices

Continue reading iptables: Stop Bruteforce attacks

Linux Server configuration best practices

Most of the time, beginners in Linux get confused about the things they need to consider while installing and configuring Linux server for deployments.

During Installation

  1. Opt for hardware raid. If not you can go for software raid.
  2. If possible configure Hardware raid 10. If not you can configure hardware raid 5 orĀ  raid 1.
  3. Except boot partition, please configure LVM for every partitions.
  4. Make swap double of physical RAM size for less than 4GB and same as physical RAM for more than 4GB

After we install and configure servers, Please be aware of doing following tasks. Continue reading Linux Server configuration best practices

Restore home directory in RHEL

Lets consider you are working as System Admin and you come across that the user’s home directory is deleted completely.

what will u do?

No need to worry , Follow these step :

1)copy all the .bashrc files from the different user’s home.
command : cp -rvpf .bash_* <username>
(Username means the user who’s home profile exist)

cd /etc/skel (Here are the skeleton files present )

cd /etc/skel
ls -g
cp -rvpf .bashrc /home/user
(user means the one who’s home directory is deleted )
this will bring back all his directories and login .