Categories
Firewall Linux Tips & Tutorials Security

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.

Categories
Firewall Linux Tips & Tutorials Security

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.

Categories
Cloud Linux Tips & Tutorials

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.

Categories
Linux Tips & Tutorials Mail Server

Setup DKIM keys with Sendmail

OBJECTIVE

The purpose of this document is to enable DKIM keys setup on sendmail server so that email delivery into inboxes can be maximized.

Categories
Linux Tips & Tutorials Webservers

Get Real Visitor IP in Apache Logs running behind a Load Balancer

OBJECTIVE

The objective of this tutorial is to configure Apache webserver log settings to show the real visitor IP when Apache is running behind Load Balancer.

Categories
Linux Tips & Tutorials Webservers

Redirect xyz.com to www.xyz.com

Many times we meet with a situation where we need to redirect root domains to www. With apache htaccess file you can put the following rule in .htaccess file of webroot directory of your domain

Categories
Database Linux Tips & Tutorials

Troubleshooting MySQL Master-Slave Replication Errors

Many times I have seen broken MySQL Master-Slave syncing on various servers because of Duplicate Entry Errors. So here I am suggesting steps to overcome these issues.

Categories
Database Linux Tips & Tutorials

Export Data to CSV Format in PostgreSQL

OBJECTIVE

The objective of this article is to enable the system administrator to convert postgreSQL data in CSV format

Categories
Configuration Management Linux Tips & Tutorials

Centralized Management with Puppet on CentOS 5

Introduction

Puppet is a configuration automation tool that allows you to centralize management of the various Linux flavors running on your network. Puppet supports central management of the important aspects of your systems, such as: files, packages, users, services, cron, mounts, etc.

This is a step by step tutorial on how to install the Puppet Server (puppetmaster) on one machine, and the Puppet Client (puppetd) on another. We then perform a simple test to make sure Puppet is working properly.

Categories
Firewall Linux Tips & Tutorials Security

How to Avoid SYN Cookies DOS Attacks

SYN Flooding is the most common DDOS attack. I have tried to explain some tweaks through which you can avoid these attacks.