AKZN Notes

Archives for My Lazy and Forgetful Mind

Category: Mikrotik

MikroTik PPPoE Bandwidth Management with RADIUS

Step 1: Configure PPPoE Basic PPPoE Setup: Set up your PPPoE server as you normally would. Ensure that you have configured the necessary interfaces and settings. Step 2: RADIUS Configuration Add RADIUS Attributes: In your RADIUS server, add the reply attribute Mikrotik-Address-List. This attribute will automatically add the IP address of the client logging in […]

MikroTik Hotspot Bandwidth Management

Hotspot Configuration Basic Settings: Configure the hotspot settings as usual. RADIUS Configuration (if applicable): In the server profile, enable the "Use RADIUS" option. Create a user profile and specify values in incoming[up]/outgoing-mark[down], such as packet-mark-download. This will dynamically add a packet mark in Mangle. Mikrotik-Group Attribute: If your RADIUS server uses the "Mikrotik-Group" attribute, ensure […]

Configure Two ISP on Mikrotik using VLAN with Openwrt

Why ? I want to load balance on Openwrt Openclash OPENWRT on STB has only one RJ45 port Mikrotik has multiple port, so we can use vlan to route two ISP into Openwrt Mikrotik Setting Based on my current configuration, I use Ether1 as WAN2 and Ether2 as WAN1 Make sure we already setting ip> […]

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

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

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

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

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

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