AKZN Notes

Archives for My Lazy and Forgetful Mind

Archives

VLAN OpenWRT as DHCP Server/client and Mikrotik as DHCP Server/client on a Single Ethernet Port

Why ? I want to use OpenWRT on Orange Pi Zero, but OPiZ only have one ethernet port. So, how i can use that single port as dhcp server (to give internet), and dhcp client (to get internet). Mikrotik Setting Configure DHCP Server and vlan interface Configure MIkrotik DHCP server as usual, for this notes […]

OpenVPN Client to Client Connection Configuration

follow this tutorial https://openvpn.net/community-resources/how-to/#scope dont forget to do step below how to add route (not persistent) on ubuntu example sudo ip route add 10.10.10.0/24 via 192.168.1.254 # Specific route sudo ip route add default via 192.168.1.254 # Default route (gw) how to add persistent route on ubuntu modify the /etc/network/interfaces file. $ sudo nano /etc/network/interfaces […]

Alpine Linux LAMP Installation Notes

Apache2 .htacess : makesure AllowOverride All on directory htdocs on httpd.conf PHP make sure all module installed Session : make sure session.save_path on php.ini is enabled SSL Letsencrypt make sure apache-ssl module installed sudo apk update & sudo apk upgrade & sudo apk add apache2-ssl sudo apk add certbot-apache sudo certbot certonly make site-avalaible conf […]

Mikrotik Cheat Sheet

Cheat Sheet Map Usability Code example Filter Log Link Detail Filter Log log print where message~"the-text-you-want" and (topics~"topic-name-1" or topics~"topics-name-2") PPPOE Setup PPP>Secret Setting secret for client. If you use radius, click tab PPP Auth&Accounting instead, set it to use Radius PPP>Profiles Local Address: use ip address interface local that will be used for PPPoE […]

Freeradius + Daloapi + mikrotik

Daloapi setting install freeradius (with mysql) and daloradius daloradius need php-pear and php-db sudo apt-get install php-common php-gd php-curl php-mail php-mail-mime php-pear php-db sudo pear install db deploy daloapi from git, setting database as same with freeradius setting, make sure daloapi database migration is set. after git deployment .env.example to .env configure db credential to […]

[ubuntu][xrandr] Autodetect Display

cant get to work, use autorandr instead https://github.com/phillipberndt/autorandr config file on ~/.config/autorandr/ just in case some error(like what happened to me), just edit some parameter on those files that make errors, taken from https://unix.stackexchange.com/a/11891 with fix and personal customization I’m using this simple (homemade) script that keeps polling RandR and switches between LVDS1 and VGA1 […]

Install FreeRADIUS & daloRADIUS on Ubuntu 20.04 + MySQL/MariaDB

taken from https://bytexd.com/freeradius-ubuntu/ with a few update to support daloRADIUS with freeradius v3.0. (as is, daloradius only support freeradius v2, and accounting will error) (TBA) add mikrotik radius client (TBA) add tutorial sqlcounter daloradius scheme to freeradius In this tutorial we’ll install FreeRADIUS on a server running Ubuntu 20.04 and configure it to work with […]

Windows Ubuntu Virtual Box Update Hash Sum Missmatch Fix

On installing Ubuntu as guest from Windows Host, if you got an error Update Hash Sum Missmatch Fix, this is a fix for that Based on https://askubuntu.com/a/1242739 Try this before running apt: $ sudo bash # mkdir /etc/gcrypt # echo all >> /etc/gcrypt/hwf.deny Because apt use sha256 method from libgcrypto20, but optimized too much. We […]

How To Secure Apache with Let’s Encrypt on Ubuntu 20.04

source : https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-20-04 Introduction Let’s Encrypt is a Certificate Authority (CA) that facilitates obtaining and installing free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, Certbot, that attempts to automate most (if not all) of the required steps. Currently, the entire process of obtaining and […]

Git deploy to VPS

for the impatients Set up the new bare repo on the server: $ ssh myserver.com Welcome to myserver.com! $ mkdir /var/git/myapp.git && cd /var/git/myapp.git $ git –bare init Initialized empty Git repository in /var/git/myapp.git $ exit Bye! Add the remote repository to your existing local git repo and push: $ cd ~/Sites/myapp $ git remote […]