Switching and Cisco
Cisco ACL Generator
Write each entry the short way, with prefixes and port lists. You get the access list for IOS or NX-OS with the wildcard masks worked out, and a warning for any entry that can never match.
Extended access list, 5 entries
ip access-list extended WEB-IN remark Web servers permit tcp any 10.20.30.0 0.0.0.255 eq 80 permit tcp any 10.20.30.0 0.0.0.255 eq 443 remark Management from the admin subnet permit tcp 10.1.50.0 0.0.0.255 10.20.30.0 0.0.0.255 eq 22 permit icmp 10.1.50.0 0.0.0.255 10.20.30.0 0.0.0.255 echo deny ip any any log
interface INTERFACE ip access-group WEB-IN in
Read the list before pasting it. An access list applied to the interface you are connected through can lock you out.
What you can write
Each line is permit or deny, a protocol, a source and a destination, with ports after either address for TCP and UDP. An address can be a prefix (10.1.0.0/16), an address with a wildcard or a subnet mask, host and an address, or any. A line that names only a source makes a standard access list.
A list of ports after eq, such as eq 80,443, is written as one entry per port, which every platform accepts. Common service names such as ssh, https and dns are accepted and written as port numbers. Lines beginning remark are kept as remarks.
The mistakes it catches
A subnet mask where a wildcard belongs is the classic one: 10.1.2.0 255.255.255.0 in an IOS access list matches something very different from the /24 that was meant. The tool converts it and tells you. It also clears host bits that the wildcard ignores, and says so.
An access list is read from the top and stops at the first match. An entry that an earlier entry already covers can never match. The tool lists those, and points out when the two take different actions, which usually means they are in the wrong order.
IOS and NX-OS
Cisco IOS and IOS XE take an address and a wildcard mask in an access list. NX-OS also accepts a prefix length, which is how the NX-OS output is written. NX-OS has one kind of IP access list, with no standard and extended types, so a standard list is written there with ip and a destination of any.
The output has been checked against the documented syntax, not run on a device. Read it before you paste it, and remember the implicit deny at the end of every list.