CIRCUITO
CARIOCA TI · DOCUMENTATION
♙
Configuration generator

ACL Rule Generator

Generate IPv4 ACL and firewall-filter rules for Cisco IOS/IOS XE, MikroTik RouterOS and Huawei VRP using hosts, CIDR networks, protocols and TCP/UDP destination ports.

ACLIPv4Cisco IOS XEMikroTik RouterOSHuawei VRPFirewall

IPv4 ACL and firewall rule generator

Build one explicit rule using any, an IPv4 host or an IPv4 CIDR network. TCP and UDP rules can also match one destination port or an inclusive range.

Letters, numbers, dots, underscores and hyphens.
IP means no TCP/UDP/ICMP restriction. In RouterOS this is represented by omitting the protocol matcher.
Accepted: any, IPv4 host or IPv4 CIDR network.
CIDR input is normalized to the actual network address.
Only valid with TCP or UDP.
Used by Cisco and Huawei. RouterOS uses rule position instead.
Relevant only when MikroTik RouterOS is selected.
ACL · PACKET FILTERING

An ACL rule is a match condition plus an action

An IPv4 ACL or firewall-filter rule typically evaluates fields such as protocol, source address, destination address and, for TCP or UDP, transport-layer ports. When a packet matches the rule, the configured action is taken. The exact processing model still depends on the platform, feature, chain or interface where the rule is used.

ORDER MATTERS

Rule order can change the result completely

Packet filters are order-sensitive. A broad rule placed before a specific one can make the later rule unreachable in practice. Cisco ACLs and RouterOS filter chains are evaluated in rule order, so generated configuration must be inserted at the intended position instead of being pasted blindly at the end of an existing policy.

CISCO IOS · IOS XE

Cisco extended ACLs use wildcard masks for IPv4 networks

In a Cisco extended IPv4 ACL, a host can be written with the host keyword, any represents any address and an IPv4 network is represented by a network address followed by a wildcard mask. For example, 192.0.2.0/24 becomes 192.0.2.0 0.0.0.255. TCP and UDP destination ports can use operators such as eq and range.

MIKROTIK ROUTEROS

RouterOS chains describe where the packet is being filtered

The RouterOS filter table has built-in input, forward and output chains. Input covers traffic destined to the router itself, forward covers traffic passing through the router and output covers traffic generated by the router. Choosing the wrong chain can produce a syntactically valid rule that does not protect the intended traffic path.

HUAWEI VRP

Huawei advanced ACLs can match protocol, addresses and ports

Huawei VRP advanced ACLs are designed to match IPv4 packet characteristics including source and destination addresses, IP protocol and TCP or UDP ports. Huawei product families and VRP releases can differ in how an ACL is bound to an interface or consumed by a traffic policy, so this generator deliberately separates rule creation from deployment context.

CIDR → WILDCARD

The generator normalizes CIDR before producing vendor syntax

If you enter a network such as 192.0.2.37/24, the network is normalized to 192.0.2.0/24 before generation. Cisco and Huawei output then use the corresponding wildcard 0.0.0.255, while RouterOS keeps CIDR notation. This prevents host bits accidentally typed in a network field from being reproduced as if they were the network boundary.

IMPLICIT BEHAVIOR

Do not assume the same unmatched-packet behavior on every platform

Cisco IPv4 ACLs have an implicit deny at the end: traffic that reaches the end without matching a permit entry is denied. RouterOS filter chains behave differently: according to MikroTik documentation, if a packet reaches the end of a chain without matching a rule, it is accepted. Treating these models as equivalent can create an outage or an unintended security gap.

CHANGE SAFETY

Generate first, review policy second, deploy last

Before deploying an ACL remotely, verify the management path, existing rule order, routing direction and rollback method. A correct deny rule applied to the wrong interface, chain or direction can immediately interrupt administrative access or production traffic. The generated command is therefore configuration assistance, not an automatic deployment instruction.

FAQ

ACL rule generator frequently asked questions

What does this ACL generator create?+

It creates one IPv4 filtering rule for Cisco IOS/IOS XE, MikroTik RouterOS or Huawei VRP using an action, protocol, source, destination and optional TCP/UDP destination port.

Can I use an IPv4 network instead of a single host?+

Yes. Enter CIDR such as 192.0.2.0/24. The generator normalizes the network and converts it to wildcard syntax where the selected platform requires it.

What happens if I enter 192.0.2.37/24?+

The address is normalized to the actual network 192.0.2.0/24 before the rule is generated.

What does any mean?+

It means the address condition does not restrict the rule to a specific IPv4 host or network. The exact vendor syntax is generated automatically.

Why can I select a port only for TCP or UDP?+

TCP and UDP provide transport-layer port numbers. Generic IP and ICMP matching do not use TCP/UDP destination-port syntax.

What is the difference between input and forward in RouterOS?+

Input handles traffic destined to the router itself. Forward handles traffic passing through the router. Output handles traffic generated by the router.

Does RouterOS need protocol=ip for any IP protocol?+

No. In this generator, selecting IP means the RouterOS protocol matcher is omitted so the rule is not restricted to TCP, UDP, ICMP or another specific protocol.

What is a wildcard mask in a Cisco ACL?+

A wildcard controls which IPv4 address bits must match. For a conventional /24 network, subnet mask 255.255.255.0 corresponds to wildcard 0.0.0.255.

Does Cisco have an implicit deny?+

Yes. An IPv4 ACL ends with an implicit deny, so packets that reach the end without matching a permit entry are denied.

Does RouterOS have the same implicit deny behavior?+

No. MikroTik documents that if a packet reaches the end of a chain without matching a rule, it is accepted. A final drop policy must therefore be explicit when that is the intended design.

Does the generator apply the Cisco ACL to an interface?+

No. It creates the ACL and rule but leaves interface and in/out direction selection to the administrator because those depend on the real topology and traffic path.

Why does the Huawei output not automatically attach the ACL to an interface?+

Huawei VRP can consume ACLs in different features and policy contexts, and exact application commands can vary by product family and software release. The generator avoids guessing the deployment context.

Can this tool generate a complete firewall policy?+

No. It generates one rule at a time. A complete policy requires rule ordering, stateful-flow considerations, management protection, routing context, testing and rollback planning.

Is a deny rule safe to paste remotely?+

Not automatically. A technically correct rule can cut off management or production traffic when placed in the wrong order, chain, interface or direction. Review and rollback planning are essential.