The rule builder is a graphical editor for your firewall rules. Drag your networks, devices and objects onto a canvas, draw a line between two of them to draft a rule, test it, then deploy it. The assistant, templates and suggestions are still there as options, but you don't need them.
Where: Firewall › Rule builder
Video: Your first rule, from drawing to deploying (2 min, captions, no sound)

Three things to know first:
- Moving an object changes only the drawing. It never changes a rule. The positions are saved for your account on this firewall.
- A line comes from a real rule. It doesn't prove that traffic passes: each line says what is actually known about it (see What the lines mean).
- Nothing applies until you deploy. Saving a draft only adds to the pending changes.
Step 1: Drag objects onto the canvas
The left panel lists what exists on this firewall: networks, devices, address groups, internet and VPN connections, and security zones. Use the search box to find one.
- Drag an item onto the canvas, or press it to place it without dragging.
- IP / CIDR adds an address or network that isn't in the list.
- Move an object by dragging it. Lines follow straight away.
- Hold Shift and drag to select several objects, then use Group, the align buttons or the spread buttons at the bottom of the canvas.
- Right-click an object to add a rule from it, inspect it, duplicate its view or delete it from the canvas. Deleting from the canvas leaves the object and its rules alone.
The first time you open the builder, it places your busiest zones and the firewall for you. Rules whose objects aren't on the canvas are listed as not drawn, and they still apply.
Step 2: Connect two objects and set the rule
Video: Block something (1 min)
Drag from the + on one object to the dot on another. To do this without dragging, press Connect at the bottom of the canvas and choose both objects.
The rule composer opens. Nothing is allowed yet.

- Choose Allow, Block or Reject.
- Choose a service. A preset such as HTTPS only fills in the ports. Active Directory (from 1.4.3) fills in everything Windows clients need from a domain controller: DNS, Kerberos, LDAP and LDAPS, Global Catalog, RPC with its dynamic ports, SMB and time.

- Check Zones and addresses. The builder fills in what it can work out. If an object's addresses are in more than one zone, it asks you to choose. Sources and destinations take countries, networks (ASNs) and threat lists too, as in the rule editor.
- Optional, under Users, applications and web (from 1.4.3): only for members of directory user groups (Identity add-in), only applications such as Zoom or Teams whatever their port (App-ID add-in), or a web rule by URL category (Web filtering add-in). A group or application the add-in doesn't track yet is added to it with the rule. The line's label names the applications and groups.

- Choose where the rule goes under Position. Rules are first match, so an earlier rule wins.
- Press Save draft.
The composer warns about rules that open traffic from the internet, reach the firewall itself, or allow everything.

To change a rule, select its line. The right panel shows exactly what it does, its counters and its live events, with Edit, Test, Disable, Delete rule and buttons to move it up or down. These changes are pending changes too.
Drag a service from Service / Protocol onto a rule's label to add that service to the rule.
Publish a device to the internet
Videos: Host a Steam game server (2 min) · Share Plex with one person (1.5 min)
A security rule can't let the internet reach a device behind the firewall. That takes a port forward. Draw a line from wan to one device, and the builder opens Publish instead of the rule form. The device can be a host, a single IP address, or an alias holding one address.

- Check this device (optional). The firewall tries common ports on the device and lists the ones that answer. Press one to add it. A risky one, such as SSH, is marked. The check runs from inside your network, connects only, and sends nothing. It only works for devices in your internal zones.

