Firewall policy

Edition: ENTERPRISEEnterprise

What it does

Security › Firewall policy reads firewall rules and turns each one into a data flow placed on NetBox: which devices, VMs, IP ranges and prefixes it joins, at which sites, across which Purdue levels and security zones, how often it is hit, and what a reviewer should look at.

It is fed by the Check Point, Fortinet and SCALANCE S/SC connectors, which read from four kinds of source:

SourceHow cinqstack reads itWhat one connection covers
Check PointManagement API, with a read-only loginEvery policy package, access layer and rule on one management server, or one domain of a Multi-Domain Server.
FortiManagerJSON-RPC (FortiManager 7.6)Every ADOM, package and object at once, or one ADOM. Recommended for Fortinet.
FortiGateREST API (FortiOS 7.6)One firewall, every VDOM or one VDOM. For sites without FortiManager, or for hit counts and logs from a firewall FortiManager does not see.
SCALANCE S/SCSSH, read-only show commands; the rules come from show running-configOne Siemens SCALANCE S615 or SC-600 appliance: its own IP rules (lowest priority first), the services and service groups they use, and NAT as a note. Predefined rules, which open services on the appliance itself, are counted but are not forwarding rules. Disabled rules are shown inactive and never decide a flow. An enabled rule that allows any source to any destination on any service is a high finding: Allow-all rule makes the firewall pass-through. These appliances have no global firewall switch, so the policy is always enforced. No hit counts or logs.

Every call and command each source sends is listed on What each connector reads.

Supports Check Point R82 and earlier releases with the Management API, including Multi-Domain Security Management. Use a read-only administrator.

Supports FortiManager 7.x and FortiOS 7.x.

The Fortinet sources come from the Fortinet module, which adds them to the same pages. They are offered only while that module is on and licensed.

Each run:

  1. Reads the policy and every object it uses. Groups are expanded.
  2. Places every source and destination object on NetBox (see What it needs in NetBox).
  3. Checks each rule against a fixed set of review checks and raises findings (see Findings it raises).
  4. Compares the rules with the previous run and records which were added, changed or removed.
  5. Optionally plans NetBox writes: gateways as devices, and allowed flows as NetBox services. These wait for review like every other plan (see Collect, review and approve).

The Path tab answers whether one endpoint can reach another and which rule decides. It has its own page: Firewall path.

How rules are judged

Path, Reach, the findings, NetBox services, Device flows, the IP address page and Advisories' reach all judge rules the same way. Each answer is what one policy, as last read, does on one firewall. When the facts that were read don't settle an answer, it's Unknown.

Check Point

Fortinet and SCALANCE S/SC

Known, or unknown

When a read isn't complete

A run can finish even when some facts couldn't be read: a call was refused, timed out or isn't supported by that version, or a reply left something out. The run says Incomplete and lists them under Not known from this read. cinqstack never reuses facts from an earlier read. What's missing makes only the answers it can change Unknown:

Some reads have limits, which only count their own calls and time. On Check Point, that's at most 200 calls and about 5 minutes for service and host details, with services read first; about 500 calls and 5 minutes for layer settings; about 1,000 calls and 10 minutes for NAT rules; and about 2,000 calls and 10 minutes for group members. On FortiManager, it's about 1,000 reads and 10 minutes for the firewalls' zones; and about 3,000 reads and 15 minutes together for Install On, IPv6 policies, optional tables, global policies and where those are assigned. Reading also stops after 10 failures in a row. Anything not read by then is unknown, and the run says so. Each run starts from the beginning. On a management server with tens of thousands of hosts, a policy that uses many hosts may never have all of their details read. If a policy uses 20 hosts or fewer, they're read one by one, so this doesn't affect it.

To read every fact, cinqstack needs these read-only accounts: on Check Point, a read-only administrator. On FortiManager, a read-only profile that can read Device Manager, Policy & Objects, the Global Database and System. On a FortiGate, the accprofile on the Fortinet troubleshooting page (fwgrp, netgrp, sysgrp and loggrp set to read), for every VDOM. If the account can't read something, the run lists it.

After an update

  1. Update cinqstack.
  2. Update every Relay edge. An older edge doesn't read all the facts, and those facts are unknown.
  3. Run every Firewall policy job.
  4. Review any plans waiting for you. Removals wait until a person applies the plan (see What the NetBox writes do).

