🌐
πŸ›‘οΈ

CIDR Ranges for Firewall Rules

Convert IP ranges to CIDR notation for firewall allow/deny rules and ACLs.

Nid oes angen mewngofnodi
/
/0/8/16/24/32
254
Usable hosts
256
Total addresses
Network address192.168.1.0/24
Usable host range192.168.1.1 – 192.168.1.254
Broadcast address192.168.1.255
Subnet mask255.255.255.0
Wildcard mask0.0.0.255
Mask (binary)11111111.11111111.11111111.00000000
IP classC
Address typePrivate (RFC 1918)

IPv4 subnetting reference. /31 and /32 are handled per RFC 3021 (point-to-point and single-host). All math runs locally in your browser.

Firewall tips

πŸ›‘οΈ

Firewall and security-group rules use CIDR notation. Confirm a range covers exactly the IPs you intend β€” no more, no less.

πŸ’‘

The wildcard mask is what Cisco ACLs use (inverse of the subnet mask) β€” this tool shows both.

🎯

To allow a single host, use /32. To allow a whole office subnet, match its network CIDR exactly to avoid over-permitting.

Sut Mae'n Gweithio

1
Ewch i mewn
Enter your data into the tool above. Everything stays local to your browser.
2
Proses
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
Lawrlwythwch
Get your result instantly. Nothing is stored after you leave the page β€” complete privacy.

Pam defnyddio ein un ni?

βœ“Hollol rhad ac am ddim - dim costau cudd, byth
βœ“Nid oes angen cyfrif, e-bost na mewngofnodi
βœ“Nid yw ffeiliau byth yn gadael eich dyfais
βœ“Dim cyfyngiadau maint ffeil o gwbl
βœ“Dim dyfrnodau ar unrhyw allbwn

Also check out…

Cwestiynau Cyffredin