Skip to content

Instantly share code, notes, and snippets.

View nasirhafeez's full-sized avatar

Nasir Hafeez nasirhafeez

View GitHub Profile

FreeRADIUS on Ubuntu 18

Update packages

apt update && apt -y upgrade

MySQL installation

@nasirhafeez
nasirhafeez / github-ssh-puttygen.md
Created January 23, 2021 07:06
Github-SSH-Puttygen

Setup SSH Keys for GitHub Using PuttyGen

Open Puttygen and generate a keypair with the default settings.

Copy the generated public key from Puttygen and save to Github public keys.

For private key, go to Conversionns => Export OpenSSH key and save private key in OpenSSH format.

In the Linux machine on which you want to use Git the following settings will be required:

@nasirhafeez
nasirhafeez / pfsense-notes.md
Created December 25, 2020 05:11
pfSense Notes

pfSense Notes

Install nano

pkg update
pkg install nano

SquidGuard

@nasirhafeez
nasirhafeez / iptables-and-conntrack-cheatsheet.md
Created December 17, 2020 05:10
iptables and conntrack cheatsheet

iptables and conntrack cheatsheet

Saving iptables rules (using iptables-persistent)

apt-get install iptables-persistent
netfilter-persistent save

Listing and Deleting Rules

@nasirhafeez
nasirhafeez / edge-router-scripting.md
Last active November 30, 2020 05:59
Edge Router Scripting

Edge Router Scripting

Edge Router Scripting Guide

Note: Use sudo su to shift to Linux command line from Edge Router operational mode.

Download Linux packages and tools on Edge Router

configure
@nasirhafeez
nasirhafeez / journalctl-commands.md
Last active August 3, 2021 09:57
Journalctl Commands

Journalctl Commands

Following Logs

journalctl -f

Displaying Recent Logs

@nasirhafeez
nasirhafeez / git-commands.md
Last active January 16, 2024 06:35
Git Commands
@nasirhafeez
nasirhafeez / docker-commands.md
Last active August 3, 2021 09:57
Docker Commands

Docker Commands

Installation

wget -qO- https://get.docker.com/ | sh

Commands

@nasirhafeez
nasirhafeez / unifi-controller-installation-and-network-setup.md
Last active August 3, 2021 09:58
Unifi Controller Installation and Network Setup

Unifi Controller Installation and Network Setup

Installation

Use Glenn R's installation scripts available here.

UFW Rules

ufw allow 3478/udp
ufw allow 5514/tcp
@nasirhafeez
nasirhafeez / openwrt-tp-link-1043nd-debricking-guide.md
Last active August 3, 2021 09:59
OpenWRT TP-Link 1043ND Debricking Guide