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
Most of the time, beginners in Linux get confused about the things they need to consider while installing and configuring Linux server for deployments.
- Opt for hardware raid. If not you can go for software raid.
- If possible configure Hardware raid 10. If not you can configure hardware raid 5 or raid 1.
- Except boot partition, please configure LVM for every partitions.
- 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
Recently, One of my virtual machine disk space was full due to different logs and files. I had to increase the space to run the system smoothly. I have documented briefly that I found from Vmware KB. Please have a look:
Continue reading Increase the size of virtual disk in Vmware EXSI
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 )
cp -rvpf .bashrc /home/user
(user means the one who’s home directory is deleted )
this will bring back all his directories and login .