Results from version 2026.1.4 or earlier stay as they are until the job's next run, because those runs don't have every fact. Until then, Path and Reach show Unknown. The update itself doesn't open or close findings, change NetBox or send messages. The first run can open and close findings. Each job has its own findings, so they keep their owner, acknowledgement and mutes. A result from before the update never opens a new finding.

Updating, or going back to version 2026.1.4, doesn't mark unchanged rules as changed, with two exceptions on FortiManager:

Going back brings back that version's way of judging rules, including its answers where this version says Unknown. It can open or close findings, and on Fully automatic it can remove NetBox services that this version added. So before the backup for an upgrade, set every job that writes services to Review first or Report only. Before you put an earlier version back, turn on read-only mode, and turn it off only once you've checked those jobs' automation levels.

What it needs in NetBox

Rules are only as readable as NetBox is complete. cinqstack places each firewall object in this order:

So, for good results:

To record gateways as devices, the schema pack field checkpoint_uid (Check Point and SCALANCE S/SC) or fortinet_uid (FortiGates) must exist. Without it, the analysis still runs but gateways are not written: NetBox has no '<field>' custom field yet: provision it in Settings › NetBox schema, …. If firmware_version exists, gateways get their firmware version too. See The NetBox schema.

Setting up

1. Add a connection

An admin opens Security › Firewall policy and presses Connections. Under Add a connection:

FieldCheck PointFortiManagerFortiGate
VendorCheck PointFortiManagerFortiGate
NameYour name for it.
Server and PortManagement server, 443FortiManager, 443FortiGate, the admin port (often not 443)
Domain fieldDomain: Multi-Domain Server onlyADOM: blank = every FortiGate ADOM the login can seeVDOM: blank = every VDOM
SecretAPI key, or Username and PasswordAPI user key (Bearer), or an admin with rpc-permit readREST API token (required)
Verify TLS certificateOff by default. Tick it when the cinqstack host trusts the appliance's CA.

Use a read-only login. Test connects and reports what it found (policy packages, ADOMs or VDOMs). Test and save saves only if the test works. Save without testing is for a server that only a Relay edge can reach. Secrets are stored encrypted.

The account permissions and messages for each vendor are on the Check Point and Fortinet troubleshooting pages.

2. Create a job

An operator or admin presses New job:

FieldWhat it doesDefault
NameThe job's name.
ConnectionWhich firewall source to read.
Policy packagesComma-separated. Blank reads every package. FortiManager takes package, folder/package or adom/folder/package; a FortiGate takes VDOM names.all
Record allowed flows as NetBox services on destination devices and VMsPlans NetBox IPAM services for allowed flows (see below). Reviewed before writing.off
Tag for those servicesBlank uses the job's own tag, cinqstack-fw-<job id>. Services with this tag that the policy no longer allows are removed.the job's own
Record gateways, cluster members and FortiGates as NetBox devicesPlans NetBox devices for the firewalls (see below).on
Include management serversAlso records Check Point management and log servers, or the FortiManager.on
Device role for gatewaysThe NetBox role given to new gateway devices.Firewall
Default siteA NetBox site slug, used when a gateway's IP is in no prefix with a site.
TagThe tag put on gateway devices.the vendor name: checkpoint, fortinet or scalance
Model overridesOne per line, gateway name = Quantum 6200 or fw-name = FortiGate 100F, when the source reports only a series or a VM platform.
Ticket pattern in rule names and commentsA regular expression. Blank finds CHG, INC, RITM, REQ, CR and SR numbers.
Ticket linkA URL with {ticket}, so each ticket number links to your ticket system.
Ask FortiManager for hit countsFortiManager connections only. On each run, cinqstack asks FortiManager to start its own hit-count task, which makes FortiManager query its FortiGates. It changes no policy. Off, rules show their hits as not reported and none is called unused; a FortiGate read directly, Check Point and SCALANCE S/SC are not affected.off
Schedule and What happens after a runAs on every job: manual, repeating, at a set time or cron; report only, review first, automatic updates or fully automatic.Manual, Review first
EnabledA disabled job is not run by its schedule.on

Give each job its own services tag. If two jobs share a tag, the form warns shared tag, and neither job removes services, since they may be the other's.

Press Run now on the job's page. Run with debug log also records the raw snapshot. A job can also run on a Relay edge.

What the NetBox writes do

