Enable Melanox Connect X support in OPNsense

Support for Mellanox Connect-X NICs aren't enabled on OPNsense by default.

The following line has to be added to /boot/loader.conf.local.


However this did not work for me and I had to add this from the web interface, System → Settings → Tunables.

· 2021/08/05 18:22 · 2021/08/05 18:26

Install telnet, ftp on MacOS

telnet and ftp have been removed from Mac. While people shouldn't be using insecure versions of these protocols, I use telnet often to diagnose connections issues. The solution to this is to install inetutils.

You can install inetutils using Homebrew or MacPorts, but I prefer compiling from source. It is more straight-forward and does not require installing additional packages.

Download and Extract

First off, dowload your preferred version of inetutils from https://ftp.gnu.org/gnu/inetutils/.

curl https://ftp.gnu.org/gnu/inetutils/inetutils-1.4.0.tar.gz -o inetutils-1.4.0.tar.gz
tar xzvf inetutils-1.4.0.tar.gz

Compile and Install

cd inetutils-1.4.0
sudo make install


inetutils should now be installed!

· 2021/07/05 17:27 · 2021/08/05 18:35

Install Apache, FreeRadius, daloRADIUS, and MariaDB on Ubuntu 20.04

This quick guide assumes you are root or using sudo on a fresh install of Ubuntu Server 20.04.

Install apache2, MariaDB, and PHP

Install Apache

apt install apache2

Install PHP

sudo apt install php libapache2-mod-php php-{gd,common,mail,mail-mime,mysql,pear,db,mbstring,xml,curl}

Install MariaDB

apt install mariadb-server mysql_secure_installation

Install FreeRADIUS w/ MariaDB

Install FreeRADIUS

apt install freeradius freeradius-mysql freeradius-utils systemctl enable –now freeradius

Use MariaDB with FreeRADIUS

Login to MariaDB with the password you just created (Remember to replace password with your own password.

mysql -u root -p

Create database and database user

MariaDB [(none)]> CREATE DATABASE radius; MariaDB [(none)]> GRANT ALL ON radius.* TO radius@localhost IDENTIFIED BY “password”; MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> quit

Import FreeRADIUS schema into MariaDB

mysql -u root -p radius < /etc/freeradius/3.0/mods-config/sql/main/mysql/schema.sql

Link to the SQL module

ln -s /etc/freeradius/3.0/mods-available/sql /etc/freeradius/3.0/mods-enabled/

Edit the FreeRADIUS config file at /etc/freeradius/3.0/mods-enabled/sql

  • Change dialect = “sqlite” to dialect = “mysql”.
  • Comment out driver = “rlm_sql_null” and uncomment driver = “rlm_sql_${dialect}”
  • Comment out the entire tls section. We will not be using TLS here.
  • Uncomment the Connection info: section and fill out the database details using the values you created previously.
  • Uncomment read_clients = yes.

Fix file ownership

chgrp -h freerad /etc/freeradius/3.0/mods-available/sql chown -R freerad:freerad /etc/freeradius/3.0/mods-enabled/sql

Restart FreeRADIUS

systemctl restart freeradius.service

*this is unfinished*

Mount Windows Share On Boot in Ubuntu 20.04

These steps assume you are root or using sudo.

Install cifs-utils

apt install install cifs-utils

Save your credentials in /root

Create /root/.smbcredentials with the following contents …


Change username and password to your username and password.

Add fstab entry to mount on boot

Edit /etc/fstab and add the following line to the end.

// /mnt/clyde cifs vers=3.0,credentials=/root/.smbcredentials should be changed to your host and software should be changed to your share. /mnt/clyde is the location where the remote share is mounted. This folder must already be created.

Make sure networking is started before mounting

systemctl enable systemd-networkd-wait-online


· 2021/05/18 05:18 · 2021/05/18 11:54

Install GNS3 on UNRAID on your local network

GNS3 allows network engineers to model networks. Unlike network simulators, GNS3 uses real device images. The devices run on a hypervisor. Unraid is an easy to use NAS operating system based on Slackware that supports docker images and virtual machines.

Create a VM in Unraid

We will be using Ubuntu 20.04 as the base of GNS3. Install it as you would normally install it. After or before installation, you will need to edit the Unraid XML file of VM to allow nested VMs.

* In Unraid, go to the “VM” tab.

* Click the VM icon and then click on “Edit”.

* On the upper right of the page, click on the switch , to switch to XML view.

* In the cpu mode='host-passthrough' area, add <feature policy='require' name='vmx'/>

Install GNS3

Install GNS3. All commands need to be run as root or sudo. You can install GNS3 with OpenVPN if you plan to access it from the Internet. However, we will only be accessing GNS3 through the local network.

cd /tmp
curl https://raw.githubusercontent.com/GNS3/gns3-server/master/scripts/remote-install.sh > gns3-remote-install.sh
bash gns3-remote-install.sh --with-iou --with-i386-repository

This will take some time to finish.

After the install finishes, edit /etc/gns3/gns3_server.conf to change the default IP the GNS3 listens on. By default, it listens on the IP that OpenVPN would normally be on.

Edit the host line to the IP of your server.

Restart the GNS3 service.

systemctl restart gns3


You should now have a working GNS3 installation. You will now need to add your server as a remote server for your GNS3 installation.

· 2021/04/29 15:23 · 2021/04/29 18:02

Older entries >>