Skip to main content

MikroTik RouterOS .rsc Config Security Auditor

Automated security audit for MikroTik RouterOS v7 .rsc export files, detecting misconfigurations, exposed services, and generating fix scripts.

Input Parameters

Try Example:
165535
165535

Calculation Results

RouterOS Security Score (0–100)
0
Security Status Grade
D/F (Kritis — Sangat Rentan Ditembus Botnet)
Critical / High Severity Findings Count
3
Total Check Parameters Evaluated
6
Recommended Custom Winbox Port
58,291
Recommended Custom SSH Port
2,222
Want to compare 2 design options side-by-side (e.g., Scenario A vs Scenario B)?
⚡ Enterprise Network Infrastructure Standard
Managed L2+/L3 Gigabit Switch (802.1Q VLAN & RSTP) + Cat6/FO Uplink
RFC 1918 / RFC 4632 Compliant Addressing

Isolate management, server, user, and IoT/CCTV traffic into dedicated 802.1Q VLANs.

Security Audit Findings & Vulnerability Matrix
Evaluation ParameterSeverity LevelVulnerability StatusRemediation Recommendation
Open DNS Resolver (UDP/TCP 53 di WAN)KRITIS (-30)RENTAN DDoS AmplificationWajib blokir port 53 dari interface WAN pada /ip firewall filter chain=input.
Layanan Plaintext (Telnet, FTP, HTTP, API)TINGGI (-20)TERBUKANonaktifkan service telnet, ftp, www, api, dan api-ssl jika tidak dipakai.
Port Manajemen Standar (Winbox: 8291, SSH: 22)SEDANG (-15)Mudah Dipindai BotUbah port Winbox/SSH ke port non-standar dan batasi properti address= ke subnet LAN/VPN.
Akun Default 'admin' Masih AktifTINGGI (-15)BERISIKO BRUTE-FORCEBuat user grup full baru dengan nama unik dan nonaktifkan user 'admin'.
Bandwidth Test Server (BTest)SEDANG (-10)AktifMatikan /tool bandwidth-server set enabled=no agar CPU router tidak di-exhaust dari luar.
MNDP / Neighbor Discovery & MAC ServerSEDANG (-10)Broadcast ke Semua InterfaceBatasi discovery-interface-list dan mac-server hanya ke interface-list=LAN.
MikroTik RouterOS v7 Terminal Script
# MikroTik RouterOS v7 Security Hardening Script
/interface list
add name=WAN comment="InfraCalc Hardened WAN List"
add name=LAN comment="InfraCalc Hardened LAN List"
/interface list member
add list=WAN interface=ether1-wan

# 1. Disable insecure legacy services & restrict Winbox/SSH to LAN
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set api disabled=yes
set api-ssl disabled=yes
set winbox port=58291 address=192.168.88.0/24
set ssh port=2222 address=192.168.88.0/24
/ip ssh set strong-crypto=yes

# 2. Disable Bandwidth Server, SOCKS, Proxy & UPNP
/tool bandwidth-server set enabled=no
/ip socks set enabled=no
/ip proxy set enabled=no
/ip upnp set enabled=no

# 3. Restrict Neighbor Discovery & MAC-Winbox to LAN only
/ip neighbor discovery-settings set discover-interface-list=LAN
/tool mac-server set allowed-interface-list=LAN
/tool mac-server mac-winbox set allowed-interface-list=LAN

# 4. Protect Input Chain & Block WAN DNS Amplification
/ip firewall filter
add chain=input connection-state=established,related,untracked action=accept comment="Accept Established/Related"
add chain=input connection-state=invalid action=drop comment="Drop Invalid"
add chain=input in-interface-list=WAN protocol=udp dst-port=53 action=drop comment="Block WAN DNS UDP"
add chain=input in-interface-list=WAN protocol=tcp dst-port=53 action=drop comment="Block WAN DNS TCP"
add chain=input in-interface-list=WAN action=drop comment="Drop All Other Unsolicited WAN Input"
Share to WhatsApp

How to Use This Tool

  1. Specify your WAN interface name, authorized management LAN subnet, Winbox/SSH ports, and current status of system services in the input form.
  2. Review the computed security score (0–100), overall security grade, and detailed vulnerability findings matrix categorized by severity level.
  3. Copy the automatically generated RouterOS v7 Hardening Remediation Script and apply it directly into your router's Winbox Terminal or SSH command line.

Worked Example: Factory Default MikroTik Configuration Audit (High Risk)

Computed example: A router retaining default Winbox (8291), SSH (22), open recursive WAN DNS, and legacy Telnet/FTP services scores 25/100 (Grade D/F - Critical). The remediation script elevates the router to a hardened 100/100 (Grade A - ISP Production Standard).