Gateways as devices. Check Point gateways, cluster members and (optionally) management servers, FortiGates and the FortiManager, or a SCALANCE S/SC appliance, become NetBox devices. An existing device is matched by serial number (Fortinet and SCALANCE S/SC), then by the device that owns the gateway's IP, then by name. A matched device is claimed: it gets the checkpoint_uid (also used for SCALANCE S/SC) or fortinet_uid value and the tag, and is never moved or re-typed. A new device gets the vendor's manufacturer and platform, a model, the firmware version, a site from its IP's prefix (or the default site), and a management interface with its primary IP. Clusters and virtual systems are not created as devices; members carry the cluster name. Check Point VSX virtual systems, VS clusters and VSX clusters are listed on the run report (name, kind, cluster, members and version) and never recorded as NetBox devices; the physical VSX members are, tagged with their cluster. A gateway that disappears from the source is reported as gone and left in NetBox.

Services. For each accept rule in use, every destination that resolves to a device or VM gets a NetBox service for each TCP or UDP port the rule allows. In an inline layer, that's what the parent rules and the rule allow together. A rule gets no services when an earlier rule or another layer certainly drops all of its traffic. Any, negated cells and other protocols are left out. Port ranges wider than 16 ports are listed as Services not recorded, not written. Only services carrying the job's tag are ever changed or removed. A service that depends on something that wasn't read isn't added, changed or removed.

Each destination and each port is judged separately. A service is only added when at least some sources certainly get through every earlier rule and layer, on at least one gateway. If a virtual IP forwards ports, only those ports count, with the port the server uses. If that port is different from the outside one, the policy must allow both. An object without an address never adds a service, and neither does a rule that only lets a server reach itself. On FortiManager, a policy whose Install On is Unknown doesn't add one either.

Removing a service. An automatic run removes a service only when a complete read of the same policy saw that it's certainly allowed, and this run proves that no rule could still allow its addresses and ports. The server, domain, package list and tag must all be the same as before. A change in NetBox, or a job that reads another firewall or fewer packages, is never enough. If NetBox gives the device another name or address, the removal waits for review. Any other removal waits for review, and so does the rest of the plan, whatever the job's automation level. Only a person applying the plan can make it. If NetBox refuses a removal, the next automatic run doesn't do it instead.

Changes in NetBox. Just before a service is changed or removed, cinqstack reads it again. If its device or VM, protocol, ports, tag or description isn't what the plan expects, it's left alone and the run says why. cinqstack never changes a description it didn't write, and a service with such a description is only removed by a person.

Older plans. A plan can be applied once. It can't be applied once the job has a newer result. The page says which run to review. A job never runs while one of its plans is being applied, and a plan is never applied while the job is running. If a stored plan, result or policy can't be read, that run's page says so and the other jobs carry on. It's never a reason to remove or close anything.

Reading the results

The firewall policy overview for a FortiManager source, with the rules to review first ranked by risk.
The firewall policy overview for a FortiManager source, with the rules to review first ranked by risk.

Anyone signed in can read these pages. With more than one job, Policy source at the top picks which job's latest run you see.

Overview

Counts of rules, allowed flows, flows fully placed in NetBox, high findings, medium findings and objects missing from NetBox, a chip for each kind of finding, and Review first: up to 12 rules with high or medium findings. Below are the jobs and recent runs.

Data flows

One row per rule: source, service, destination, action, how well it is placed in NetBox, and its findings. Show switches between Allowed flows (accept rules in use) and All rules. Filter by Severity, Finding, NetBox placement, Level, Package and Site, or search by rule, object, IP, service or ticket.

The NetBox column is ready (every endpoint placed), partial or unmatched.

On FortiManager, global header and footer policies from the Global Database appear as their own layers, Global header · <package> and Global footer · <package>, around the Policy layer of each ADOM package they're assigned to, in the order the FortiGate applies them. Their rules say global header rule, the same in every package (or footer). Virtual IPs, on FortiManager and on a FortiGate read directly, are objects whose address is the mapped internal address, so a rule to a VIP is placed on the server the traffic reaches. On FortiManager, addresses mapped for one device and VDOM are shown for each installation target, and each value is used only there.

Open a rule to see each endpoint with its NetBox object, site, levels and zones. Every endpoint NetBox knows links to its NetBox page; a device also has a button to show it on the topology. Objects NetBox does not know show not in NetBox. The rule page also shows hits and last hit, levels, sites, tickets, comments, interfaces or zones (Fortinet), schedule, logging, NAT, users or groups, when the firewall created and changed it, and when cinqstack first saw, changed or removed it.

