What it is for
Network → Local firewall manages the free-form rules of the appliance’s firewall: which ports to open or close, and from which sources, in addition to (or as an exception to) the services in the list. The default policy, the exposure of the installed services and the list of blocked addresses are in the Settings (System → Settings → Local firewall and Brute Force Defender); the page calls them up with the gear icon at the top («Firewall settings»).
Warning The firewall protects access to the appliance: a mistake can lock you out. For this reason every change must be confirmed within 60 seconds after applying it; if you do not confirm, everything goes back as it was. Do not touch the rules while you are connected from a network you do not control.
The rules
The page is a list of rules with search and a status filter («Filter by status»: «Enabled», «Disabled»), like the other list-and-detail pages. At the top: «Firewall settings», «Refresh» and «Add rule»; above the detail, «Delete» (with the confirmation «Delete this rule?»).
| Field | Meaning | Typical value |
|---|---|---|
| «Protocol» | «TCP» or «UDP» | TCP |
| «Action» | «Accept», «Drop» (throws the packet away without answering) or «Reject» (answers that the port is closed) | Accept |
| «Ports» | One or more ports or ranges, separated by commas | 443, 137-139, 80,443 |
| «Source» | Addresses the rule concerns: IPs or CIDRs separated by commas. Empty = from any address. With a source the rule applies to IPv4 only | 198.51.100.25 |
| «Comment» | A note to remember the purpose | |
| «Enabled» | A disabled rule stays saved but has no effect | on |
The rules apply before the enabled services, also to the ports the services publish (web, mail, database, Git): «Reject» and «Drop» close them, «Accept» opens them to the given source. They do not touch SSH (port 22) and the transitional bridge (8000), which stay reachable so as not to lock you out; the console (443) is not a management port, so the rules apply to it too, and they do not open IMAP 143 and ManageSieve 4190 beyond the LAN.
Saving and confirming. The button at the bottom is «Create and apply» (new rule) or «Apply» (existing rule). Every save applies the rule immediately on the running firewall and opens a window, «Confirm firewall changes»: the new set of rules is active, but either you press «Keep changes» within 60 seconds, or the firewall and the saved settings go back to how they were. «Revert now» undoes it immediately. If the firewall rejects the new set (an error in the rules) the change is undone on its own («The firewall did not accept the change: it has been undone»). After «Keep changes» the rule closes and the list comes back; if the change goes back (expiry, «Revert now», rejection) the rule stays open. When you close a rule with unapplied changes, the console asks «You have changes that are not applied yet. Do you want to apply or discard them?»


Examples
Example: opening a port only to the partner’s office. The partner that supports John Smith Ltd (198.51.100.25) must reach a monitoring agent listening on TCP 8443.
- Network → Local firewall → «Add rule».
- «Protocol»: «TCP»; «Action»: «Accept»; «Ports»:
8443; «Source»:198.51.100.25; «Comment»:Partner monitoring; «Enabled» on. - Press «Create and apply». The countdown window appears.
- From a computer at the partner’s office check that
198.51.100.40:8443answers, then press «Keep changes». If you cannot check in time, let it expire: the firewall goes back as it was, and you try again.
Example: shutting out an address that keeps trying. The log shows continuous attempts from 198.51.100.23 on the webmail and on mail.
- «Add rule»: «Protocol» «TCP», «Action» «Drop», «Ports»
25,143,443,587,993, «Source»198.51.100.23, «Comment»Continuous attempts. - «Create and apply» and confirm within 60 seconds.
- For a block caused by a few failed attempts use Settings → Brute Force Defender instead: it bans on its own and «Unblock» removes the ban.
Example: a wrong change that undoes itself. You mistakenly wrote 443 with action «Drop» and an empty source.
- After «Create and apply» the console stops answering (the rule closes 443 too).
- Press nothing: when the 60 seconds run out the firewall and the saved settings go back as they were.
- Reload the page: the rule is gone. Redo the rule with the right source.
Limits and pitfalls
- The rules do not replace the default policy: with «Drop (deny by default)» whatever is not opened by a service or by an «Accept» rule is closed.
- A rule with a «Source» applies to IPv4 only.
- If the local firewall does not manage the host, the cards’ NAT and the link to Citadel stay inactive until you turn it on (the respective cards warn you).