Example Input
WAN Internet Interface Name
ether1-wan
Trusted Management LAN Subnet
192.168.88.0/24
Current Winbox Service Port
8,291
Current SSH Service Port
22
DNS 'Allow Remote Requests' Enabled
Yes / Active
Firewall Filters Drop WAN Port 53
No / Inactive
Telnet, FTP, WWW & API Services Disabled
No / Inactive
Bandwidth Test Server (BTest) Disabled
No / Inactive
Neighbor Discovery Restricted to LAN Only
No / Inactive
Default 'admin' User Renamed & Disabled
No / Inactive
Calculated Output
RouterOS Security Score (0–100)
0
Security Status Grade
D/F (Kritis — Sangat Rentan Ditembus Botnet)
Critical / High Severity Findings Count
3
Total Check Parameters Evaluated
6
Recommended Custom Winbox Port
58,291
Recommended Custom SSH Port
2,222
MikroTik RouterOS v7 Terminal Script
# MikroTik RouterOS v7 Security Hardening Script /interface list add name=WAN comment="InfraCalc Hardened WAN List" add name=LAN comment="InfraCalc Hardened LAN List" /interface list member add list=WAN interface=ether1-wan # 1. Disable insecure legacy services & restrict Winbox/SSH to LAN /ip service set telnet disabled=yes set ftp disabled=yes set www disabled=yes set api disabled=yes set api-ssl disabled=yes set winbox port=58291 address=192.168.88.0/24 set ssh port=2222 address=192.168.88.0/24 /ip ssh set strong-crypto=yes # 2. Disable Bandwidth Server, SOCKS, Proxy & UPNP /tool bandwidth-server set enabled=no /ip socks set enabled=no /ip proxy set enabled=no /ip upnp set enabled=no # 3. Restrict Neighbor Discovery & MAC-Winbox to LAN only /ip neighbor discovery-settings set discover-interface-list=LAN /tool mac-server set allowed-interface-list=LAN /tool mac-server mac-winbox set allowed-interface-list=LAN # 4. Protect Input Chain & Block WAN DNS Amplification /ip firewall filter add chain=input connection-state=established,related,untracked action=accept comment="Accept Established/Related" add chain=input connection-state=invalid action=drop comment="Drop Invalid" add chain=input in-interface-list=WAN protocol=udp dst-port=53 action=drop comment="Block WAN DNS UDP" add chain=input in-interface-list=WAN protocol=tcp dst-port=53 action=drop comment="Block WAN DNS TCP" add chain=input in-interface-list=WAN action=drop comment="Drop All Other Unsolicited WAN Input"
Security Audit Findings & Vulnerability Matrix
Evaluation ParameterSeverity LevelVulnerability StatusRemediation Recommendation
Open DNS Resolver (UDP/TCP 53 di WAN)KRITIS (-30)RENTAN DDoS AmplificationWajib blokir port 53 dari interface WAN pada /ip firewall filter chain=input.
Layanan Plaintext (Telnet, FTP, HTTP, API)TINGGI (-20)TERBUKANonaktifkan service telnet, ftp, www, api, dan api-ssl jika tidak dipakai.
Port Manajemen Standar (Winbox: 8291, SSH: 22)SEDANG (-15)Mudah Dipindai BotUbah port Winbox/SSH ke port non-standar dan batasi properti address= ke subnet LAN/VPN.
Akun Default 'admin' Masih AktifTINGGI (-15)BERISIKO BRUTE-FORCEBuat user grup full baru dengan nama unik dan nonaktifkan user 'admin'.
Bandwidth Test Server (BTest)SEDANG (-10)AktifMatikan /tool bandwidth-server set enabled=no agar CPU router tidak di-exhaust dari luar.
MNDP / Neighbor Discovery & MAC ServerSEDANG (-10)Broadcast ke Semua InterfaceBatasi discovery-interface-list dan mac-server hanya ke interface-list=LAN.

Core Concept & Engineering Notes

Network router hardening establishes the frontline defense for enterprise offices, colocation facilities, and ISP edge infrastructures. MikroTik RouterOS offers immense routing and firewall flexibility, yet default installations left unhardened are aggressively targeted by automated global botnets, credential brute-force attacks, and reflection abuse for Distributed Denial of Service (DDoS) campaigns. One of the most critical vulnerabilities encountered on unhardened RouterOS deployments is an open recursive DNS resolver. When the 'Allow Remote Requests' DNS option is enabled without an explicit drop rule on the input firewall chain targeting UDP and TCP port 53 across WAN interfaces, external threat actors can send spoofed DNS queries. The router responds with massive amplified records directed at third-party victim targets (DNS Amplification DDoS), saturating WAN link bandwidth and frequently prompting upstream transit carriers to sever transit routing. This automated security auditor evaluates core RouterOS v7 vulnerability vectors: exposure of plaintext legacy administration protocols (such as Telnet on port 23, FTP on port 21, and unencrypted HTTP Webfig on port 80), default Winbox (8291) and SSH (22) listening ports, absence of management IP ACLs, active Bandwidth Test servers that can be abused to exhaust router CPU cycles, unrestricted MikroTik Neighbor Discovery Protocol (MNDP/CDP) broadcasts across WAN interfaces, and default active 'admin' usernames. The output delivers a comprehensive 0–100 hardening score, a prioritized vulnerability matrix, and an automated RouterOS v7 remediation script to remediate all identified exposures instantly.

How It Was Calculated (Formulas & Steps)

Frequently Asked Questions (FAQ)

Why is dropping incoming port 53 traffic on WAN interfaces strictly required?

If 'Allow Remote Requests' is enabled without WAN firewall filtering, your router operates as an open DNS resolver. Attackers abuse this to launch amplified DDoS attacks against remote victims while degrading your upstream bandwidth.

Why should the default Winbox port 8291 be modified to a custom port?

Automated internet bots constantly scan port 8291 for unpatched vulnerabilities and brute-force attempts. Migrating to a high non-standard port (e.g. 58291) combined with an IP access list eliminates virtually all automated scan noise.

What is the security risk of leaving the Bandwidth Test Server (BTest) active?

The RouterOS bandwidth-server lacks strict connection rate-limiting. Malicious external actors can initiate synthetic throughput streams against your router to spike CPU utilization to 100%, causing service disruption.

Can applying this hardening script lock me out of the router?

No, provided you configure your legitimate LAN subnet accurately and manage the router from an internal LAN interface. As standard best practice, always toggle 'Safe Mode' in Winbox prior to executing terminal scripts.