Simple IPTables Firewall with Whitelist and Blacklist


IPTables FirewallThe following is a simple IPTables firewall script that can be used for general purposes.  It includes a port list and whitelist/blacklist.  The script was tested on CentOS v6 and Ubuntu v12.

Hardening FreePBX


Hardening FreePBXThis script is a highly modified version of the AsteriskNOW hardening script a copy of which is here.  Some things were added.  Some were changed.  Some things were taken out.  Most importantly, it has been updated to work with newer versions of FreePBX where all the settings that used to be in amportal.conf are now in the Asterisk MySQL database.  As such, it is not compatible with older versions of FreePBX (anything before v2.9) which use the amportal.conf file.

Install Fail2ban for Asterisk from RPM



This procedure is what I consider the simplest possible fail2ban install procedure because it installs from RPM.  The most up to date RPM is currently found on the EPEL repository.

A2Billing Install guide


A2billingThis guide will show how to install A2Billing on a Redhat Enterprise Linux based system.  It is assumed you already have Linux and Asterisk and FreePBX installed using a procedure similar to this one.  We do not cover the installation of the callback daemon.


Replace TFTP with FTP for SIP phone configuration


These are my notes on how I replace TFTP with FTP for Aastra SIP phone configuration files on a Redhat Enterprise Linux server.  With the TFTP port exposed to the internet and no IP restrictions for remote phone configuration the directory is wide open. This makes it easy for someone to obtain extension passwords.

Aastra XML scripts on Asterisk 1.8

Aastra phoneThis is mostly an updated version of the Aastra XML scripts on Asterisk 1.6 procedure.  Taking into account the newer version of XML scripts and the various changes.


How to create a Redhat Enterprise Linux OpenVZ Template


This guide is a reference on how to create a RedHat Enterprise Linux v6 template for OpenVZ.  

There are other ways and variations on how one can go about this.  The method I will present here is the way I do it. In this case I used the recompiled from source distribution known as Scientific Linux.  This guide should work equally well for any distribution including Redhat, CentOS etc.  It also works for v5 with a few minor changes or omissions which should be obvious. This guide was used with the 32bit distribution.  

Aastra XML scripts part II, auto-provisioning and auto setup with RPMS

In previous posts I showed how to auto-provision and configure Aastra phones by manually installing XML scripts.  Aastra has released RPM packages for Trixbox that combines everything and adds new features as well as mDNS so the phones can find the TFTP server even if you don't have a DHCP server capable of assigning it.  The script won't install unless mDNS is installed.