AKZN Notes

Archives for My Lazy and Forgetful Mind

Category: IT Stuff

VLAN Setting for Totolink N300RH

Tested on Firmware 3.2.4 Internet source to WAN, dont forget to enable web access from wan first Menu Network > IPTV, enable to get wireless vlan to be working, need at least 1 ethernet set with same vid altough LAN have DHCP, I cant get internet if I dont config secondary VLAN on LAN interface […]

Mikrotik ICMP route to VPN

icmp trhu VPN /ip firewall mangle add chain=prerouting action=mark-routing new-routing-mark=viaServ1 passthrough=yes protocol=icmp src-address=10.50.0.0/22 log=no log-prefix="" /ip route add gateway=serv1whp routing-mark=viaServ1

Using Github Workflow to Auto Deploy to VPS

original tutorial https://viandwi24.medium.com/github-actions-sederhana-untuk-testing-dan-deploy-ke-server-vps-a43976cd6f46#5752 make new linux user with limited access/no sudo edit the yml workflow name: CI-Deploy-serv3 on: push: branches: [ master ] workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: – uses: actions/checkout@v2 with: fetch-depth: '0' ref: 'master' – name: Deploy to Serv 3 Dwbz uses: appleboy/ssh-action@master with: host: ${{ secrets.HOST_GITHUBCI_SERV3DWBZ }} username: ${{ secrets.USERNAME_GITHUBCI_SERV3DWBZ }} […]

MIKROTIK STATIC ROUTING GAMES SCRIPT

Perfect to be used with Load Balance script generated from https://buananetpbun.github.io/static-routing-games.html For some reason, on ROS 7.xx, IF you use it with Load Balance, mangle rule here need to be placed below said LB rule. # =================================================== # Static Routing Games Script Generator By BuanaNETPBun.Github.io # Date/Time: 6/29/2022, 9:36:25 AM # Created By: BuanaNETPBun.Github.io – […]

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 […]