Category Archives: Linux Tips & Tutorials
How to Block countries on Nginx with GeoIP module
GEOIP : The GeoIP technology allows the web masters to get valuable information about the location of their visitors. It can determine the country, city, area code and much more.The web site developers use it for delivering of customized content based on the geographical location, targeted advertisements, web logs and statistics, spam prevention, location restricted access and other useful solutions.
This tutorial will help you to know how we can use the GeoIP module with nginx to block all visitor from single and multipal countries.
Use Linux cron Instead of WP-CRON
WordPress has internal function called WP-CRON, By default every time a page is loaded in admin or on the front-end of your site, WordPress calls WP-CRON. To avoid this, best way optimize the efficiency of your WordPress cron jobs is to disable WP-CRON and set up a Linux cron job.
PREREQUISITES
-
You need to have a working knowledge of Linux commands before you can use cron jobs effectively.
How to read a file line by line in bash script using while loop
This tutorial introduces the concept of playing a file line by line in bash script using while loop.
PREREQUISITES
This tutorial assumes that the reader has basic knowledge of bash scripting & programming skills.
How to disable logging in Squid Proxy
Some times we come across strange requirements and disabling logs of squid proxy service is one of them. Below are the simple steps to disable all kind of logging by squid service.
How to generate and send Nagios hosts and services reports through command line
OBJECTIVE
The objective of this how to is to setup nagios reporting through command line & enabling the cron jobs to send the reports in HTML format to email accounts specified.
PREREQUISITES
How to install Nodejs on CentOS
OBJECTIVE
The objective of this small HowTo is to help the system administrators setup NodeJS on their CentOS Server.
NOTE: The mentioned steps are successfully ran on CentOS 6 version
Setup Remote Logging Server with Rsyslog
Objective
The objective of this tutorial is to configure a remote centralized log server using rsyslog. RsysLog server runs on both TCP as well as UDP port 514. But this tutorial is using UDP port. This setup is tested on CentOS 6 server & client machines.
How to setup Iptables firewall for outgoing IP rotation
OBJECTIVE
The objective of this tutorial is to enable outgoing IP rotation. One of the common use cases of IP rotation is setting up mass mailing server. I am assuming we have already setup the SMTP (MTA) server here listening on all interfaces.
Setting up Fail2Ban for avoiding different kinds of Brute Force Attacks
OBJECTIVE
To prevent the server from bruteforce attacks. Fail2ban will monitor the service and block the persons try to harm our server.
How to setup Amazon EC2 API on Linux Machine
OBJECTIVE
The objective of this how to is to enable the use of various command line tools of Amazon such as EC2 API, S3 API, Route53 API, etc.