Mikrotik Voltage Alarm/Beeper

I recently needed to make my routerboard generate an audible alarm based on voltage thresholds on the 12v battery wired directly to the RB2011. This script was a modification of something i found when perusing the Mikrotik forums.Change lowvoltage and highvoltage to...

ZESA Tarrif Calculator

Recently saw an article in the herald about the new tiered tarrif structure for Kwh/units. Here is a calculator to help you estimate your monthly budget with the new structure. (Distributed under GPLv3 - feel free to do what you like with it)...

Docker | Asterisk 16

While working on another project, (Callcenter suite) - i built a relatively lightweight Asterisk 16 image which was being used as the base image for a series of ARI tests. I decided to release this to the open-source community, to try and motivate more people to start...

Puppet & Chocolatey – Install GDrive Stream

Introduction Experimenting with Puppet & Chocolatey on Windows. Little snippet to install Google Drive Stream.       class windows::google_drive_stream { Package { provider => 'chocolatey' } package { 'google-drive-file-stream': ensure =>...

Postfix SMTP Sender Routing

Recently, I had need of setting up a postfix “smtp router” to distribute mail from various users among a cluster of outbound relays (on unique exit IP’s, with difference QoS policies applied) Part of the functionality that was desired was the ability to route...

Perl Get Active Queue Size (NetXMS/PRTG Use case)

The following Perl script gets the size of the Postfix Active queue and outputs it.(Used for queue monitoring on our NMS via SSH sensors, but might be useful in your environment) #!/usr/bin/env perluse strict;use warnings;use Symbol;sub count {my ($dir) = @_;my $dh =...

Zimbra SASL Errors

If you’re observing errors on your Zimbra servers’ mail-log similar to the one below, and your users are reporting password prompts on ‘sending’ e-mails. Nov 24 17:12:07 areto postfix/smtpd[5528]: warning: SASL authentication failure: cannot connect to saslauthd...

Proxmox – Remove local LVM

I’m  a big Proxmox fan, having deployed more than 20 systems both at customers and on my home lab this year without drama. However, the Proxmox LVM structure bugs the heck out of me. I prefer to utilize a single LVM Volume due to some weird glitches with LXC images...

Fortinet/Cisco IPSec VPN – Asterisk Peer Unreachable

Recently, i had to troubleshoot an Asterisk to Asterisk trunk which was running across a site to site IPSec VPN. (Fortinet to Cisco) After running tcpdump “port 5060 and proto UDP” on either end, I discovered traffic from the Cisco end was not reaching the PBX behind...

[Snippet] FreePBX – Strip Incoming Country Code

This short & simple dial-plan removes the 3 digit country code from incoming calls and then pushes it to our FPBX IVR. nano /etc/asterisk/extensions_custom.conf After opening the above ^, modify and paste the below into the bottom of the file.Modify your SIP trunk...

FreePBX – Yealink Phonebook generator.

After deploying a few PBX’s, you get bored of manually generating the required XML for remote phonebooks on Yealink Handsets.Here’s the first version of the phonebook.xml creation script. (Works on FPBX without any hitches) Observe the notes in the code please. If...

Sophos XG – Irremovable Interfaces!

Occasionally, I’ve found interfaces on the Sophos XG firewall that won’t or can’t be removed. (Sometimes the name shows blank, with nothing in it) DISCLAIMER – THE STEPS BELOW WILL LIKELY VOID YOUR WARRANTY. USE AT YOUR OWN DISCRETION. #1 – SSH into the appliance with...

Sophos – Captive Portal Excess Traffic Over WAN

I have noticed that Sophos 16 seems to have a problem with the way it’s captive portal works. If enabled (firewall policy set to drop), it seems to generate excessive amounts of traffic over my links to the remote branches. Screenshot below shows the traffic when...

Snippet – Nginx Wildcard Subdomain

[Snippet] Nginx Wildcard Subdomain - Unique subfolders This snippet works with Letsencrypt Wildcard certificates! Specify -d *.domain.com to install the certificate when using certbot.     Insert into server block. Change domain.com to correct domain....

Print Friendly, PDF & Email

Subscribe To My Weekly Newsletter

Join my mailing list to receive the latest updates on security concerns, software utilities & scripting.

Emails will be once a week, no spam!

You have Successfully Subscribed!