Recent traffic asks the source which connections this rule matched in the Last hour, Last 24 hours, Last 7 days or Last 30 days, and lists the distinct conversations with the NetBox device or VM for each address. For a rule that uses Any, this is what it could be narrowed to.

Policy changes

Rules added, changed and removed between runs, over the last 7, 30, 90 or 365 days, with their tickets. The first run of a job is the baseline. A rule counts as changed when its name, state, action, endpoints or services change, or for Fortinet and SCALANCE S/SC, its interfaces, schedule, NAT or logging. Changes to Install On, VPN, time, content, other conditions, an inline layer's link, a rule's position or a layer's implicit cleanup action aren't shown. They still change findings and answers on the next run.

Missing from NetBox

Objects the policy uses that NetBox does not know, most-used first, with a suggestion: IP address missing, Prefix missing, Outside every prefix (external, or an undocumented range) or Device or VM missing. Objects the firewall resolves at run time (FQDN, geography, Internet Service, dynamic objects) cannot be placed and need nothing added.

Device flows

Type a device, VM or IP address to see the rules where it is the source (Outbound) or destination (Inbound), including through networks and ranges that contain its addresses. Rules that match it only through Any are listed apart. A rule in an inline layer is listed for the addresses its parents could let through. If that can't be worked out exactly, it may be listed for more. A rule that's disabled, or not in use because of its parents or Install On, is listed by its own addresses and greyed out.

An admin can put this view into NetBox. On the Connections page, under Device flows in NetBox, press Create link and add the URL as a NetBox custom link on devices and virtual machines. The link carries a token that only allows reading device flows. Replace token or Switch off stops old links working.

A rule page: an engineering workstation at level 2 to a PLC at level 1 over S7comm, both placed on NetBox, with its finding.
A rule page: an engineering workstation at level 2 to a PLC at level 1 over S7comm, both placed on NetBox, with its finding.

Reach

Firewall policy › Reach answers, for every device of a site: can cinqstack reach it for SSH (the port of the Network devices job that covers it) and SNMP (udp/161), and can SNMP traps (udp/162) and Syslog (udp/514) come back? The check starts where the work does: the cinqstack server, or the Relay edge when the device's Network devices job is routed through one.

Each flow has one of four answers:

