Skip to content
Topic

Firewall

Filter rules, raw, address list, port knocking, service protection: all dojo articles on this topic.

Image generated locally with ComfyUI from randomly selected elements. How the images are created

Illustrazione per Bandwidth test su MikroTik: acceso, spento, e cosa vede chi scansiona
Dojo

Bandwidth test on MikroTik: enabled, disabled, and what scanners see

The MikroTik bandwidth server is enabled by default and listens on port 2000. We open it in the lab with the sniffer: what scanners see, what changes when authentication is enabled or disabled, what actually passes over the authentication channel, and how to disable it properly.

12 min read
Illustrazione per Amplificazione DNS: come un router aperto diventa un megafono (e come chiuderlo)Dojo

DNS amplification: how an open resolver becomes a megaphone (and how to shut it)

DNS amplification turns an open resolver, your router included, into a megaphone to hit others: small query, huge reply, forged sender. We see it live in the lab (21 bytes becoming 1017), look at what really knocks on the Dojo's WAN, and close the hole rule by rule.

Illustrazione per Safe Mode di MikroTik: come funziona la rete di sicurezza di RouterOSKnowledge base
Knowledge base · Safe Mode

MikroTik Safe Mode: how RouterOS’s safety net works

Safe Mode is RouterOS's safety net: while it's on, the router notes down every change and, if the session that took it drops, it undoes them on its own. You turn it on with Ctrl+X (or F4) in the terminal and with the Safe Mode button in WinBox. It holds at most 100 actions and doesn't cover the commands that reboot the router.

Illustrazione per Il matcher psd di MikroTik: come RouterOS riconosce le scansioni di porteKnowledge base
Knowledge base · Port scan detection

MikroTik’s psd matcher: how RouterOS spots port scans

the RouterOS firewall's psd matcher recognizes port scans: it adds a weight for each different port the same address touches in quick succession, and when the total reaches the threshold the rule fires. Usually it puts the scanner in an address list, and another rule drops it. It goes below the rules that accept the good traffic, and it doesn't see slow scans.

Illustrazione per Firewall filter MikroTik: chain input, forward, output e ordine delle regoleKnowledge base
Knowledge base · Firewall filter

MikroTik firewall filter: input, forward, output chains and rule order

The RouterOS firewall filter sorts every packet into one of three chains: input (to the router), forward (through the router), output (from the router). In each chain the rules are read top to bottom and the first one that matches with an action like accept or drop ends the game; if none matches, the packet passes. That's why a new rule always goes above the final drop, never below.

Illustrazione per Address list del firewall MikroTik: come funzionano in RouterOS 7Knowledge base
Knowledge base · Address list

MikroTik firewall address lists: how they work in RouterOS

An address list is a list of addresses with a name, which firewall rules use in place of an address written by hand. You write the entries yourself (static) or the firewall adds them as traffic goes by (dynamic, usually with an expiry). On this mechanism you build blacklists, port knocking, management allowlists, and domain filters.

Illustrazione per Interface list MikroTik: come funzionano e perché il firewall le preferisceKnowledge base
Knowledge base · Interface list

MikroTik interface lists: how they work and why the firewall likes them

An interface list is a group of interfaces with a name, for example WAN or LAN. Firewall rules, neighbor discovery, and the MAC server look at the list instead of the single port: when you add a PPPoE line, an LTE one, or a second WAN, you put it in the list and the rules apply to it right away.

Illustrazione per Bloccare DNS over HTTPS e DNS over TLS con MikroTikDojo

Block DNS over HTTPS and DNS over TLS with MikroTik

Encrypted DNS bypasses the router's filter: how to close DoT and DoH on RouterOS 7 with port 853, an address list of names, the tls-host matcher and Firefox's canary domain, all tested in the lab.

Illustrazione del corso MTCNA: In a desert canyon, a giant moth teacher instructs several kittens in space suits. The kittens sit on jagged rocks, connecting tiny plastic routers with long, colorful cables. OneNews
From the course · MTCNA

MTCNA Course in Lucca, September 2026: Two Days Between DHCP and Resolved Doubts

Closing of the September MTCNA edition: a calm assessment of labs, unexpected questions, and the value of hands-on practice on RouterBOARDs.

Illustrazione per Port knocking su MikroTik: WinBox si apre solo a chi bussaDojo

Port knocking on MikroTik: WinBox opens only to those who knock

The router's management port stays closed to everyone and opens for one hour only to whoever touches three ports in the right sequence. The RouterOS 7 firewall rules, three ways to knock from Linux (knock, nc and pure bash), and how much you can trust it.

Illustrazione per Hardening di base di un router MikroTik con RouterOS 7Dojo
Howto · Security

Basic hardening of a MikroTik router with RouterOS 7

A MikroTik just reset with no-defaults=yes has no firewall: perfect on the bench for learning, but never put it on a network like that. Before installing it you need seven hardening steps: update RouterOS, replace the admin user, turn off the services you don't use and limit the others to the authorized addresses, close the service ports on the external interfaces, a minimal firewall that blocks everything coming from the internet, and a VPN for remote management.

Illustrazione per CVE-2023-47310Security
CVE-2023-47310

Bypass firewall IPv6 UDP in RouterOS 7

CVE-2023-47310 is a default configuration vulnerability in MikroTik RouterOS 7 that allows IPv6 UDP traceroute packets to bypass the firewall. It affects versions prior to 7.14. The mitigation is to update to RouterOS 7.14 or later.

Medium · 6.5
Illustrazione per CVE-2025-6443Security
CVE-2025-6443

VXLAN Vulnerability in RouterOS: CVE-2025-6443

CVE-2025-6443 is an improper access control vulnerability (CWE-284) in the VXLAN service of MikroTik RouterOS that allows a remote attacker, without authentication, to bypass access restrictions and reach internal network resources. Versions 7.15.3 and 7.16.2 are confirmed vulnerable by CVE.org, while NVD indicates all versions prior to 7.20; the exact fixed version has not yet been announced. Those using VXLAN on untrusted networks must update the firmware as soon as it becomes available and verify the service configuration.