Skip to content

Instantly share code, notes, and snippets.

View nasirhafeez's full-sized avatar

Nasir Hafeez nasirhafeez

View GitHub Profile
@nasirhafeez
nasirhafeez / openvpn-server-on-mikrotik-on-docker.md
Created April 13, 2025 05:06
OpenVPN Server for Mikrotik on Docker

OpenVPN Server for Mikrotik on Docker

Introduction

The goal of this project is to configure a Dockerized OpenVPN server instance in Ubuntu 18 so that Mikrotik OpenVPN clients can connect to it.

There are a few limitations in Mikrotik’s implementation of OpenVPN client that we need to keep in mind:

@nasirhafeez
nasirhafeez / coova-chilli-youtube.md
Created March 25, 2025 09:27
Coova Chilli Youtube Companion

Coova Chilli Commands

Installation

Recommended OpenWRT firmware version: OpenWRT 19. Newer versions do not have iptables installed by default so Coova Chilli will not work out of the box

opkg update
opkg install coova-chilli nano
@nasirhafeez
nasirhafeez / freeradius-youtube.md
Created March 25, 2025 09:21
FreeRADIUS Youtube Companion

FreeRADIUS Setup

Install FreeRADIUS:

apt-get install freeradius freeradius-mysql freeradius-utils

Allow all NAS clients to connect to it:

@nasirhafeez
nasirhafeez / opennds-guide-openwrt-youtube.md
Created July 20, 2024 11:27
OpenNDS Guide for OpenWRT - Youtube Companion

OpenNDS Guide for OpenWRT: Youtube Companion

This setup has been tested successfully on GL.iNet GL-MT300N-V2 device with OpenWRT v22.

Firewall Setup

By default OpenWRT firewall does not allow web or SSH access on WAN IP. As a captive portal blocks all traffic on LAN until user is authenticated so when we initially enable captive portal on OpenWRT we lose access to the router from LAN side. To manage our OpenWRT we should therefore open access from WAN side.

Access your OpenWRT router via Luci interface. Go to Network => Firewall => Traffic Rules and add a new rule for opening port 80 (HTTP):

@nasirhafeez
nasirhafeez / tp-link-omada-lets-encrypt-ubuntu.md
Created March 12, 2023 09:26
TP Link Omada Let's Encrypt Certificate on Ubuntu 20
@nasirhafeez
nasirhafeez / lamp-server-setup-ubuntu-20.md
Last active March 12, 2025 07:15
LAMP Server Setup on Ubuntu 20
@nasirhafeez
nasirhafeez / freeradius-advanced-use-cases.md
Last active March 30, 2025 16:11
FreeRADIUS Advanced Use Cases