Monthly Archives: September 2014

Enable remote access of MySql on Ubuntu

By default MySQL only listens to localhost, if we want to enable the remote access to it, then we need to made some changes in my.cnf file:

sudo vi /etc/mysql/my.cnf


Read more of this post


IP Setting on CentOS6 using Shell Script

In this tutorial, I’ll show you that how we can do initial settings on CentOS6.x using shell script:

First create the script :


Screen Shot 2014-09-16 at 1.40.23 pm

Read more of this post

Cisco CSR1000v Router as NAT Instance on AWS

We’ll use the below scanrio in this tutorial in which we’ll configure Cisco CSR1000v Router as custom NAT Instance within our vpc on AWS.


Read more of this post

Block WordPress xmlprc.php DDOS attacks using Fail2Ban

Few days ago, my friend’s WordPress website went down. After investigation, I have figured out that it was receiving massive amount of posts requests to the xmlrpc.php file, which brings the apache and mysql to eat up all the system resources and the website crashed. Fortunately, I have figured out the way to mitigate this attack using Fail2Ban, which I’ll share in this post.

Install the Fail2Ban package using the following command:

apt-get install fail2ban iptables

1 Read more of this post

OpenVPN Server Setup on Mikrotik RouterOS

In this post, I’ll describe the step by step procedure to setup Mikrotik RouterOS as OpenVPN server. I’ll use the Ubuntu Server in order to create CA, server and client(s) certificates.


Read more of this post

%d bloggers like this: