Skip to main content
IP Range CalculatorPRO
Planning, VLSM & CloudInstant Client-Side Tool

Firewall Address Exclusion Calculator

Subtract exceptions from allowed ranges.

Firewall Address Exclusion Calculator: inputs and results

Enter an IP address, CIDR prefix, or range. Then check its first and last address below.

Quick presets:

Calculated Boundaries & ParametersReady

Network Address192.168.1.0
Broadcast Address192.168.1.255
First Usable Host192.168.1.1
Last Usable Host192.168.1.254
Subnet Mask255.255.255.0
Wildcard Mask0.0.0.255
Total Addresses256
Usable Host Range254

Key Capabilities

  • •100% Client-Side: Zero telemetry or server latency.
  • •RFC Compliant: Exact 32-bit and 128-bit integer precision.
  • •Quick Copy: Instant access to CIDR, mask, and range bounds.
  • •Cross-Platform: Works on desktop, tablet, and mobile browsers.

How Firewall Address Exclusion Calculator Works?

This tool works by subtracting every exception from the allowed ranges and returning the remaining space as exact CIDR blocks, for firewalls that support permit rules only.

  1. Enter the allowed ranges

    Type the broad scope, such as 10.0.0.0/8.

  2. Enter the exceptions

    Type the addresses to exclude, such as 10.10.0.0/16 and 10.200.5.0/24.

  3. Subtract

    The calculator removes each exception from the allowed ranges.

  4. Output the CIDR list

    The remaining space appears as the minimal list of CIDR blocks, ready to paste into a permit rule.

Firewall Address Exclusion Calculator Formula

The formula is Permit List = CIDR(Allowed − ∪ Exceptions).

Remaining space

Allowed − ∪ Exceptions

Set difference.

Block count

up to 32 − p blocks per exception

Removing a /32 from a /8 leaves 24 blocks.

Size

|Allowed| − |Exceptions ∩ Allowed|

Permitted addresses.

Worked example: 10.0.0.0/8 minus 2 exceptions

Allowed    : 10.0.0.0/8 (16,777,216)
Exceptions : 10.10.0.0/16, 10.200.5.0/24
Permit list: 22 CIDR blocks
Permitted  : 16,711,424 addresses

Firewall Address Exclusion Calculator Conversion Table

The table lists the permit blocks for 10.0.0.0/8 with 10.10.0.0/16 and 10.200.5.0/24 excluded.

#Permit BlockAddresses
110.0.0.0/13524,288
210.8.0.0/15131,072
310.11.0.0/1665,536
410.12.0.0/14262,144
510.16.0.0/121,048,576
610.32.0.0/112,097,152
710.64.0.0/104,194,304
810.128.0.0/104,194,304
910.192.0.0/13524,288
1010.200.0.0/221,024
1110.200.4.0/24256
1210.200.6.0/23512
1310.200.8.0/212,048
1410.200.16.0/204,096
1510.200.32.0/198,192
1610.200.64.0/1816,384
1710.200.128.0/1732,768
1810.201.0.0/1665,536
1910.202.0.0/15131,072
2010.204.0.0/14262,144
2110.208.0.0/121,048,576
2210.224.0.0/112,097,152

What is Firewall Address Exclusion Calculator?

The Firewall Address Exclusion Calculator is a tool that turns "allow this range except these addresses" into an exact list of CIDR blocks.

Many platforms have no "except" keyword: AWS security groups, Azure NSG service rules, Kubernetes NetworkPolicy ipBlock fields without except, and simple router ACLs. The only way to express an exception is to permit everything around it.

The block count grows with the depth of each exception. Excluding a /24 from a /8 needs 16 blocks, and excluding a /16 needs 8 blocks.

What are the uses of Firewall Address Exclusion Calculator?

There are 4 main uses of the Firewall Address Exclusion Calculator, including security groups, VPN split tunnels, and egress policies.

  • Writing cloud security group rules

    Security groups accept permit rules only, so exclusions become permit lists.

  • Building VPN split-tunnel lists

    VPN clients route 0.0.0.0/0 minus local networks through the tunnel.

  • Defining egress policies

    Egress rules allow the internet minus RFC 1918 space.

  • Isolating sensitive subnets

    A broad internal permit excludes the payment or management subnet.