AKZN Notes

Archives for My Lazy and Forgetful Mind

Archives

Mikrotik Load balance PCC + Hotspot

Script generated from https://buananetpbun.github.io/pcc.html ROS 7.X ############################################################# # LOAD BALANCING (LB) PCC SCRIPT GENERATOR # Date/Time: 6/27/2022, 1:19:22 PM # Created By: BuanaNETPBun.Github.io – fb.me/buananet.pbun # Load Balancing Method -> PCC (Per Connection Clasifier) ############################################################# /ip firewall address-list add address=192.168.0.0/16 list=LOCAL-IP comment="LB By BNT" add address=172.16.0.0/12 list=LOCAL-IP comment="LB By BNT" add address=10.0.0.0/8 list=LOCAL-IP comment="LB By […]

Docker Wireguard + Mikrotik

todo : make ip address obtained from docker-compose > hostnet static/persistent add clearer documentation about docker-compose > hostnet Installation Prequisities MIkrotik RouterOS v.7.1 and above Docker Wireguard Setup Make sure Docker is installed Using docker-compose # docker-compose.yml version: ‘3’ services: wireguard: image: lscr.io/linuxserver/wireguard container_name: wireguard cap_add: – NET_ADMIN – SYS_MODULE environment: – PUID=1000 – PGID=1000 […]

OpenVPN for Docker

This notes are taken from https://raw.githubusercontent.com/kylemanna/docker-openvpn/master/README.md. Edited to added some notes to make it easier for me to read and install on the near future OpenVPN server in a Docker container complete with an EasyRSA PKI CA. Extensively tested on Digital Ocean $5/mo node and has a corresponding Digital Ocean Community Tutorial. Installation Upstream Links […]

Codeigniter 3 with php 8.1

How to update your ci 3 version to 3.1.13 change config $config['sess_save_path'] = sys_get_temp_dir() add #[\ReturnTypeWillChange] before the open, read, write, close, destroy and gc functions in /system/libraries/Session/drivers/Session_files_driver.php example : #[\ReturnTypeWillChange] public function open($save_path, $name) { … update system/libraries/pagination.php line 526 from if ( ! ctype_digit($this->cur_page) OR ($this->use_page_numbers && (int) $this->cur_page === 0)) to if […]

Multiple PHP Version on XAMPP and Windows in a Single Installation

Option With a single xampp installation, you have 2 options: Run an older PHP version for only the directory of your old project: This will serve the purpose most of the time. You may have one or two old projects that you intend to run with an older PHP version. Just configure xampp to run […]

WordPress Installation and Migration

Force HTTPS Using htaccess on WordPress Step 1: Update your general settings. Log into your WordPress dashboard ang go to Settings > General. Scroll down to the WordPress and Site URL Address field and replace the HTTP with HTTPS. Click the Save Changes button at the bottom of the page. You’ll be automatically logged out […]

Using Rclone to sync file to Google Drive on Ubuntu

As of now, Google has yet to release an official backup/sync client for Linux. The following write-up describes an approach for using an open source package, rclone, to automate backups from Linux to Google drive. Download/install rclone: To download/install rclone: $ cd $HOME $ curl https://rclone.org/install.sh | sudo bash … rclone v1.53.1 has successfully installed. […]

Mikrotik Auto Update Nice

Make a scheduler to run this script below #google :if ([:len [/file find name=google_ip.rsc]] > 0) do={ /file remove google_ip.rsc }; /tool fetch "https://raw.githubusercontent.com/im-sm/Mikrotik-IP-List/main/GOOGLE/mikrotik_terminal.rsc" dst-path=/google_ip.rsc mode=https; /ip firewall address-list remove [find list=GOOGLE] /import google_ip.rsc; /ip firewall address-list remove [find comment=GOOGLE_im_sm] /ip firewall address-list set [find list=GOOGLE] list=IP_LB_LIST comment=GOOGLE_im_sm #facebook agregate :if ([:len [/file find name=facebook_ip.rsc]] […]

OpenWRT Resize Squashfs Partition to Utilize all SD Card Space

Based on Openwer document here Expanding the filesystem To use the whole available space of your sdcard, you probably have to resize your partition. squashfs image To resize the squashfs-image one has to know the offset of the hidden f2fs filesystem. In this example, the squashfs partiton is /dev/sde2. You can find the offset, by […]

OpenWRT USB Connection to MiFi (Mobile WiFi) Huawei e5573

Connecting MiFi e5573 (or any other mifi) to OpenWRT are similiar with connectiong Openwrt to Smartphone USB Thetering Check / Install Driver OpenWRT USB Thetering Docs Provide USB tethering support for Android 8/10 with RNDIS: opkg update opkg install kmod-usb-net-rndis Extra steps depending on USB type and drivers for your router: opkg update opkg install […]