Zabbix active vs passive checks and firewall design

Zabbix agents can be polled by the server or push data to it, and that choice decides which side opens connections, which ports need to be open and where proxies belong.

On this page

How to choose Zabbix active or passive checks for each network zone

A monitoring team that has to reach hosts across a firewall, behind NAT or in a DMZ must decide, zone by zone, which side opens the connection. With a passive check, the Zabbix server or proxy initiates the connection to the agent, which listens on port 10050 and waits for a request. With an active check, the agent initiates the connection to the server or proxy on port 10051 and asks for its item list, then sends results back over that same session. The direction decides which firewall rules you write, which hosts need inbound reach, and whether a host behind NAT can be monitored at all.

Settle this before rollout, not after. Passive checks need inbound access from the monitoring tier to every monitored host on 10050, which is usually simple inside one trust zone and hard to justify across a DMZ boundary. Active checks invert that: the hosts need outbound access to the server or proxy on 10051, and the monitoring side needs no inbound path to the host. Check the Server and ServerActive settings in each agent configuration against the address the monitoring tier actually presents, because NAT can change what the server sees. Also confirm whether you will use one active proxy per zone, since that choice sets which zone each agent talks to.

Document the decision per zone in a short table of source zone, destination zone, direction, port and owner, then test each rule with a real item before go-live. Confirm with your Zabbix version's documentation how agent 2 and the classic agent handle these settings and which proxy mode each zone needs, because those details change between releases and are worth checking against the Zabbix proxies documentation for your build. Plan for failure as well: if the outbound path from a DMZ host breaks, active items stop silently unless you alert on missing data.

How passive, active and proxy connections flow across zones

The diagram starts with the Zabbix server in the internal zone, which reaches an agent in a DMZ or segmented zone through a passive check on port 10050. Active agents reverse the direction: they open the connection to the server on port 10051 and request their item list. A proxy sits between the two, either contacted by the server (passive proxy) or connecting to it (active proxy). Check each crossing: which side opens the connection, which port the firewall must allow, and whether the agent's Server and ServerActive settings match the path.

Connection direction and ports for passive, active and proxy checks across zones.

Passive, active and agent 2 check modes compared

With passive checks, the Zabbix server (or proxy) opens the connection to the agent and asks for a value. The agent listens on its interface and waits, so the monitored host needs an inbound path from the poller side. By default the agent listens on port 10050, and the server must be able to reach that port on the host's configured interface address. Because the server initiates every request, the item list stays on the server and the agent does not need to know which items exist.

  • Network requirement: allow inbound TCP 10050 from each server or proxy that polls the host, and nothing else from that source.
  • Host requirement: the agent must listen on an address the poller can reach, set through the ListenPort and ListenIP keys in the agent configuration file.
  • Server side: the Server parameter in the agent configuration lists the addresses allowed to request data, so a mismatch is a common cause of rejected checks.
  • NAT effect: the interface address registered in Zabbix must be the address the poller sees, which breaks down when the host sits behind NAT without a stable mapping.
  • Operational note: a host in a DMZ usually needs a firewall rule for each poller, which grows with the number of proxies.

Before choosing passive mode for a zone, confirm which poller will reach each host and whether that path is permitted by policy.

Configuration options and when each fits

This table compares the agent-side and server-side settings that decide which side opens each connection, and which zone each setting fits. Read each row as a question about your firewall: who initiates, which port must be reachable, and which parameter must match. Confirm exact parameter syntax and defaults against the documentation for your agent version before writing firewall rules.

Setting or modeWhat it controlsZone where it fitsFirewall rule it implies
Server (agent parameter)Lists the server or proxy addresses allowed to send passive check requests to the agentHosts on the same network segment as the server or proxyInbound to the agent listening port (default 10050) from the server or proxy only
ServerActive (agent parameter)Lists the server or proxy addresses the agent connects to for active checksHosts behind NAT or in a segment with no inbound access from the serverOutbound from the agent to the server or proxy on port 10051
ListenPort (agent parameter)Port on which the agent accepts passive check connectionsAny zone where passive checks runConfirm the port is unchanged on both agent and firewall rule; the default is 10050
Passive proxyServer contacts the proxy, which then contacts the agentDMZ or remote site where the server may reach the proxy but not the hostsInbound from server to proxy on 10051, and from proxy to agents on 10050
Active proxyProxy connects to the server and collects data from agentsRemote site or DMZ where only outbound traffic is permittedOutbound from proxy to server on port 10051; no inbound rule from server
Agent 2 active checksAgent 2 supports both passive and active checks within one active server connectionMixed networks where some checks need active modeSame connection direction as classic active checks; confirm agent 2 settings for your version
Autoregistration port handlingIf the agent sends no port, the server uses 10050 for passive checksFleets onboarded with autoregistrationEnsure the default port is open or the agent sends the port it listens on

