Firewall Screen

Multi-backend firewall management with zones, rules, conntrack, and live stats.


Layout

+------------------------------------------------------------------+
|  Firewall Rules   Backend: firewalld   Zone: [public ▼]          |
+------------------------------------------------------------------+
|  Zones │ Rules │ Services │ Monitoring │ Raw                      |
+------------------------------------------------------------------+
|  ┌──────────────────────────────────────────────────────────────┐|
|  │ Zone: public (default)                                       │|
|  │                                                              │|
|  │ Services:                                                    │|
|  │   [http] [https] [ssh]  [+ Add Service]                    │|
|  │                                                              │|
|  │ Ports:                                                       │|
|  │   8080/tcp  3000/tcp  [+ Add Port]                         │|
|  │                                                              │|
|  │ Rich Rules:                                                  │|
|  │   rule family="ipv4" source address="..." accept           │|
|  │                                                              │|
|  │ Masquerade: [✓ Enabled]                                     │|
|  └──────────────────────────────────────────────────────────────┘|
+------------------------------------------------------------------+

Tabs

TabContent
Zonesfirewalld zone management
Rulesiptables chain/rule management
ServicesService overview across zones
MonitoringLive stats, conntrack, top talkers, log
RawRaw iptables/firewalld output

Backend Detection

NexusPanel auto-detects the active firewall:

PriorityBackendDetection
1firewalldfirewall-cmd --state
2ufwufw status
3nftablesnft list ruleset
4iptablesiptables -L
5noneNo firewall

firewalld Features

FeatureDescription
Zone ManagementList, default zone, active zones
Service ManagementAdd/remove services per zone
Port ManagementAdd/remove ports (tcp/udp)
Rich RulesAdd/remove rich rules
MasqueradeEnable/disable per zone
ICMP BlocksManage ICMP type blocks

iptables Features

FeatureDescription
Chain ManagementList, create, delete, rename, flush
Policy EditorChange chain policy (ACCEPT/DROP/REJECT)
Rule CRUDAdd, insert, replace, delete rules
Rule Templates13 common preset rules
ExportDownload rules as text

Monitoring Features

FeatureDescription
Live StatsPacket/byte counters per chain (5s refresh)
ConntrackActive connection tracking table
Top TalkersTop 20 source/destination IPs
Firewall Logjournalctl firewall entries
Conntrack UsageTable utilization bar

Event Delegation

Buttons use data-fw-action attributes.


CSS Classes

ClassPurpose
.fw-zone-cardZone container
.fw-rule-rowIndividual rule row
.fw-service-chipService badge chip
.fw-stats-tableStats table
.fw-conntrack-tableConnection tracking table

API Calls

MethodEndpointPurpose
GET/api/firewallGet rules
GET/api/firewall/backendDetect backend
POST/api/firewall/ruleAdd rule
DELETE/api/firewall/rule/:chain/:numDelete rule
POST/api/firewall/zone/serviceAdd service
GET/api/firewall/statsLive stats
GET/api/firewall/conntrackConnections

Part of NexusPanel Documentation

← Back to Documentation