Thursday 22 October 2015

Asterisk Wideband Music on Hold

15:24 Posted by Jurgens Krause , , , , , , , , , No comments

The default music on hold included with Asterisk leaves somewhat to be desired, and getting high quality replacement music in the correct formats can be a challenge. I have not managed to figure out how to convert to G722, but you can easily convert to the native Asterisk SLN format with the following commands:

Monday 5 October 2015

Multiple PPPoE Connections on Ubiquiti AirOS

09:40 Posted by Jurgens Krause , , , 4 comments
Sometimes you need to push your available hardware and software a little bit beyond their original specifications. Because AirOS is built on Linux, you actually have a fair bit of flexibility in order to do whatever you like.

I had a need to be able to run multiple PPPoE accounts on the same antenna for two reasons. Firstly, when I need to separate VoIP traffic from Data traffic, and secondly when I have two users behind the same antenna. I then use VLANs to route the traffic independently.

Friday 2 October 2015

Simple DNS redirect for Google Chromecast

10:43 Posted by Jurgens Krause , , 1 comment

Google Chromecast, as well as newer versions of Android, are forced to use Google's DNS servers. This means that if you are using a DNS redirection service to access Netflix for example, it will not work on the Chromecast or on your Android device.

Wednesday 30 September 2015

Friday 11 September 2015

Enable Remote Desktop on Windows Home Editions


For a long time you had to have the Professional or Enterprise Editions of Windows in order to access the computer using Remote Desktop. Now, thanks to a couple of committed developers, we can enable RDP functionality on Windows Home Editions as well!.

Wednesday 9 September 2015

Ubiquiti AirOS 5.6 Virtual SSID Step by Step

14:18 Posted by Jurgens Krause , , , , , , 23 comments

One of the big gripes that people have with Ubiquiti is the lack of support for Virtual SSIDs. Here is a step by step tutorial for setting up VSSIDs on Airos 5.6 devices with Vlans back to the upstream router. Please note that you will not be able to use Airmax when you have Virtual SSIDs.

This tutorial is based on information from the Ubiquiti Forums, specifically this post by AnubisSL.

Tuesday 1 September 2015

Ubuntu 14.04 LTS/ FreeRadius / Postgresql Step-by-step

16:27 Posted by Jurgens Krause , , , , No comments

Step by step instructions for installing
FreeRadius with Postgresql on
Ubuntu 14.04 LTS

Why 14.04, well it is the current LTS release, and for production environments, I tend to stick to the latest LTS.

I am not going to be going into detail into how to install Ubuntu 14.04 Server, there are enough tutorials on that elsewhere. I need you to get to the point where you have a clean server, with SSH access, and a root prompt.

Installing software

First, let us update the apt-get info:
apt-get update

Now we need to install the basic components, these include:
Freeradius, Postgresql and it's utilities as well as the postgresql module for freeradius:
apt-get install freeradius freeradius-postgresql postgresql postgresql-contrib

This will install all the necessary components, it is normal for the DH Parameter generation to take a couple of minutes.

Configure Postgres

The Postgres installation automatically creates a user called postgres, in order to configure Postgres, you need to log into that account.

sudo -i -u postgres

Now we create the radius user and database, when creating the user, you will be prompted to create a password, make it nice and secure, and make a note for later use:

createuser radius --no-superuser --no-createdb --no-createrole -P
createdb radius --owner=radius exit

Change the database authentication from peer to md5 to allow login from the console:

vim /etc/postgresql/9.3/main/pg_hba.conf

Find the line that matches:
local    all    postgres    peer

and change it to:
local    all    postgres    md5

also find:
local    all          peer

and change it to:
local    all          md5

Reload postgresql
service postgresql restart

Import the database schema using the command below:
cd /etc/freeradius/sql/postgresql
psql -U radius radius < schema.sql

Configure FreeRadius to use Postgres

Change the sql configuration as follows:
cd /etc/freeradius
vim sql.conf

change the following lines to suit your setup:
database = "postgresql"
password = "yourpassword"


You will also need to change the login name to leave out the realm when logging in:

Change the sql configuration as follows:
vim radiusd.conf

change the following line:
sql_user_name = "%{User-Name}"
To:
sql_user_name = "%{Stripped-User-Name}"
Also uncomment the line that reads:
$INCLUDE sql.conf

Now uncomment the line that reads "sql" under the authorize{} section, on my default config it is line 177,
also uncomment the "sql" line under the accounting{} section,
also uncomment the "sql" line under the post-auth{} section
cd /etc/freeradius/sites-available vim default

Also uncomment the line that reads "sql" under the authorize{} section of /etc/freeradius/sites-available/inner-tunnel, on my default config it is line 131
vim inner-tunnel


Restart the FreeRadius server to load the new config, and you should be good to go.
service freeradius restart

Thursday 13 August 2015

Step by Step - Fallout Shelter on your PC Tutorial


So, you want to play Fallout Shelter on your PC?
It is actually not all that difficult, just follow the steps below and you will be up and running in no time.

I tested this on my Lenovo Laptop, running on Windows 10 64-bit, your mileage may vary, but if you have any questions, just ask them in the comments section.

I must say, it is much nicer than playing on phone or even a tablet:


Ubiquiti AirOS Hairpin NAT


When setting up a port forward (Destination NAT) on a Ubiquiti AirOs device, you will find that users inside your network will not be able to use the WAN IP to access the internal device. This is because you need to add what is known as a "Hairpin NAT". Read below for instructions on how to do that, and why it is necessary.

