Skip to content
PAIVANETWORK
Free tool

CGNAT Calculator.

Size your ISP's CGNAT in seconds: ports per subscriber, customers per public IP and how many IPs you need.

Uses ports 1024 to 65535 (64,512 per IP) and power-of-two blocks, as in RouterOS deterministic CGNAT.

Ports per subscriber2.016
Subscribers per public IP1:32
Capacity with your IPs2.048
Public IPs needed63
1 public IP split into 32 port blocks
Suggested private range (RFC 6598)100.64.0.0/21

Healthy sizing: enough ports for normal subscriber usage.

I want ready-made rules for my RouterOS
HOW IT WORKS

How CGNAT splits a public IP.

Each public IP has 65,535 ports. Reserving the ports below 1024 leaves 64,512 for subscribers. Deterministic CGNAT splits these ports into equal blocks and gives each subscriber a fixed block, which makes it easy to identify who used which port when authorities request it.

  • More ports per customerFewer issues with games, cameras and apps
  • More customers per IPIPv4 savings, within limits
  • Fixed blocksTraceability for legal requests
  • IPv6 alongsideMoves traffic off CGNAT and frees up ports
Next step

Want CGNAT deployed the right way?

Deterministic rules, logs for traceability and IPv6 working alongside. Talk to someone who does this every day.