- Product or service. Pick one to fill in its defined ports, such as a Steam game server or Plex, or choose Custom ports and type them. After a check, each line says Open, Not answering, UDP: can't check or Not checked. UDP can't be checked this way, because a working service may not answer.
- Who may connect. Leave it empty for anyone on the internet, and the builder warns you. Limit it to addresses, networks, aliases or two-letter country codes if you can. Your address aliases are listed under the box: press one to allow its addresses, press it again to take it out. An alias keeps the list in one place: make it in Firewall › Aliases & objects (for example
Mail_Filterwith your mail filtering service's addresses, orPartners), and when an address changes you edit the alias, not each published server. The alias's Used by column lists the port forwards that use it. From 1.4.4.

- Read the advice and tick the box. Save draft stays off until you tick that you understand this exposes the device. With more than one administrator, it also asks for a second person to check it. If you are the only administrator, it doesn't, and no approval is required.

- Save draft. One dotted line appears for each port and protocol, marked FORWARD. Nothing is open yet.

- Commit as usual, with safety rollback if you want it. The line stops reading DRAFT as soon as the commit is done (from 1.4.3; before, it could take a minute).
Traffic through a VPN tunnel shows too (from 1.4.3). Rules from or to a site-to-site tunnel's zone carry their live traffic like any other line; before 1.4.3 connections through a WireGuard tunnel were left out of the live view, and Policy lookup said they arrived on an interface in no zone.
Test a connection against an earlier revision (from 1.7.4). On Firewall › Policy lookup, Rules of picks the running configuration or a committed revision from the history. Look the same connection up on both: when the revision before your change allows it and the running one doesn't, the change is why. The answer names the revision it used. The command line's diagnose connection … revision 12 and the API (POST /api/v1/policy/lookup with "revision": 12) do the same.
A forward needs no rule. It lets its own traffic through, before your rules, so a rule that blocks the internet doesn't stop it. With Live traffic on, the forward's line carries the connections that really come in through it, with their arrows (from 1.4.3). Policy lookup and Traffic flow name the forward as what let the connection in; before 1.4.3 they wrongly said no rule allowed it.
Consoles and some games can open their own ports with UPnP. The builder says so for those products. With Network › Traffic shaping & apps › Gaming & apps on for that device, the ports open only while it asks for them, with no forward to keep.

The device's own firewall
The forward gets traffic to the device, and the device's own firewall can still refuse it. Open On the device itself for commands to copy, for Windows (PowerShell) or Linux (ufw and firewalld): open the ports, check them, and undo them later. The builder guesses the system from the ports that answered and says it's a guess, so check it. Korthveil doesn't run these or change the device: run them yourself on the device.

After the commit
The firewall starts a vulnerability scan by itself, if the Vulnerabilities add-in is on and scans the zone the device is in. If the add-in is off, you get an alert, Published devices aren't being scanned, which clears when you turn it on or remove the forward.
To remove a forward, select its line and press Delete forward, then commit. It also appears under Firewall › NAT › Port forwarding.
Check it from outside
The check in the panel runs from inside your network, so it can't prove the forward works from the internet. To test it properly:
- Commit with safety rollback on, and don't press Keep settings yet. If something is wrong, the change undoes itself after 5 minutes.
- Connect to your public address and the port from a device outside your network, such as a phone on mobile data. A device on your own network can't test this unless you ticked NAT reflection.
- If you limited Who may connect, try from the allowed address and from another one. Only the allowed one should connect.
- If it works, press Keep settings. To put everything back, let the countdown finish.

This was tested on a real firewall with real traffic: the allowed address connected, another address and a port next to it didn't, and the rollback closed the port by itself.
Send traffic through a tunnel
Video: Send one device through a tunnel (1.5 min)
Drag a tunnel from Tunnel in the left panel onto the canvas. It lists your gateway groups first, then each WireGuard tunnel. Draw a line from a device, group or network to the tunnel. Route through this tunnel opens.

- Optionally, enter a destination under Only to this destination. Leave it empty to send all of the device's traffic.
- Choose what happens If the tunnel is down:
- Block the traffic is the default, a kill switch: nothing leaves outside the tunnel.
- Use the normal internet stays online, but your real address can be seen.
- A gateway group keeps its own setting, and the panel shows which one it has.
- A route only chooses the way out. It doesn't allow anything. If something is missing, the panel offers it with a tick:
- Outbound NAT through the tunnel, so replies find their way back.
- A rule allowing the traffic into the tunnel's zone, when no rule seems to allow it.
- Press Save draft, then commit.
The line is labelled ROUTE. Select it to see where the traffic goes and what happens when the tunnel is down, or to disable or delete it. Deleting a route leaves any rule or NAT made with it. To edit routes or change their order, use Network › Routing & WAN › Policy routing.

Lines from the internet or from the firewall can't go to a tunnel: a route applies only to traffic from your own devices and networks.
What the lines mean
| Line | Word on the label | What it means |
|---|---|---|
| Solid green, moving dots | OBSERVED | Traffic measured on this rule now. It doesn't prove that the application works |
| Dashed red, ending at the firewall with an X | OBSERVED DENY | The firewall is stopping traffic on this rule now |
| Grey, solid | UNVERIFIED | The rule exists, but no traffic is being measured on it |
| Purple, dotted | DRAFT — NOT APPLIED | In the pending changes only |
| Blue or amber, dash and dot | PREDICTION — NO PACKETS SENT | The result of a simulation |
| Grey, faded | NEVER WINS, DISABLED | An earlier rule decides this traffic, or the rule is off |
A block always stops at the firewall, and the line never continues to the destination. Arrows move only for traffic that was measured, or as the firewall's outlined answer, and never with the reduced motion setting.
Filter the lines with Outbound, Inbound, Interzone, the rule type menu or the filter box.
Step 3: Test and verify
Select a line and press Test, or open Test & verify below the canvas. Enter the source and destination addresses. There are three separate tests, and each says what it can prove.

| Test | What it does | What it can't tell you |
|---|---|---|
| A. Policy simulation | Asks the rules what they'd decide. No packets are sent | Whether a connection really works |
| B. Packet path | Looks for this connection in the firewall's connection table. Each stage says confirmed or not observed | Anything the table doesn't record. For packet proof, take a capture under System › Diagnostics |
| C. Active test | Sends real packets from the firewall, only when you tick the box and press Run test: ICMP, TCP, TLS, HTTP(S), DNS or traceroute | Whether a client can connect |
Active tests start on the firewall itself. They don't pass through the forwarding rules, the source network or the device's own filters, so a test that works here doesn't prove that a device can connect. Running a test from a device isn't available yet: the Korthveil agent doesn't run connection tests.
When a test fails
Video: When it doesn't work (1 min)
The panel below the tests, and the Failures tab, separate what was measured from what it suggests.
| You see | What it means |
|---|---|
| Blocked by policy | A rule or the default rule stops this. The panel names which one |
| Policy permits; the connection was refused | Something answered and refused. The firewall didn't block it |
| Policy permits; the end-to-end test failed | No answer. The cause is unresolved: the host, an upstream network or the return route |
| Name lookup failed | No connection was tried, so this says nothing about the rules |
| TCP connected; TLS failed | The network path works. Check the certificate and the name |
| The application answered 403 | The path works and the application answered |
| Cannot verify: telemetry unavailable | The firewall has no live data to check |
For a block, Propose fix as a draft opens the composer with a rule for exactly those addresses and that service. It applies nothing until you save and deploy it.

Step 4: Review and deploy
Press Review & deploy. The normal commit panel opens, listing what changed.

The commit is all or nothing, it's recorded in the audit log, and with safety rollback on, the change undoes itself unless you press Keep settings. After the commit, the line stops being a draft.
Every rule, and the traffic both ways (from 1.3.12)
From 1.4.1 the rule builder opens with every rule drawn. It places what your rules use when it opens; items you placed yourself stay where they are. Back to my layout puts your own layout back, and then the builder keeps it: rules are no longer placed when it opens, until you press Show all rules again. The filters below the canvas (Allow/Block, → Outbound, ← Inbound, ⇄ Interzone, Filter lines) last for one visit. While one hides lines, the top of the canvas says so, for example Only inbound rules · Show every line. Before 1.4.1 a filter stayed on from an earlier visit without showing, and the canvas looked empty: no lines, no traffic.

Devices (from 1.4.2). A rule that names a group, a network or "any" draws one line for all of it. Turn on Devices (in the canvas toolbar, with Live traffic) to see each device that has traffic through a drawn rule right now as its own small box beside the group, with its own line and its own arrows: requests out, replies back, blocked attempts in red. Each device is named the way the console names it elsewhere: your names, DHCP, the device list. At most eight per rule, the busiest. The boxes come and go with the traffic and are never saved in your layout.

Show all rules (in the canvas toolbar) places everything your rules use: your networks on the left of the firewall, the internet, VPNs and "any destination" on the right. Items you placed yourself stay where they are. Every rule then has its line, numbered in rule order. Back to my layout puts your own layout back.

To look at one rule, click it in the Rules list under the canvas: if its line isn't on the canvas yet, its two ends are placed, and the canvas zooms to it. Ctrl-click (Cmd-click on a Mac) more lines to pick several. Only selected dims every other line and stops its arrows.
The arrows on the lines:
| Arrows | What they show |
|---|---|
| Filled green, moving out | Real traffic connected now: requests, from the source to the destination |
| Filled blue, moving back | Replies to that traffic |
| Filled red, stopping at the firewall | Blocked attempts, measured now |
| Outlined | No traffic right now: the firewall's own answer for this rule's traffic (no packets sent) |
Faster and more arrows mean more traffic. The label then reads, for example, VERIFIED · BOTH WAYS · ↑ 38.4 Kbps ↓ 141 Kbps · 1 conn. REQUESTS ONLY · NO REPLIES means traffic goes out but nothing answers: check the destination and its way back. Real traffic needs Live traffic on; arrows always follow the measurements, never a guess.

The firewall's answer. For every line the builder asks the firewall's own policy check about one connection that stands for the rule. Traffic from the internet is checked the way an outside client really connects: to the firewall's internet address. So an allow rule to a device behind the firewall only works with a port forward:
- ALLOWED · CHECKED BY THE FIREWALL: the outlined arrows go all the way and come back.
- NOT ALLOWED YET: the arrows stop at the firewall, and the line says why: no port forward from the internet to 192.168.50.10 TCP 8081, rule #3 blocks it first, or no rule allows it yet.
- BLOCKS: a block rule the firewall applies.
A rule you are still building shows the same, as DRAFT · NOT ALLOWED YET or DRAFT · ALLOWED, as soon as you save it to the pending changes.

Make it work adds what's missing as pending changes for you to review: for traffic from the internet, the port forward with the rule's own port (the Publish composer opens, filled in); otherwise a rule placed above the one that blocks it. Nothing goes live until you commit. Test this rule runs a real test from the firewall.

Zoomed out, each label shows just the rule number and ✓ or ✕, so many rules stay readable; the selected rules keep their full label. Zoom in for the details.
Screen size. The rule builder works best on a wide, tall screen. On a small window or a phone the canvas says so: make the window wider and a little taller, or press Full canvas; on a phone, turn it sideways. Got it hides the tip for your account. On iPhone and iPad everything works by touch: tap a line or a rule in the list, pinch to zoom.

Other parts of the workspace
- Rules (below the canvas): the full rule table. Selecting a row places and selects its line. Rows can be reordered.
- Auto rule suggestions: the strip under the canvas shows the top suggestions from this firewall's own traffic and rules, with their evidence. Add makes one a draft in the pending changes, drawn on the canvas for you to review; nothing goes live until you commit. Show hides or shows the strip, and Review all opens Auto rules. They're an option: you don't need them to build rules.
- Full canvas: the button at the bottom right of the canvas.
- Undo and redo on the canvas cover the drawing. To undo a rule change, use the pending changes.
What isn't available yet
- Tests from a device or remote agent: only the firewall can run active tests.
- MTU and UDP-specific tests.
- Details per packet on the line, such as MAC addresses: the rule's live events show addresses, ports, protocol, the way out and counts.
- History on the canvas: the lines show now. Past traffic is under Monitoring › Traffic flow.
The pictures are from a test firewall. Its names and addresses are examples.