Friday 7 August 2015

Skakel Windows 10 se "Update Sharing" af.

08:45 Posted by Jurgens Krause No comments

Windows 10 het 'n nuwe manier om opdaterings te versprei. In effek gebruik dit jou rekenaar as 'n bediener vir ander mense wat die opdatering wil aflaai. Dit beteken dat jou internet bandwydte gebruik word sonder jou toestemming.

Gelukkig kan 'n mens dit afskakel soos hieronder aangedui.

Disabling Windows 10 Update Uploading

In a move that has a lot of users up in arms, Microsoft has changed the way that updates are delivered in Windows 10. The new Windows update system uses a torrent like function of using PCs that have already downloaded an update, to share it back onto the internet. This is fine for users with unmetered internet, but for a lot of users, these uploads churn through their data caps quite fast.

Wednesday 5 August 2015

Ubiquiti AirOS 5.6 Cacti Templates

16:20 Posted by Jurgens Krause , , , , , , , , , 22 comments

After many requests and much procrastination, here are the templates for AirOS 5.6 for Cacti.

You will now be able to graph individual client connection details directly from the AP!

Graphs Available:
Access Point / Client Direct Polling:
  • CPU
  • Combined Link Details
  • Uptime
  • Interface Traffic
  • Air Rate
  • Signal
  • Airmax
  • Air Rate
Connected Client Graphs:
  • Combined Link Details
  • Airmax
  • Traffic
  • Signal
  • Air Rate
AP Only
  • Station Count

Thursday 16 July 2015

Ubiquiti Aircontrol 2 Server Ubuntu Install (Step-by-step)

08:58 Posted by Jurgens Krause , , , , , , , , , 10 comments


The new version of Aircontrol may still be in beta, but it as vast improvement over the original Aircontrol. One of the best features of the software is the fact that it runs natively on linux. Here is a step by step tutorial on getting it running on Ubuntu:

Monday 13 July 2015

Monday 29 June 2015

Wednesday 17 June 2015

Yealink T21P Review

11:55 Posted by Jurgens Krause , , , , , , 2 comments
The Yealink T21P is an entry level IP Phone. It is in the same product class as the Snom 300, but comes in at about 20% cheaper.

The T21 comes in two models, the T21P being the POE version, which is the one I will be looking at. The only difference between the T21 and the T21P is in fact that the T21P supports 802.11af Power over Ethernet.

Thursday 28 May 2015

Top Free Windows Softphones Compared

14:57 Posted by Jurgens Krause , , , , , , , , No comments
Photo by Irita Kirsbluma

Which softphone you use may depend largely on why you want to use a softphone in the first place. For example, if you are looking for an alternative to FOP (Flash Operator Panel) then I would suggest the excellent Dialplate application, but if you are just a normal desktop user looking for a cheap way to make use of your company's existing VOIP infrastructure, then have a look at these.

When comparing features I will only be looking at the features available in the free version, and not the premium one where applicable.

Wednesday 27 May 2015

Mikrotik DHCP Option 43 Tutorial

12:57 Posted by Jurgens Krause , , , , , , , 5 comments

Step by step instructions to get DHCP Option 43 working on Mikrotik RouterOS 6.x

Many consumer devices allow you to pass configuration parameters like auto provisioning servers and such via dhcp. DHCP option 43 is used by Yealink, Ubiquiti and Ruckus as well as many others.

My need was to use it to send the address of the provisioning server to a number of Yealink T23G IP phones to make deployment easier.


Wednesday 13 May 2015

Top Mikrotik Tips


Running Mikrotiks in the field? Here are my top tips for making the most of your Mikrotik Experience:

1. Secure
1.1 - Users and Passwords
1.2 - Access Ports
1.3 - Protect against brute force hacks
1.4 - Anonymize your connection
2. Manual Backups (and why a backup is not a backup)
3. Blocking Sites
5. Remote wake your computer
6. Remote access to your network

Friday 8 May 2015

Asterisk Dialplan Show and Tell 1

14:57 Posted by Jurgens Krause , , , , , , No comments

NEW FEATURE ALERT!!

I hope to make this a regular feature on my blog. If you have an awesome dialplan that you would like to share, please let me know and I will analyze and feature it here!


My first share is the dialplan that I use for clients who need added features beyond basic calling. This includes call diverts as well as voicemail.

Thursday 7 May 2015

Tuesday 31 March 2015

Mikrotik Synchronize Address List

15:11 Posted by Jurgens Krause , , , 2 comments
This is a simple script solution to synchronize small address lists between Mikrotik routers. It is limited by the fact that there is a 4096 byte limit for variables in Mikrotik Scripts. I have maximized the number if entries you can sync by putting only the list name and address in the file

Monday 9 March 2015

Asterisk blind transfer callback

10:30 Posted by Jurgens Krause , , , No comments

One of the problems with Asterisk, is that, when you blind transfer a call to an internal extension, and the remote side never answers, the call does not automatically go back to the caller. The following piece of dial plan logic should replace your normal internal call logic.

Tuesday 24 February 2015

Wednesday 21 January 2015

Mikrotik Netflix selective Routing

16:45 Posted by Jurgens Krause , , , 13 comments

If you live in a country without Netflix, you are forced to use a VPN to get Netflix access. Unfortunately there is no easy way to route Netflix traffic exclusively. The scripts below will help to build an address list of IP's to route through the tunnel. It should work with any VPN provider