Which checks fit NAT, DMZ and segmented networks

Each network zone changes who can open a connection to whom, and that decides whether a host runs passive checks, active checks or reports through a proxy. The cards below walk through the four zone types most organizations face and the firewall rules each design needs. Confirm every rule against your own security policy before change requests are raised.

Internal LAN with direct reach

Where the Zabbix server can open connections to the monitored host, passive checks are usually the simplest design. The server contacts the agent on port 10050, so the rule to open is inbound from the server to each host on that port. Check that the server's source address is the one the agent sees, and that DNS or the Server parameter on the agent lists the server correctly. Active checks still work here, but they add a return path that most internal networks do not need.

Zabbix proxies docs

DMZ with one-way inbound rules

Hosts in a DMZ often must not accept new connections from the internal network, so an inbound rule from the server into the DMZ can be a policy exception. In that case, active checks let the agent open the outbound connection to the server on port 10051 and pull its item list, and the internal firewall only needs to allow that single direction. Confirm that the ServerActive value on the agent names the server or proxy the firewall allows, and that the agent can resolve it.

Autoregistration docs

NAT and cloud networks

Behind NAT, the server may only see a translated address, and cloud instances often have private addresses that the server cannot reach directly. Active checks work well here because the agent initiates the session outward, and the server records the host by its autoregistered name rather than by a fixed address. Verify that the address the agent reports matches the host's interface, that NAT timeouts are longer than the agent's active check interval, and that egress from the host to port 10051 is permitted.

Proxy placement for segmented zones

A Zabbix proxy placed inside a segment collects data locally and forwards it to the server, which reduces the number of firewall rules between zones to one path. An active proxy opens the connection to the server on port 10051, while a passive proxy is contacted by the server on its interface, defaulting to port 10051. Choose the proxy mode per zone, document which hosts report through each proxy, and confirm how a proxy outage affects buffered data before you approve the design.

Proxy design docs

Isolated OT and restricted segments

Industrial or restricted segments often allow no new inbound or outbound sessions except to a few named systems. In these zones, a proxy with a single approved outbound path to the server is usually the only design that passes review, and hosts should be limited to checks that do not need additional connections. Ask the asset owner which ports and directions are permitted, test each rule with a failed connection before go-live, and confirm that the proxy's own data buffer covers planned outages.

How proxies change connection direction and where they sit

A Zabbix proxy changes which side opens the connection, and that is often the simplest way to reduce open firewall rules. An active proxy initiates the connection to the Zabbix server, collects data from the hosts behind it, and pushes the results up. A passive proxy waits for the server to connect to it on the interface defined for the proxy, with the default port 10051 as the reference point in the autoregistration documentation. The practical question for each zone is therefore which direction the one permitted connection can travel: outbound from the zone toward the server, or inbound from the server into the zone. Confirm the proxy mode in your version's proxy configuration before writing firewall rules, because the rule set follows from it.

Placement follows from that choice. A proxy in a DMZ or a segregated monitored network can often be an active proxy that makes a single outbound connection to the server on the server port, so the trusted zone needs no inbound rule for it. The hosts behind the proxy still need their own path to the proxy (ports 10050 for passive agent checks, or the agent-side settings for active checks), and that path should stay inside the zone. Where policy forbids outbound initiation from a zone, a passive proxy with a narrow inbound rule from the server becomes the option to evaluate. Ask your network team to list every flow with its source, destination and port so the design can be reviewed as a whole.

