Wazuh network ports and firewall rules: what must talk to what
A team placing Wazuh components across network zones needs firewall rules agreed before go-live, and the answer starts with the four components. The Wazuh indexer stores and searches alerts, the Wazuh server analyzes agent data with decoders and rules, the Wazuh dashboard serves the web interface, and Wazuh agents run on endpoints. Each pair of these components has its own directional flow: agents reach the server to enroll and send events, the server writes to the indexer, the dashboard queries the indexer and talks to the server API, and administrators reach the dashboard over HTTPS. Clustered servers add their own cluster traffic. Treat every pair as a separate rule with a named source, destination, protocol and port, rather than a single open range between zones.
The exact port list must be confirmed against the Wazuh documentation for the installed release line, which is 4.14, because defaults and optional services change between releases. Check the deployment options and the release notes for your specific version before writing rules, and confirm which ports your chosen installation method (all-in-one, step-by-step, Docker, Kubernetes or an offline install) opens or expects. Also confirm where the agent enrollment and API ports must be reachable from, since these are the flows most often opened too widely.
Several flows should never face the internet: the indexer API, the server API, the cluster communication ports and the agent communication channel should stay on internal networks or dedicated management segments. Only the dashboard may need a controlled path for administrators, and that path should go through a reverse proxy or VPN you already operate. DeployOpen plans these rules with your network and security teams, documents each flow for review, and tests the segmentation from the zones where agents and users actually sit before go-live, so the rules are verified in your environment rather than assumed.
How traffic flows between Wazuh components and trust zones
The diagram starts at the endpoints, where agents send events to the Wazuh server, which may sit behind a cluster or load balancer in the server zone. The server hands analyzed alerts to the Wazuh indexer, which stores them, and administrators reach the Wazuh dashboard through their workstations. Updates and vulnerability data come from outside sources, so check that each arrow in the diagram maps to a rule you have written and tested in your own environment, and that nothing in the internet zone reaches the indexer directly.
Main flows between endpoints, the server, the indexer, the dashboard and outside sources.
Which Wazuh flows to open and when each segment design fits
This table compares four common Wazuh layouts by the flows that cross zone boundaries and what each layout requires from firewalls and segmentation. Read each row against your own topology, then confirm exact ports and protocols in the Wazuh documentation for the release you deploy, since port lists change between versions.
| Layout | Flows that cross zone boundaries | What the layout requires |
|---|---|---|
| Single-host all-in-one | Agents to the server on the enrollment and event ports; administrators to the dashboard web port; little or no internal east-west traffic | One host with local access controls, a firewall allowing only agent and admin sources, and no exposure of the dashboard or API to the internet |
| Separated server and indexer tiers | Agents to the server; server to the indexer over the indexer API port; dashboard to the indexer and server APIs; administrators to the dashboard | Internal firewall rules between server, indexer and dashboard zones, with the indexer reachable only from the server and dashboard tiers |
| Clustered server with load balancer | Agents to the load balancer, then to server nodes; cluster synchronization between master and workers; server to indexer | Load balancer placement in a DMZ or internal zone, cluster communication ports open only between server nodes, and health checks confirmed for each node |
| Air-gapped or offline install | Mostly internal flows only; no outbound paths to update or vulnerability feeds, so an offline vulnerability repository must be staged inside the enclave | Internal media or transfer process for packages and vulnerability data, and a deny-by-default egress policy with documented exceptions for any approved sync |
| Internet-facing agent traffic | Endpoints outside the corporate network reaching the server directly or through a relay | Exposure limited to the agent communication ports, with the server hardened and monitored, and the dashboard and API kept on internal networks |
| Dashboard and API access | Administrator browsers and automation clients to the dashboard and the server API | Access restricted to a management network or VPN, with source-IP allow lists and no direct public listener |
| Confirming ports for your release | Every row above depends on exact port numbers and protocols | Take the port table from the Wazuh documentation for your installed release and check it against your own rule set before change approval |
Which Wazuh components should never face the internet
The Wazuh indexer and its API should never be reachable from the internet. The indexer stores every alert and archived event the deployment collects, and it is the component an attacker would most want to query or modify. Keep it on a private network segment that only the Wazuh server, the dashboard host and approved administrators can reach. Before go-live, confirm which interface the indexer binds to in your release, since the default bind address and the listening ports vary by version and installation method. Check the result from an external host, not from inside the network, and record the check as evidence.
The Wazuh server API on port 55000 and the agent enrollment service (authd) are the two remote-management surfaces. Neither needs to be open to the internet, but both must be reachable by agents on the internal network and by the administrators who manage them. Restrict both to named source ranges, such as the agent subnets, the CI or configuration management hosts and a jump host, and confirm the bind address for each service in your release. Agents in remote offices or on cloud instances need a path to the server through a VPN or private connectivity, not a public listener. Treat the list of allowed sources as a controlled document that changes through a review.
Remote staff who need the dashboard are the main reason this boundary gets moved. The safer pattern is to publish the dashboard only through a reverse proxy or a VPN, with multi-factor authentication enforced at that layer and the dashboard itself kept off the public address. A reverse proxy adds TLS termination, access logging and a single place to apply rate limits, but it also becomes an internet-facing component that needs patching and monitoring. Ask whether your team will operate that proxy, and confirm with the Wazuh documentation which headers and ports the dashboard expects when it sits behind a proxy.
How to plan and apply firewall rules for a Wazuh deployment
This sequence turns an unplanned set of open ports into a documented, default-deny ruleset that lets agents report, administrators reach the dashboard and everything else stay closed. Each step ends with a check you can run before moving on.
Inventory every component and host
List each Wazuh indexer node, server node, dashboard host, agent endpoint, load balancer and any agentless source such as a firewall that sends syslog, with its IP address, operating system and network zone. Someone on the platform team owns this list, and a security engineer reviews it. It is done when every host that will touch Wazuh appears once, with a zone label and an owner. Missing hosts found later are the most common cause of broken agent connectivity.
Map each required flow from the documentation
Work through the Wazuh documentation for the version you run, and record each flow as source, destination, port and protocol. Cover agent-to-server enrollment and event traffic, server-to-indexer traffic, dashboard-to-indexer and dashboard-to-server traffic, administrator access to the dashboard and API, and any cluster or syslog flows you use. Confirm each port against the documentation for your release, because defaults can change between versions. Done when every flow has a documented source in the documentation and an owner who accepts it.
Define source and destination groups
Group the hosts from your inventory into named sets such as agents by site, manager nodes, indexer nodes, dashboard users, administrator workstations and monitoring sources. Apply the flows from the previous step to these groups rather than to individual addresses where your firewall allows it, and keep the group membership in version control. Check that no group mixes internet-facing and internal systems. Done when each flow in your map points to a named group on both ends.
Write default-deny rules per zone
For each zone, set the default policy to deny inbound and outbound traffic, then add only the allow rules from your flow map. Keep the indexer and its REST interface reachable only from the server and dashboard groups, and keep the API reachable only from administrator sources. Do not publish any Wazuh management port to the internet. Review each rule for a stated purpose and an owner. Done when the rule set can be read end to end and every allow rule traces to a flow in your map.
Apply the rules in a test environment first
Load the ruleset into a non-production copy of the deployment, using the same zones and host groups. Keep console or hypervisor access open in case a rule blocks your own management path. Record which rules you changed and the rollback procedure before you apply them. Done when the test environment accepts the ruleset without losing access to the hosts that run it.
Verify agent connectivity
Confirm that a sample of agents from each zone shows as active in the Wazuh dashboard, and that new events arrive in the indexer after a test action on a monitored host. Check that an agent in a zone without an allow rule is blocked, so the deny default is proven and not assumed. Document the agents tested and the results. Done when every tested agent reports as active, events flow, and the blocked test fails as expected.
Verify dashboard access from the intended network only
Open the dashboard from an administrator workstation inside the approved network and confirm it loads and logs in. Then test from a source outside that network, including an external address if one exists, and confirm the connection is refused or times out. Repeat the check for the API port from a non-administrator host. Done when the dashboard loads only from the intended sources and the tests are recorded for your change record and later audits.
Security risks in Wazuh network design
Wazuh spans agents, the server, the indexer, the dashboard and often a load balancer, so each path between them is an exposure point. The risks below recur across deployments and each one has a specific control that keeps the design honest after go-live.
Exposed indexer or API ports
The Wazuh indexer and the server API hold alert data and administrative control. If either listens on a routable interface or sits behind a permissive rule, anyone who reaches that address can attempt access to stored events or server functions. Confirm that the indexer port is reachable only from Wazuh server nodes and dashboard hosts, and that the API port is reachable only from the administrators and automation that need it. Test from outside the intended network, not only from inside your own change window.
Deployment optionsOverly broad agent channel ranges
Agents connect to the Wazuh server over the event and enrollment channels. Rules that allow the whole corporate network or the internet to reach these ports let hosts that should never talk to the manager open connections to it, which increases the load on enrollment and the attack surface on the server. Restrict source ranges to the subnets where agents actually run, and review them whenever a new site or cloud account joins. Document each range with its owner so the list does not grow unchecked.
Shared management and endpoint networks
When dashboard administrators, the indexer and the server share a network segment with user workstations or general endpoints, a compromised endpoint can probe the components that control the SIEM. A flat design also lets an attacker who reaches one host see the others. Place the Wazuh components in a dedicated management segment, and allow administrative access only from named jump hosts. Ask your network team to show the segment boundaries on a diagram before the deployment goes live.
Unmanaged load balancer and proxy paths
A reverse proxy or load balancer in front of the dashboard, the API or the agent channel adds a path that is easy to forget. Its listener ports, TLS settings and backend pools can drift away from the server configuration, and it may forward traffic to a node that should not receive it. Inventory every proxy in the path, record which backend addresses it uses, and confirm that the proxy only reaches the intended server nodes. Include these hosts in the same firewall review as the Wazuh components.
Rules that drift from the design
Firewall rules tend to change during incidents, troubleshooting and cloud migrations, and the changes are rarely reversed. After a few months the live rules may allow paths the architecture never planned, while the design document still shows the original intent. Keep the port map as version-controlled source, compare live rules against it on a fixed schedule, and require a reviewed change for any new opening. Ask the team which person owns the port map and how often it is checked.
Segmenting a Wazuh deployment by environment
In a data center, the Wazuh server, indexer and dashboard usually sit in a dedicated server zone, while agents run on workload networks across the estate. The goal is that endpoints reach the manager over explicitly allowed paths and that nothing else in the workload zones can reach the server components. Plan flows in both directions, because agents start enrollment and send event traffic, while administrators reach the dashboard and API from a management network.
- Agents to the server: Allow agent traffic from each workload subnet to the Wazuh server only, covering enrollment and event channels.
- Dashboard and API from the admin network: Restrict browser access to the dashboard and API access on port 55000 to a jump host or management VLAN.
- Indexer reachable only from server and dashboard: Workstations and general application subnets should have no route to the indexer.
- Server to indexer inside the zone: Keep these flows on an internal segment and deny them from every other zone by default.
- Outbound update and vulnerability sources: Decide whether the server can reach vendor sources directly or through a proxy, and record the rule.
Check each rule against a table of source groups, destination groups and exact ports from the Wazuh documentation for your installed version.
In a cloud environment, the Wazuh components usually run in private subnets of one VPC or account, and access control is set by security groups, network ACLs and routing. The main risk is accidental public exposure of the indexer, the API or the agent channel. Agents on instances in other VPCs or accounts need an explicit route, such as peering or a transit gateway, plus rules scoped to specific groups or address ranges.
- Security groups by role: Create separate groups for the server, the indexer, the dashboard and the agent source groups, so each rule names a role instead of a broad address range.
- Private subnets for the core: Place the indexer and server in private subnets with no public IP addresses.
- Cross-account agent paths: Use peering or a transit gateway for workload accounts, with routes limited to the server subnets.
- Controlled access to the dashboard and API: Reach them through a bastion, a VPN or a private load balancer, and keep the API off any public listener.
- Load balancer and logging: If a cloud load balancer fronts the dashboard or agent traffic, confirm with the Wazuh documentation which designs your version supports before you build them.
Review the security groups after each change, and confirm that no rule opens an indexer or API port to 0.0.0.0/0.
A multi-site deployment has branch offices and remote laptops that must reach a manager located elsewhere. The first design decision is whether all sites report to one central deployment or whether each site runs its own server components. That choice sets which flows cross the wide area network, and it determines where you must control inbound exposure. A clustered server can scale out, but the cluster still needs a stable network path for every agent.
- Branches over site-to-site tunnels: Route branch agent traffic to the central server only through the VPN tunnel, and keep management traffic on a separate path.
- Remote endpoints through a controlled edge: Decide whether laptops reach the manager through a VPN, a reverse proxy or a dedicated edge listener, and confirm which option your version documents.
- Per-site servers where latency matters: If a site runs its own server components, plan the flows that synchronize data back to the central team.
- No lateral movement between branches: Deny agent-to-agent and branch-to-branch traffic that the monitoring design does not need.
- Outbound-only branches where possible: Let branch networks initiate connections to the server so that no inbound listener is needed at each branch.
Test enrollment and event delivery from one endpoint per site before you roll out the remaining endpoints.
An air-gapped deployment has no route to the internet, so every Wazuh flow stays inside the enclave. The offline installation guide covers installation without internet connectivity, and vulnerability detection can use an offline vulnerability repository in place of the Wazuh Cyber Threat Intelligence platform. Your firewall design is mostly about internal allow rules and a deliberate, reviewed path for moving packages and vulnerability data into the enclave.
- Default deny egress: Confirm that no default route exists for the server, indexer, dashboard or agents, and document any exception.
- Internal flows only: Agent to server, server to indexer, and dashboard to analysts stay inside the enclave, with rules limited to the documented ports.
- Controlled import path: Plan a transfer host or media process for packages and the offline vulnerability repository, with scanning and a named reviewer before import.
- Recorded update cadence: Because data arrives by transfer, record who imports updates, when, and which version they came from.
- Agents inside the boundary only: Confirm that every endpoint can reach the manager without a path to external networks.
Confirm the offline installation steps and repository process for your installed version in the Wazuh documentation before you finalize the transfer design.
Limits to confirm in your own environment
The port map for Wazuh depends on the exact release, the deployment layout and the network path between each pair of components. The cards below list the assumptions that most often break a firewall plan, so each one can be checked against your own environment rather than taken from a general diagram.
Exact ports for your release
Confirm the port numbers and protocols against the documentation for the 4.14 release line you deploy, and check the release notes for the patch you install. Do not rely on a port list copied from an older guide, a blog post or a previous installation. Record the confirmed list in your change ticket so reviewers can compare it with the rules you apply.
Wazuh release notesCluster and load balancer flows
Clustering the Wazuh server for horizontal scaling and placing a load balancer in front of agent connections can add traffic paths that a single-node layout does not have. Ask which flows exist between server nodes, between the balancer and the servers, and from agents to the balancer. Confirm the exact requirements for your topology before you write the rules.
Wazuh componentsVulnerability update paths
Vulnerability detection correlates agent software inventory with data from the Wazuh Cyber Threat Intelligence platform or from an offline repository. If you use the online platform, confirm which outbound destinations the server must reach and through which proxy, if any. If you use an offline repository, confirm how updates are transferred into the network and who approves them.
Vulnerability detection docsReturn traffic and stateful rules
Many firewalls and cloud security groups treat return traffic differently from new connections, and some require explicit rules for responses. Check whether your policy is stateful, whether a cloud security group is stateless, and whether any rule applies only to the inbound direction. Test each connection in both directions after changes, because a rule that looks correct on paper can still block agent enrollment or dashboard sessions.
Offline and air-gapped installs
A deployment without internet connectivity changes which outbound flows exist and how packages and updates arrive. Confirm which installation and update steps the offline guide requires, and whether package mirrors or transfer media are part of your process. Do not assume that a network that blocks outbound traffic also blocks inbound agent traffic in the same way.
Deployment optionsQuestions buyers ask about Wazuh firewall planning
How much effort does a Wazuh firewall design take?
The effort depends mostly on how many network zones the deployment spans, how many endpoints report in, how many sites are involved and how large the server cluster is. A single site with one server, one indexer and a few hundred agents on a flat internal network needs a short rule set and a short review. A deployment with agents in several data centers, cloud accounts and branch offices, a clustered server tier and a separate management zone has more flows to map, more approvals to collect and more places where a rule can be wrong. Ask any provider to list each source zone, destination component and port in a written matrix before quoting, because that matrix is what sets the size of the work.
Can our own team design Wazuh firewall rules internally?
Yes, if your team already runs firewall and segmentation work and has someone who understands the Wazuh components and their traffic. The design needs to cover agent-to-server enrollment and event traffic, server-to-indexer traffic, dashboard access, API access and any syslog or agentless sources. Teams without recent Wazuh experience usually struggle with the less obvious flows, such as cluster communication between server nodes and indexer nodes, and with confirming which ports a given release uses in your version. Check the component and deployment documentation for your release line, then test every rule in a non-production zone before it reaches production.
What does the work need from our network and security teams?
The work needs both teams to contribute different inputs. Network engineers provide the current topology, VLAN and subnet layout, existing firewall platforms, NAT and load balancer details, and change windows. Security engineers provide the access model, which people and systems may reach the dashboard and API, how logs and alerts leave the environment and the approval path for exceptions. Both teams need to agree on who owns each rule after go-live and who reviews it when a Wazuh upgrade changes ports or adds a component. Expect to schedule time with both groups early, because change approvals often set the pace more than the technical work does.
How long does a Wazuh firewall project take?
The timeline is set by the things that vary between organizations: the number of zones and sites, how quickly network and security teams can review and approve the rule matrix, how many firewall platforms must be changed, whether a lab or staging environment exists for testing, and the change freeze calendar of your environment. Ask for the timeline in the written scope, with each milestone tied to an input you control, such as receiving topology data, approving the matrix and completing a test window. Fixed-scope engagements agree deliverables and timing in writing before work starts, so the dates should appear there rather than in a general estimate.
Do Wazuh firewall rules change between patch releases?
Rules can change when a release adds, moves or removes a listening port or changes how a component communicates, so the rule set should be checked at every upgrade rather than assumed to be stable. Patch releases in the 4.14 line are less likely to change ports than minor or major releases, but that is a judgment to confirm, not a guarantee. Read the release notes for each version you deploy, compare the listed ports and component changes against your rule matrix, and test the change in staging before you upgrade production. Keep the rule matrix under version control so each change to the rules is traceable to a Wazuh version.
What does a DeployOpen engagement cover for Wazuh firewall planning?
DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks, so firewall planning is handled as part of that work. A typical written scope can include mapping the Wazuh components and their flows, designing segmented zones, producing the port and rule matrix, reviewing it with your network and security teams, documenting the final rule set and verifying the flows after go-live. DeployOpen also runs security testing, so the rules can be checked from the outside as well. The exact deliverables, timeline and fixed price come from the written scope, and DeployOpen does not publish a price list.
Keeping firewall rules aligned through Wazuh upgrades
Treat every Wazuh patch release as a possible change to the port map. The 4.14 line has shipped patch releases roughly every one to two months, and a release can alter which services listen, which ports agents use, or how components connect. Before each upgrade, read the release notes for the target version and compare them against your current rule set. Check for changes to the agent-to-server ports, the indexer and server API ports, and the dashboard, and record which rules the release may affect. Confirm the specific port changes with the release notes for your version, not with this page, because the port list can change between releases.
Put firewall changes under the same change control you use for the platform itself. Keep one document or repository file that lists each flow, its source, destination, port, protocol, purpose and named owner, and require a change request that names the owner to approve any rule edit, including edits made during an upgrade window. The owner is the person who can explain why the flow exists and whether it can be removed. Without that record, teams tend to open ports during an incident and never close them, and the upgrade becomes a guess about which rules still matter.
Test the rules in a non-production copy before the production upgrade. Build a staging deployment with the same segmentation, apply the candidate rules, and run the upgrade there first. Confirm that agents still enroll and report, that the server reaches the indexer, that the dashboard loads from the intended network, and that the API remains reachable only from approved administrative hosts. Repeat the checks on production after the change window, and keep the previous rule set ready for rollback. Confirm with your own environment's staging capacity and change calendar how much time this step needs, since no fixed duration applies to every organization.
How DeployOpen plans and delivers Wazuh network hardening
Network hardening for Wazuh touches every team that owns a segment, a firewall or an endpoint fleet, so the work runs as one sequence: agree scope in writing, map flows with the network team, implement and test rules, document them, then retest as the deployment changes. The cards below follow that order and name what the client should expect at each step.
Written scope before any rule change
Engagements start with a written scope that names the Wazuh components in play, the agent platforms, the segments involved and the firewalls or cloud security groups that will be changed. The scope also states what is out of bounds, such as internet-facing exposure decisions that belong to the client. Ask for the scope to list which deployment method was used, because all-in-one and distributed layouts open different sets of ports. Deliverables and timelines are agreed in the same document before work begins.
Wazuh deployment optionsFlow mapping with the network team
DeployOpen maps each traffic path with the client's network team: agent to server enrollment and event traffic, server to indexer, indexer to dashboard, and any syslog or API probes used for agentless devices. The map records source, destination, protocol and direction for every flow. Teams often find flows nobody documented, such as an old agent subnet or a monitoring host polling the API, so the map should be checked against live connections before rules are written.
Component-to-component rule design
Rules are written per flow rather than as broad allow lists between zones. Indexer cluster traffic, the server-to-indexer connection and dashboard access should each have their own source restriction. Management access to the server API and the indexer should come only from administrative hosts. Confirm the exact port set against the documentation for the installed version, since it changes between releases and the client's own certificate and cluster choices can alter which connections are needed.
Internet exposure and segmentation review
Indexer, server API and cluster interfaces should never face the internet. DeployOpen reviews which components are reachable from outside, which need a reverse proxy or VPN path for remote users, and how the deployment is split into management, agent and user zones. Ask the team to confirm which addresses are public in their cloud accounts, since load balancers and security groups often expose more than intended.
Testing from inside and outside
After rules are applied, DeployOpen tests reachability from each zone: agents from their subnets, administrators from management hosts, and untrusted networks against the same ports. Each allowed flow is confirmed to work and each denied flow is confirmed to fail. Tests run in the client's infrastructure and results are recorded with the rule set so a reviewer can trace each finding to a change.
Flow documentation, owners and retesting
The delivered documentation lists every permitted flow, its business owner, the rule that allows it and the test that proves it. It also records who approves a new agent subnet or port change. Retesting is offered after firewall changes, Wazuh upgrades or new agent groups, either as a one-time check or under a retainer. DeployOpen prepares this evidence for internal and external reviewers, but does not issue audit reports or certifications, which remain the role of independent auditors.

