The “tmpwatch ” command in linux is to removes files which haven't been accessed for a period of time. The tmpwatch recursively removes files which haven't been accessed for a given time. Normally, it's used to clean up directories which are used for temporary holding space such as /tmp. If you are noticing "/tmp" getting…
Continue readingTag: centos
GHOST vulnerability in Linux distributions and its Solution
A GNU C Library (glibc) vulnerability - termed as "GHOST Vulnerability" was announced to general public on 27 January 2015 - after a Cloud research company Qualys discovered this major security vulnerability. This vulnerability enables hackers to remotely take control of systems without even knowing any system IDs or passwords. How to Quickly Identify if your…
Continue readingHow to block IP address in Linux – Using IPTables Rule
Using IPTables rules we can block a Single IP address or a block of IP Addresses. The following command (via ssh) will drop any packet coming from the IP address 1.2.3.4 : # iptables -I INPUT -s 1.2.3.4 -j DROP or you can use append # iptables -A INPUT -s 1.2.3.4 -j DROP How To Block Subnet…
Continue readingConfigServer installation IPtables problem in OpenVZ or Virtuozzo (solved!)
ConfigServer Firewall (AKA csf) is an essential security tool for Linux based server and VPS. The installation of CSF is pretty straight forward and is described here: http://configserver.com/free/csf/install.txt However, some of the iptables modules required by the csf might not be present in the server and when the perl test command ( # perl /usr/local/csf/bin/csftest.pl…
Continue readingHow to disable IPtables Firewall in Linux (Red hat/CentOS/Fedora Core)
Disable / Turn off Linux Firewall (Red hat/CentOS/Fedora Core) Type the following two commands to save the IPtables first and then to stop it (you must login as the root user): # /etc/init.d/iptables save # /etc/init.d/iptables stop Turn off firewall on boot # chkconfig iptables off Enable / Turn on Linux Firewall (Red hat/CentOS/Fedora Core)…
Continue reading