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
Cacti on Debian (Updated) Rumi, April 19, 2015April 19, 2015 Downloading Cacti You can download the newest version of Cacti from its website. wget http://www.cacti.net/downloads/cacti-0.8.7b.tar.gz Installing Cacti Install apache webserver with php support, mysql database server, snmp, some php modules and rrdtool. apt-get install apache2 libapache2-mod-php5 php5 php5-cli php5-mysql php5-gd php5-snmp mysql-client mysql-server libmysqlclient15-dev snmp snmpd rrdtool Add a user… Continue Reading
Enable 1:1 NAT in Iptables Rumi, April 17, 2015 1:1 NAT maps a single Public IP Address to one of your computer within your local area network (LAN). Unlike port forwarding, 1:1 NAT forwards all ports from one external IP to one internal IP. iptables -t nat -A POSTROUTING -o eth0 -s 192.168.1.2 -j SNAT –to-source 83.229.64.2 iptables -t… Continue Reading
How to enable Port Forwarding in Iptables Rumi, April 17, 2015 Port forwarding allows remote computers, for example, computers on the Internet, to connect to a specific computer or service within a private local area network (LAN). Typical applications include the following: Running a public HTTP server within a private LAN Permitting Secure Shell access to a host on the private… Continue Reading
NFS Server and Client on Debian 6/7 Rumi, March 13, 2015 Assumptions: NFS Server IP: 172.16.5.100 NFS Client Node1: 172.16.5.101 NFS Client Node2: 172.16.5.102 NFS Client Node3: 172.16.5.103 NFS Client Node4: 172.16.5.104 On the NFS Server: Install nfs-kernel-server Install nfs-kernel-server and nfs-common Install nfs-common on the computer that has the files to be shared. apt-get update && sudo apt-get install nfs-kernel-server nfs-common Edit the exports… 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
Reset Zpanel Zadmin Password Rumi, December 25, 2014April 25, 2017 It’s a silly though, after updated from webGUI zpanel’s dashboard, the updated password wasn’t just working!!! So had to google a while and found the answer- keeping it for future reference- setzadmin -set password Note: In “password” area type “your new password” That’s it! 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
Open Sourced Load Balancer Rumi, October 30, 2014 Linux Virtual Server The Linux Virtual Server Project is a project to cluster many real servers together into a highly available, high-performance virtual server. The LVS load balancer handles connections from clients and passes them on the the real servers (so-called Layer 4 switching) and can virtualize almost any TCP… Continue Reading
MySQL Master-Master Replication Rumi, October 26, 2014October 26, 2014 This article is about setting up MySQL Master-Master database replication between two Cloud Servers. Master-Master data replication allows for replicated data, stored on multiple computers, to be updated by any authorized contributing member of the group. This allows for more open collaboration than Master-Slave replication where any needed changes identified… Continue Reading