AKZN Notes

Archives for My Lazy and Forgetful Mind

Archives

Nmap Install & Usage

if you want to scan your network, you can use Nmap Nmap is a powerful network exploration and security auditing tool that can be used to discover hosts and services on a computer network. Here’s a tutorial on how to install and use Nmap on Linux: Installation: Open the terminal on your Linux system. # […]

Git Archieve only Changed File and folder on current commit

tl;dr use syntax below git diff-tree -r –no-commit-id –name-only –diff-filter=ACMRT $commit_id | tar -czf file.tgz -T – $commit_id = commit sha id you want to archieve to know commit id git log To exit git log command press q key. Git Archieve only Changed File and folder on current commit To create an archive of […]

Limit OpenVPN Client Bandwidth

How to Limit Client Bandwidth in OpenVPN OpenVPN is a popular open-source VPN protocol that allows users to connect securely to a remote network. While OpenVPN is designed to provide fast and reliable connectivity, it can be useful to limit client bandwidth to prevent congestion and ensure fair usage for all users. There are two […]

Archieving git master branch

first make sure you’re checkout to master branch git checkout master The correct syntax for zipping the master branch in Git using the git archive command with the output filename specified is: git archive –format=zip –output=[filename].zip HEAD This command creates a new zip file named master.zip containing the contents of the master branch. You can […]

How to Set up ZeroTier for Port Forwarding in OpenWrt

ZeroTier is a virtual network software that allows users to create a private network with ease. One of its features is the ability to perform port forwarding, which is crucial in accessing devices remotely. In this article, we’ll guide you on how to set up ZeroTier for port forwarding in OpenWrt. Step 1: Connect ZeroTier […]

How to backup and restore all mysql database from vps

how to backup all database To backup all MySQL data, you can follow these steps: Connect to your VPS: Log in to your VPS using SSH. Navigate to the MySQL data directory: MySQL data files are typically located in the /var/lib/mysql directory. Navigate to this directory by running the following command: cd /var/lib/mysql Create a […]

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