MikroTik Address-List Generator — Convert IP/CIDR Lists to .rsc Scripts
Transform raw IP/CIDR lists cleanly into RouterOS /ip firewall address-list scripts.
/ip firewall address-list add list=allowed_nets address=192.168.10.0/24 add list=allowed_nets address=10.20.0.0/16 add list=allowed_nets address=172.16.40.0/24
When to use the IP/CIDR List to MikroTik address-list.rsc Converter
Import-ready /ip firewall address-list syntax
Paste dozens or hundreds of IPv4 addresses or CIDR blocks (such as 192.168.10.0/24 or 8.8.8.8), set the list name, comment and optional timeout, and export a ready-to-import .rsc script.
Built for policy routing, mangle rules and firewall blocks
Address lists drive RouterOS filter, NAT and mangle rules for policy routing, traffic splitting, brute-force blocks or hotspot bypasses without hand-typing every entry.
Compatible with both RouterOS v6 and v7
The /ip firewall address-list add syntax works identically across MikroTik RouterOS v6 and v7, including optional dynamic timeouts like 1d or 12h.
Runs locally so private IP lists stay off external servers
Your internal subnets, OLT management ranges and blocklists are converted directly in browser memory and never uploaded anywhere.
Frequently asked questions
How do I import the generated .rsc file into MikroTik?
Upload the .rsc file into WinBox Files, open New Terminal, and run /import file-name=yourfile.rsc, or paste the generated commands directly into Terminal.
Can one address-list mix single IPs, CIDR blocks and IP ranges?
Yes. RouterOS accepts single IPs (8.8.8.8), CIDR blocks (192.168.10.0/24) and dash ranges (192.168.10.10-192.168.10.50) under the same list name.
Should I deduplicate overlapping CIDRs before building the list?
Deduplicating or aggregating adjacent subnets first via IP Range to CIDR or VLSM keeps router RAM usage low and avoids duplicate-entry errors on import.
Similar tools
- IP/CIDR List to Linux nftables Set & ipset ConverterGenerate Linux ipset restore scripts and nftables named element blocks.
- CIDR List to Cisco IOS ip prefix-list & ACL ConverterConvert BGP prefix lists into numbered Cisco IOS sequence & access-list lines.
- WireGuard Config Peer Stanza & AllowedIPs BuilderAssemble clean wg0.conf [Interface] and [Peer] stanzas with keepalive & MTU.
- OpenSSH ~/.ssh/config Jump-Host & Tunnel BuilderGenerate Host aliases with IdentityFile, ProxyJump bastion & LocalForward.