AnswerWhat it means
allowedEvery firewall on the path that cinqstack reads lets it through, and no firewall it can't read is on the path. Each rule that decides is named, with its firewall.
blockedA firewall cinqstack reads drops it: the firewall, and the rule or the default deny, between which zones (the firewall's own zones, else the NetBox security zone or Purdue level).
partialThe firewalls cinqstack reads let it through, but the path also crosses a firewall it has no policy for (a device with a firewall role in NetBox): check that one.
unknownOne end is a virtual machine, no firewall data covers the path, the device is itself a firewall, whose own access settings decide, or a rule may apply but can't be decided (an object resolved at run time, something that wasn't read, a rule bound to interfaces the cables don't show).

Where a flow is blocked, Rule to ask for gives the rule the firewall team would add: firewall and package, source, destination, service, zones and where it goes (above the rule that drops it, or above the default deny), with a line to copy. The site page merges rules that differ only in one end. cinqstack never writes firewall rules.

The page counts the devices reachable, blocked, partial and unknown (from their SSH flow) and the rules to ask for. Each device opens a page with every flow, the firewalls on the way and the deciding rule. The same view opens from a device's panel (Reach, under Network), from Network devices (Reach), and from a device in a Network devices run.

cinqstack's address as the network sees it is shown at the top of the page. By default it's the address this server's default route uses; an admin can set it there when NAT or a proxy changes it. A Relay edge reports its own address (edges from version 1.1); an older edge is taken at the address the server saw it connect from, which differs behind NAT.

How the path is found: when both ends are devices in NetBox, along NetBox's cables, as the Path view does. When either end is a virtual machine, the answer is unknown, because cinqstack doesn't follow a VM's network yet (see Firewall path). When one end isn't (often cinqstack itself), from the firewall that has an interface in that end's subnet, along the cables to the device; failing that, the firewall nearest the device decides. If cinqstack's server is a physical device, record it in NetBox with its address and cables, and the path is followed hop by hop. If its address belongs to a virtual machine in NetBox, every answer that starts or ends at that address is unknown, also when another record has the same address. cinqstack can't tell that it runs on a VM when its address is hidden by Docker, NAT or a proxy, or isn't recorded on the VM in NetBox: set its real address on this page. If two different firewalls in front of a device disagree, the answer is unknown, because routing decides which one carries the flow.

Rules prove the path, not that SSH or SNMP is switched on at the device or that the credentials work. NAT on firewalls cinqstack doesn't read, switch ACLs and host firewalls aren't seen.

The run

Each run page groups what it found in the policy by kind of finding, then the objects missing from NetBox, then what it would write: gateways to add or claim, gateways gone from the source, and services to create, update or remove. Apply writes the plan when the job is not report-only. It first compares each planned field with what NetBox holds now: a field someone edited in NetBox since the plan is left alone and listed under Apply result and in the run report as "changed in NetBox since the plan", with a Plan again button. Applying is blocked while NetBox holds more devices than the licence covers or a schema field the job needs is missing. Policy changes since the previous run are listed too.

Findings it raises

Each rule is checked against these. Severity is per rule; the run report and Data flows show all of them.

FindingSeverityRaised when
Firewall disabled on a segmentation boundaryhighThe vendor reports a policy as not enforced: its rules are configured, but nothing is filtered.
Allow-all rule makes the firewall pass-throughhighAn enabled rule with any source, any destination and any service (nothing negated), other than the implicit rule: the firewall passes everything that reaches it, and no rule below it is ever reached for that traffic. Those rules get no Shadowed finding of their own; this one finding stands for them.
Bypasses the industrial DMZhighBusiness levels (L4, L5) and OT levels (L0 to L3) talk directly, with no L3.5 on either side.
Outside source into control levelshighA source not in NetBox reaches L0 to L2.
Remote access into control levelshighSSH, RDP, VNC, TeamViewer or WinRM into L0 to L2 from outside them.
Any destinationhigh or mediumThe destination is Any, or everything except the objects listed: high. Also when the action is Ask, Inform, User Auth or Client Auth and both source and destination are Any: high for any service, otherwise medium.
Any sourcehigh or mediumThe source is Any, or everything except the objects listed: high when the destination is too, or is in L0 to L2, otherwise medium.
Accepts what no rule matcheshigh, medium or lowA layer's implicit cleanup action is accept, and traffic can get that far. On an inline layer it's rated like the accept rule it amounts to, with its parent's source, destination and service. On an ordered layer it's high, unless an earlier layer certainly limits what gets there. If the package has more ordered layers, the finding says they have to accept the traffic too. If the action was never read, there's no finding.
Shadowedhigh or mediumAn earlier enabled rule in the same layer certainly matches all of this rule's traffic, on every gateway this rule is installed on, so it never fires. High when the earlier rule has a different action.
Any servicemediumThe service is Any, or everything except the services listed.
Cleartext across levelsmediumFTP, Telnet, TFTP, HTTP, SNMP, rlogin or rsh between different levels.
Skips a Purdue levelhigh or mediumTwo or more levels apart inside OT, for example L3 straight to L1: high when it reaches L0 to L2 with an industrial protocol, so controllers are reached directly from above, otherwise medium.
No hitslowThe source reports zero hits: a candidate for removal.
Traffic hits the implicit denylowConnections ended at the implicit deny: traffic nobody wrote a rule for.
Any interface, both wayslowA Fortinet rule names no zones on either side.
Not loggedlowTraffic on an accept rule is not logged.
Disabled, Scheduled, Source NAT, User-based, Other conditions, In an inline layer, Negated cells, Group with exclusioninfoFor the reviewer's attention only. Disabled also covers a rule that's never in use, for example under a disabled parent rule.

The Findings inbox gets one finding per rule and code for high and medium findings, with the advice to review the rule with the firewall owner. The same rule read from two sources (a FortiGate that its FortiManager also manages) is one finding, under the first job that reports it, and it names both. If that job stops reporting the rule, it closes there and opens under the other job. A finding, acknowledgement or mute from one job is never used for another. If one scan has more than 10 new firewall findings to notify you about, cinqstack sends one message with the count and a link to the list. Objects used by a rule but missing from NetBox (IP address, prefix, or device or VM name) become low data-quality findings.

Two notifications are available: "Firewall rules were added, changed or removed" and "New high-severity firewall findings" (when a run has more high-severity rules than the previous one). See Notifications.

Limits