🌐 IPv4 CIDR Subnet Calculator & Firewall Rule Generator

Calculate exact network ranges, usable host IPs, and subnet masks, and generate copy-ready Apache .htaccess, Nginx, and UFW firewall rules.

1. Enter IPv4 Address & CIDR Prefix Length

CIDR Notation
192.168.1.0/24
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Network Address
192.168.1.0
Broadcast Address
192.168.1.255
Usable Host IP Range
192.168.1.1 – 192.168.1.254
Total Usable Hosts
254
IP Type / Scope
Private (RFC 1918)

2. Generated Server Firewall & .htaccess Access Rules


  
🔍 Want to Look Up Which Hosting Company Owns an IP Address?
Use our live Website Host, ASN & IP Detector tool.
Open IP & Host Lookup →