Guides & How-To’s
How to configure Junos Olive on GNS3 using Qemu
This is a quick guide to get you started learning Junos OS using GNS3. To get the best performance out of GNS3 I recommend connecting to a remote GNS3 server. You’ll be able to add many more devices and it will be a much more smoother experience simulating devices. I have found when running devices locally they can be extremely laggy when having a number of devices running simultaneously. Step1. Upload your Junos image to…
How to create a basic Web site on Ubuntu using Apache2
This is a basic guide to get your started with setting up a web page. 1.Install Apache2 Test on port 80 or 443 http://your_server_iP or http://your_domain_name Step2. Install the Ajenti Control Panel You will also create the SQL Database in the process. 2. Install Freeradius packages 3. Launch mysql 4.Create database and grant access...
How to transfer files to and from your Linux server using SFTP on Windows
1.Download and install Filezilla to your local machine https://filezilla-project.org 2. Connect to your server using SFTP (please note you will need a Public Address, Port Forwarding or Dialup VPN for access) SFTP uses port 22 for connection 3. Drag and drop your files from your local PC to destination file location on your Cloud Server. Please note that you will need to make sure that you give file permission for the successful transfer...
How to configure a Plex Media server on Ubuntu
How to configure a Plex Media server on Ubuntu 1.Enable the Plex Media Server repository 2. Download Plex https://www.plex.tv/media-server-downloads/ 3. Install Plex 4. Configure a SSH tunnel You will need create a SSH tunnel on your local...
How to configure Network Monitoring using Observium (Ubuntu)
To get you up and running with a Virtual Server please check out the following post: Deploying a Virtual Machine on Piggybank’s cloud platform – The ultimate guide 1.Make sure PHP is up to date 2.Install Prerequisites ...
How to connect using OpenVPN (Windows 10) to OpnSense firewall.
This is a detailed guide on how to connect to your OpnSense Firewall using OpenVPN for remote access. Piggybank Cloud lets you launch an OpnSense firewall with a click of a button. You can connect your virtual machines to your firewall all with ease from your Piggybank customer portal. There is a known issue with the latest OpenVPN version and Windows 10 with the TAP adapter not working. This guide incorporates the fix for this...
How to create a Site to Site IPSec VPN from an OpnSense to a Fortigate behind a NAT Router.
Hi all, This is a step by step guide to create a site to site VPN from a Fortigate which sits behind a NAT router to an OpnSense Firewall. 1. Create a firewall rule to allow IPSEC traffic to the WAN interface or interface to where the VPN will terminate. This is configured under the Firewall / Rules 2. Add new phase 1 entry Configured under VPN /IPSEC / Tunnel Settings. Please note the phase...
How to configure 2FA authentication using Google authenticator on Debian 9 CLI.
This is a quick reference guide on how to configure 2FA authentication using Google authenticator on Debian 9. WARNING: Please be extremely cautious when configuring this as you could potentially lock yourself out of your system if mis-configured. In this guide I will create a separate user for 2FA authentication and leave root as password authentication only. 1. Create a new user 2. Edit /etc/ssh/sshd_config Remove root from 2FA Authentication is as follows: Thank you for reading and please feel free to leave any feedback.
How to configure 2FA authentication using Google authenticator on Centos 7 CLI.
This is a quick reference guide on how to configure 2FA authentication using Google authenticator on Centos 7. WARNING: Please be extremely cautious when configuring this as you could potentially lock yourself out of your system if mis-configured. In this guide I will create a separate user for 2FA authentication and leave root as password authentication only. 1. Create a new user 2. Download OpenVPN Client configuration and export the file to your OpenVPN client. You will see once the script has been run you will see that there is a link for the OpenVPN Client configuration. Paste this into your browser...
How to list users on Ubuntu CLI
This is a quick reference guide on how to list users on Ubuntu. List just usernames Users located in /etc/passwd Thank you for reading and please feel free to leave any feedback.
How to configure ssh key authentication for root Linux (Ubuntu | Debian | Centos) CLI.
This is a quick reference guide on how to configure ssh key authentication for root on Linux Based Operating Systems. 1. Generate a public and private key pair using puTTYgen Please see examples of the public and private key – you can use these to test. Public Key Private key TestDownload 2. Paste the public key string into /.ssh/authorized keys ...
How to create a Site to Site IPSec VPN from a pfSense to a Fortigate behind a NAT Router.
This is a detailed guide on how to create a Site to Site IPSec VPN from a pfSense to a Fortigate behind a NAT Router. 1. Fortigate Configuration 1.1 Configure the Fortigate Phase 1 1.2 Configure the Fortigate Phase 2 1.2 Generate Certificate Signing Request or CSR You will need...
How to add a static route on Ubuntu 18.04 CLI
This is a quick reference guide on how to add a persistent static route on on Ubuntu 18.04 1. Edit yaml file in /etc/netplan At this point you should already have a netplan yaml file created either for dhcp or a statically assigned interface IP address. 2. Define routes in yaml file. IMPORTANT: It is extremely important to place all the configuration in...
How to debug an IPSEC VPN on a Fortigate CLI
This is a quick reference guide on how to debug an IPSEC VPN on a Fortigate. 1. Check IPSEC traffic Run a packet sniffer to make sure that traffic is hitting the Fortigate. There are various combinations you can run depending on how many VPN’s you have configured. ...
How to check disk space on linux (Ubuntu | Debian | Centos) CLI (Detailed)
This is a detailed guide on how to check free disk space on Linux Based Operating Systems. This command will show you the actual size of the disk / HDD or Virtual Disk / Bunch of disks you have on your Linux machine, the other commands are mainly for checking the usage of the files on the filesystem 2. Edit /etc/ssh/sshd_config 2. iPerf3 Server Once installed you will need one end point to listen for iPerf traffic. By default this will listen on port 5201. 2.1 iperf3 -s This command will...
How to connect to IPv6 from IPv4 using a Fortigate and a tunnel broker.
This is a detailed guide on how to connect to IPv6 from IPv4 using a Fortigate and a tunnel broker. 1. Sign up to a tunnel broker In this example I have used https://www.tunnelbroker.net/ Simply click on create regular tunnel and follow the instructions. You will be asked for your IPv4 public IP address. If you click Example Configurations this will give you the tunnel configuration for your Fortigate. IMPORTANT: If the firewall...
How to send logs to a syslog server on Observium using a Ubuntu Server as the syslog client
This is a detailed guide on how to send logs to a syslog server on Observium using a Ubuntu as the syslog client. 1.Configure rsyslogd for Observium 1.1 Check version of rsyslogd Make sure you have rsyslog installed and the that it is current. This guide is for Rsyslog version 8 and later. 1.2 Enable remote logging Remove the comment (remove #) from the following lines: module(load=”imtcp”) and input(type=”imtcp” port=”514″)...
How to monitor an Ubuntu Server using SNMPv2 and Observium.
This is a detailed guide on how monitor an Ubuntu Server using SNMPv2 and Observium. 1. Install SNMP 1.1 Install snmp and snmp-mibs-downloader 1.2 Install snmpd 2. Edit /etc/snmp/snmp.conf Comment out the mibs: line as per below 1.2 Enable remote logging Remove the comment (remove #) from the following lines: module(load=”imtcp”) and input(type=”imtcp” port=”514″)...
How to create a FTP Linux server where users have access only to specific directories using VSFTPD Linux CLI
This is a detailed reference guide on how to create a FTP Linux server where users have access only to specific directories using VSFTPD. 1. Install vsftpd, libpam-pwdfile and apache2 Omit the apache2 part if this is already installed. 2. Edit vsftpd.conf 2.1 Make a backup of the file vsftpd.conf 2.2 Edit the file /etc/vsftpd.conf 2.3...
How to secure your FTP server using FTPS and VSFTPD on Linux Cli
This is a detailed guide on how to secure your FTP server using FTPS and VSFTPD on Linux Based Operating Systems. 1.Generate your certificate 1.1 Generate private RSA key You can change the encryption by replacing -aes256 to say -aes128 for example. The private key is used to generate the certificate. 1.2 Generate Certificate Signing Request or CSR 2. tcpdump -i This will capture all traffic on the specified interface. 2. netstat -rn The ls -a command includes all files including hidden files. ...
How to show the contents of a file Linux (Ubuntu | Debian | Centos) CLI
This is a quick reference guide on how to show the contents of a file Linux Based Operating Systems. cat Thank you for reading and please feel free to leave any feedback.
How to check hardware info Linux (Ubuntu | Debian | Centos) CLI
This is a quick reference guide on how to check hardware info on Linux Based Operating Systems. hwinfo lsb_release -a hostnamectl Delete the users home directory and mail spool. Delete all user files. Thank you...
How to create a new user Linux (Ubuntu | Debian | Centos) CLI
This is a quick reference guide on how to create a new user on Linux Based Operating Systems. Create a new user. Set the new user a password. Change to the new user account. Thank you for reading and please feel free to leave...
How to remove a directory on Linux (Ubuntu | Debian | Centos) CLI
This is a quick reference guide on how to remove a directory on Linux Based Operating Systems. To remove an empty directory. To remove multiple empty sub-directories using -p option. To remove a directory containing files or directories using -R option. To create multiple sub-directories using -p option. Thank you for reading and please feel free to leave any feedback.