Install Skype 5 in Ubuntu 12.04

Skype ended support for Ubuntu 12.04 LTS and its new packages have updated dependencies that are not met by this release. To get around this issue, the following script will extract the deb package and reconfigure it for installation on a 12.04 release based system. Please be aware that the package may break or not…

Continue reading →

Make IPTables Rules Permanent

To make iptables rules permanent, we need to save them to a configuration files and ensure they are restored on each boot. The following assumes that the current rules enabled are those to be made permanent. Save current rules to config file

Edit /etc/rc.local as root and add the following

Continue reading →

Use IPSet to Block Multiple IPs

Instead of adding individual IP addresses that need to be blocked to IPTables, it is easier to maintain a a single blacklist using IPSet and reference it in IPTables. Install IPSet

Create the blacklist list

Tell IPTables to reference the newly created list

Add an IP to the list to test

Continue reading →

Location Based SSH Access Using GeoIP

To control SSH access based on location, I will use the GeoIP free database to determine the source IP address. Each time an external (non-local network) connection is initiated, the script will be executed by the SSH daemon to identify the region. If the region is not in the allowed list the connection will be…

Continue reading →