Proxy groups, available from Zabbix 7.0 onward, add resilience to this design. A proxy group automatically redistributes monitored hosts across its member proxies for load balancing, and when a proxy goes offline its hosts are moved to the remaining proxies in the group. Size each proxy so that the surviving members can carry the load of a failed peer, and test that redistribution in a lab before relying on it. Check the exact behavior for your version, including what happens to buffered data, in the Zabbix proxy documentation.

How to set up active and passive checks with firewall rules

This sequence maps every monitored path before any configuration changes, so each zone gets a check mode that matches its network rules. It ends with verified connections and a documented firewall record that the team can review before rollout.

  1. Inventory zones, hosts and network paths

    List every monitored host, the network zone it sits in (internal, DMZ, cloud VPC, branch, or NAT'd segment), and the path between it, any proxy, and the Zabbix server. Record which direction traffic can flow today and which firewalls or NAT devices sit on each path. Done when every host maps to a zone and a path, and the security team has confirmed the firewall inventory matches the network diagrams.

  2. Decide the check mode for each zone

    For each zone, decide whether the server or proxy should initiate connections (passive, where the server connects to the agent on port 10050) or whether the agent should initiate them (active, where the agent connects to the server or proxy on port 10051). Consider which side is allowed to open inbound connections under your policy, and where NAT makes passive polling impossible. Record the decision per zone in a table that the network and security teams sign off on.

  3. Set Server and ServerActive on each agent

    On each agent, set Server to the address or addresses allowed to poll it passively, and ServerActive to the server or proxy the agent should report to in active mode. Agent 2 uses the same settings and also accepts active check scheduling. Confirm that the values match the proxy or server names and that Hostname matches the host configured in Zabbix. Done when the agent configuration files are reviewed and the values match the zone table from the previous step.

  4. Open only the ports each zone needs

    Open 10050 inbound only from the server or proxy addresses that poll agents passively, and open 10051 only from the agents or proxies that report actively to the server or proxy. Avoid broad rules that allow any source. Where a proxy sits in a DMZ, the rule usually belongs on the proxy path, not on the server. Done when each rule names its source, destination and port, and the firewall change record links to the zone decision.

  5. Place proxies where the zone boundary requires them

    Where a zone must stay isolated, install a Zabbix proxy inside it and point its agents at that proxy. An active proxy connects to the server on port 10051, while a passive proxy is contacted by the server on its interface, default port 10051. Confirm the proxy mode and that the server host record uses the correct interface. Done when each proxy is registered with the expected mode and shows recent data from its hosts.

  6. Verify each path with a test item

    Create a simple test item, such as an agent version or system uptime check, on one host per zone and per check mode. Confirm that the item returns data and that its latency is normal in the latest data view. If it fails, check the server or proxy log for connection errors, then confirm the firewall logs show the expected allow or deny entries. Done when every zone has at least one working test item and each denied connection has been explained.

  7. Review firewall logs before wider rollout

    Before extending monitoring to all hosts in a zone, review firewall logs for unexpected denied traffic, unused rules and connections from addresses that are not in the inventory. Ask the firewall owner to confirm that the rules match the approved zone table. Done when the logs show only expected traffic for the test hosts, and the signed-off firewall record is stored with the change ticket.

  8. Document the design and hand it to operations

    Write a short runbook that lists each zone, its check mode, the ports and sources allowed, the agent and proxy settings, and the test items used for verification. Include the steps to add a host to an existing zone and the owner for firewall changes. Done when operations confirms they can add a host to a zone using only the runbook, and the document is stored where both the monitoring and network teams can access it.

Security and operational considerations for open ports and connections

Every active or passive check is a connection that a firewall, a trust decision or a certificate has to allow. The cards below cover the port rules, the address restrictions and encryption that keep those connections narrow, and the routine checks that catch drift before a monitoring gap goes unnoticed.

Open only the flows each zone needs

Write firewall rules per flow rather than per zone: agents accepting connections on 10050 from the server or proxy that polls them, and active agents or proxies opening outbound connections to 10051 on the server or proxy. A passive-only zone needs no inbound rule toward the server, and an active-only zone needs no inbound rule at all on the agent. Record which direction each rule covers so auditors can trace every opening to a monitoring purpose.

Zabbix proxy docs

Restrict Server and ServerActive addresses

The agent's Server parameter decides which addresses may send passive checks, and ServerActive decides where active checks are sent. Set both to the specific server or proxy addresses in each zone instead of broad subnets, and confirm that NAT does not present a different source address than the one listed. A mismatch usually shows up as agents that silently refuse requests, so test each zone after a change.

Encrypt traffic between components

Zabbix can encrypt agent and proxy connections with TLS certificates or pre-shared keys, and the choice should match the trust level of each zone. Plan the key or certificate lifecycle before rollout, including who issues material, how it is distributed to hosts and how rotation avoids a fleet-wide outage. Confirm the exact encryption options and their settings for your Zabbix version in the official documentation before you write the configuration.

Watch for stale active check lists

An active agent downloads its item list from the server and keeps running it until the list is refreshed. If a host is renamed, moved to another proxy or has items removed, the agent can keep reporting data that no longer matches the configuration. Review active agent item activity on a schedule and compare the hosts reporting data with the hosts you expect, so that stale lists are found early.

Alert on unreachable passive agents

Passive checks fail quietly when a firewall change, a certificate expiry or a stopped agent service blocks the server from reaching port 10050. Create an alert on the agent availability item so that a host going dark produces a problem rather than a gap in graphs. Pair the alert with a regular review of hosts that stay unavailable, because a host with no data is the most common blind spot after a network change.

Review rules after network changes

Each NAT change, DMZ addition or proxy move can break a flow that worked before. Keep a short inventory of the monitoring rules and addresses per zone, and rerun the connection tests after any change to those rules. Ask your network team to tie these reviews to their change process, so monitoring is checked before a change is closed rather than after an alert fails to fire.

Questions teams ask before designing Zabbix firewall rules

What drives the cost of a Zabbix firewall design review?

The cost follows the number of network zones, the number of firewall policy owners who must approve changes, and how much of the existing environment is undocumented. A review of two or three zones with a current diagram and one policy owner is a much smaller job than a review of a multi-site estate with DMZ segments, several proxies and NAT in the path. A written scope should list the zones, the proxies and servers in scope, the firewall platforms involved, and the deliverables, such as a port matrix, rule set and test plan. Ask for the quote to show which items are one-time design work and which are ongoing support, because a design review does not recur the way a retainer does.

How long does a Zabbix firewall design take for several zones?

Duration depends mainly on zone count, how many firewall teams must sign off, and how quickly the current network documentation can be confirmed. Each additional zone adds inventory work, a port decision for each connection direction, and a round of review with the policy owner. No duration is set here because it depends on the environment, so ask for a timeline in the written scope and check that it reflects the number of zones and approval steps. Plan for the review to slow down if change windows for firewall rules are infrequent.

What must our team provide before a design review starts?

Prepare three inputs before the work begins:

  • Network diagrams showing each zone, DMZ, NAT boundary and Zabbix server, proxy and monitored host locations.
  • Named firewall policy owners who can approve rule changes for each segment, with their change process and lead times.
  • A host inventory listing hostnames, IP addresses, operating systems, roles and the zone each host sits in, including hosts that will move between proxies.

A partial inventory is common. Agreeing on how gaps will be filled, and who confirms them, usually matters more than having a perfect document at the start.

Can our own team design Zabbix active and passive check rules?

Yes, a team with firewall and Zabbix experience can design these rules internally. The core decisions are which side opens each connection, which ports are used, and how Server and ServerActive are set on agents and proxies. The Zabbix documentation on agent 2 and proxies describes these settings. What an internal team often lacks is time to test every path, an outside check of NAT and DMZ edge cases, and a second reviewer who is not responsible for the design. An external review is useful as a second opinion on the rule set.

Which ports must be open for Zabbix agent checks?

Passive checks use port 10050 on the monitored host, and the Zabbix server or proxy opens the connection to it. Active checks reverse the direction: the agent connects out to the server or proxy on port 10051. During autoregistration, if the agent sends no port, the server uses 10050 for passive checks. An active proxy connects to the server, while a passive proxy is contacted by the server on its interface, default port 10051. Confirm these ports against your own configuration, because custom ports and changed ListenPort values change the rules.

Does a design review cover NAT, DMZ and proxy placement?

A design review should cover all three, because each changes which side can initiate a connection. NAT changes the address the server sees and can break passive checks if the server must reach a translated address. A DMZ host often needs active checks so that it does not accept inbound connections from the internal network. Proxy placement decides which connections cross each boundary. Ask the provider to show, for each zone, the connection direction, the source and destination addresses after translation, and the rule that permits it.

What should the design review deliver at the end?

A review should deliver a port and direction matrix for every zone, the agent and proxy settings that match it, the firewall rule set with owners, and a test plan that confirms each path. Ask for a list of open questions and the change steps that the firewall owners need to approve. Verify that the deliverables are written in the scope before work starts, so that you can check them against the outcome.

Limits and what to confirm in your environment

Active and passive designs depend on details that vary by Zabbix version, network path and site policy. The cards below list what to confirm before you commit a zone to one model, because a wrong assumption about direction, addresses or versions shows up as missing data rather than a clear error.

Agent version behavior

Confirm which agent binary and version each zone runs before you assume its check behavior. Agent 2 supports both passive and active checks, and its active checks add flexible and scheduling intervals and concurrency within one active server. The classic agent differs in how it schedules active checks, so a fleet with mixed binaries needs a per-host list of what each agent does. Check the agent documentation for your exact version, and test one host in each zone before a rollout.

Agent 2 docs

NAT and address translation

Zabbix matches an active agent's connection to its host record by the address it sees, so NAT, port translation or a load balancer in front of the agent can change what the server receives. Passive checks depend on the server reaching the interface configured on the host, which may be a private address that is not the one the server should use. Ask the network team which address each host presents to the server and to the proxy, and record the translation rules alongside the design.

Proxy version compatibility

Confirm the proxy version against the server version before you place proxies in a DMZ or remote site. Proxies are typically upgraded in step with the server, and a mismatch can break data exchange or configuration sync. Check the Zabbix life cycle page for the support window of each line you run, and plan proxy upgrades in the same change window as the server. Treat any version mismatch as a blocker until the vendor documentation for your exact pair confirms it works.

Zabbix proxies docs

Ports 10050 and 10051

Passive checks need the server or proxy to reach port 10050 on each agent, while active checks need the agent to reach port 10051 on the server or proxy. Confirm that every flow you plan is allowed in both directions where needed, and that any host-based firewall on the agent permits the chosen port. Verify each path with a test check from the actual source zone, not from a management host that has broader access.

Site policy on inbound connections

Some organizations prohibit inbound connections into a zone such as a DMZ, a payment segment or a clinical network, regardless of the monitoring design. If that policy applies, a passive-only model is not available for hosts in that zone, and an active model with an outbound-initiated proxy may be the only option. Ask the security team to put the rule in writing, including the exact ports and directions, before the architecture is approved.

Autoregistration port defaults

Autoregistration fills in defaults when an agent does not send a port: the server uses 10050 for passive checks, and an active proxy connects to the server while a passive proxy is contacted by the server on its interface using the default port 10051. Confirm these defaults match your firewall rules and any non-standard ports you set. Mismatched defaults often appear only after the first wave of hosts registers, so test autoregistration in a small zone first.

Autoregistration docs

How DeployOpen works on this

DeployOpen maps which Zabbix connections each network zone needs, then agrees the active or passive design, ports and proxy placement in writing before any change is made. The work runs inside your own infrastructure, so the firewall rules, server settings and proxy layout are built and tested in the environment they will run in.

How we scope

  • Inventory of network zones, hosts, NAT boundaries and DMZ segments that Zabbix must reach
  • Written choice of active or passive checks per zone, with the reason for each
  • Fixed-scope deliverables listing firewall changes, ports 10050 and 10051, and proxy placement

How we build

  • Configure Server, ServerActive and agent settings to match the agreed connection direction
  • Build and test firewall rules in the client's environment, one zone at a time
  • Verify that active check buffers drain and passive polls succeed across each boundary

How we hand over

  • Documentation of every open port, connection direction and the zone it serves
  • Runbook for adding hosts or zones and for reviewing rules during future changes
  • Walkthrough with network, security and monitoring teams before the engagement closes

How we support

  • Ongoing support and upgrade work available as a retainer for changes to zones or Zabbix versions
  • Retesting of connection paths after firewall, NAT or proxy changes
  • Clear ownership of which team approves each rule change, agreed at handover

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.