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
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
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
Install Perfect Mail Server with ISPConfig and Horde 5.0 on Debian Wheezy- Part-2 Rumi, October 13, 2014October 13, 2014 Install necessary packages apt-get install php5-sasl php5-intl libssh2-php php5-curl php-http php5-xmlrpc php5-geoip php5-ldap php5-memcache php5-memcached php5-tidy Register the Horde Pear channel pear channel-discover pear.horde.org Set the Horde installation directory pear install horde/horde_role pear run-scripts horde/horde_role You'll be asked the following question: Filesystem installation for base Horde application: /var/www/horde You can… Continue Reading
Fixing Bind for Webmin Rumi, October 5, 2014 First get rid of bind-chroot (if it is installed!) yum -y remove bind-chroot edit /etc/sysconfig/named and remove/comment out any lines that look like ROOTDIR="/var/named/chroot" Fix the owner of /etc/named.conf with chown named:named /etc/named.conf In Webmin go to Servers > Bind DNS Server > Module Config and check the following configs 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
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