2 Gateways or Multiple Gateway on a single CentOS box Rumi, May 21, 2015 Scenerio- eth0- 172.30.0.100 | Gateway- 172.30.0.97 eth1- 192.168.2.247 | Gateway- 192.168.2.1 Need to connect to SIP BOX destination (fictitious)- 202.140.1.1 eth0 has not internet access but it uses the mentioned (172.30.0.97) as gateway to reach 202.140.1.1 server eth0 has internet access by using 192.168.2.1 gateway. Here goes the configuration on /etc/sysconfig/network-scripts/ifcfg-eth0 Continue Reading
Install and configure fail2ban Rumi, January 4, 2015 Servers do not exist in isolation, and those servers with only the most basic SSH configuration can be vulnerable to brute force attacks. fail2ban provides a way to automatically protect the server from malicious signs. The program works by scanning through log files and reacting to offending actions such as… Continue Reading
rkhunter perfect configuration Rumi, January 4, 2015January 4, 2015 Introduction Exposing any computer to the internet is in some ways risky. There are many ways that your server can be compromised or attacked by remote systems and malicious software, and it is an ongoing and proactive process to defend yourself against potential threats. One potential concern is rootkits. Rootkits… Continue Reading
Add EPEL Repo to CentOS or SL 6 Rumi, November 24, 2014February 4, 2024 For 64 Bit rpm –import http://fedoraproject.org/static/0608B895.txt wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm For 32 Bit rpm –import http://fedoraproject.org/static/0608B895.txt wget http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm Additional Add Remi Repo rpm –import http://rpms.famillecollet.com/RPM-GPG-KEY-remi rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm yum install yum-priorities Edit /etc/yum.repos.d/epel.repo… vi /etc/yum.repos.d/epel.repo Update: Feb-04-2024 Enable the EPEL Repository on CentOS 6.x, RHEL 6.x,… Continue Reading
Bash Shellshock fix with scripts for Debian, Ubuntu, CentOS and other distros. including old Rumi, October 3, 2014December 19, 2014 First check if your Bash is vulnerable, execute the following command- env x='() { :;}; echo vulnerable’ bash -c ‘echo this is a test’ If your system is vulnerable, you will see: vulnerable this is a test If your system is not vulnerable, you will see: bash: warning: x: ignoring… Continue Reading
Install PHP4 on CentOS 5.5 Rumi, September 6, 2014 1. Install Apache yum install httpd 2. Install Mysql yum install mysql mysql-server php-mysql 3. Install dependencies yum install flex gcc* bison bison-devel httpd-devel make 4. Download PHP4 cource wget http://lu2.php.net/get/php-4.4.9.tar.gz/from/my2.php.net/mirror Continue Reading
Boot CentOS 5/6 as Single User Mode Rumi, August 3, 2014 Step 1 – Boot CentOS into Single User Mode – Hit Any Key Boot CentOS in Single User Mode – Press Any Key to Edit Boot Options Power up the machine and when you see this screen, hit the space bar or any other key before the timeout. Step 2… Continue Reading
CentOS mount NFS Disk Rumi, July 24, 2014 First Enable EPEL Repo under CentOS or RHEL Servers You need to type the following command as per your distro version / release. RHEL 5.x / CentOS 5.x Users Type the following command as root user to install repo: # rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm RHEL 6.x / CentOS 6.x Users Type… Continue Reading
Reinstall OpenSSH Server Rumi, June 21, 2014 First if you have any pre-installed SSH server that has gone bad, remove it- on Redhat Architechture Type the following commands as the root user: # chkconfig sshd off # service sshd stop # yum erase openssh-server You need to edit and update firewall rules that allows inbound connections to… Continue Reading
Install VNCServer on Centos 5 Rumi, June 6, 2014 Install VNC Server to operate CentOS with GUI remotely from Windows client. VNC is already installed if you already build Desktop Environment. If it's not installed, Install by a command 'yum -y install vnc-server'. [root@ns ~]# yum -y install vnc-server [root@ns ~]# vi /etc/sysconfig/vncservers # line 20: make valid… Continue Reading