Encrypting Zabbix agent and proxy traffic with PSK or certificates

PSK or certificates for Zabbix agent and proxy traffic, rolled out without new firewall ports, with the library limits and proxy configuration exposure you need to plan for.

On this page

Encrypting Zabbix agent and proxy traffic with PSK or certificates

Monitoring traffic crosses network segments that security teams often do not control, and the unencrypted active proxy is the component to look at first. Without encryption, an active proxy's configuration may be exposed to anyone who can reach the server trapper port, so Zabbix advises restricting proxy addresses at minimum. Encryption between agents, proxies and the server closes the gap by authenticating each peer and protecting the data in transit, so the decision is less about whether to encrypt and more about which method fits your estate: pre-shared keys (PSK) or certificates.

Zabbix supports both methods on the agent and proxy links, and the choice is made per connection type. PSK is simpler to issue and rotate when you manage a modest number of hosts and want one shared secret per component. Certificates suit organizations that already run an internal certificate authority, need per-host identity and revocation, and want a review trail that matches their PKI policy. Confirm which TLS library your build uses before you commit: the encryption documentation lists GnuTLS from 3.1.18 and OpenSSL 1.0.1 to 3.x, and LibreSSL supports certificates only, not PSK. Check the Zabbix encryption documentation for the current requirements on your version.

Plan the rollout before you change anything. Each encrypted connection performs a full TLS handshake with no session caching, so confirm that the proxy and server capacity you have planned still holds once every agent connection is encrypted. Also decide the rollout order: a mixed-mode window where encrypted and unencrypted connections both work is usually needed, and it should be time-boxed and tracked. Review the Zabbix proxies documentation to confirm how proxy and server settings interact with encryption, and test the sequence on a non-production proxy first.

PSK or certificates: which fits your estate

A small estate with a stable set of agents and proxies, changed rarely and managed by one team, usually fits pre-shared key encryption well. The PSK is a shared secret configured on each component and the server, so there is no certificate chain to issue, renew or revoke. The trade-off is that the key is shared material that must be distributed and rotated by hand, and every host holding it can decrypt that traffic.

  • Setup effort: each host needs its identity and PSK written into its configuration, which is quick for a handful of hosts and grows with fleet size.
  • Rotation: changing a PSK means touching the server, proxy and agent configuration in a coordinated window, so plan it as a change, not a routine task.
  • Exposure: a copied key on one host compromises confidentiality for every host that shares it, so use one key per proxy or per group where practical.
  • Recurring burden: low while the estate is static, rising with each new host that must be enrolled securely.
  • Storage: keep PSK values in a controlled location, since they appear in configuration files.

Before choosing, confirm with your own team how often hosts are added and who holds the key material today.

Encryption options and when each fits

This table compares unencrypted, PSK and certificate connections for agents and proxies, along with the connection direction each one affects. Read each row against your own libraries and network path, and treat the constraints column as the check to run before you choose. The main takeaway is that PSK is off the table on LibreSSL, so certificates are the fallback there, and that unencrypted active proxies need address restrictions at minimum.

OptionWhen it fitsConstraint that applies
UnencryptedIsolated monitoring segment where traffic never crosses an untrusted network and a documented exception is approvedActive proxy configuration can be exposed to anyone who can reach the server trapper port, so restrict proxy addresses
PSKAgents or proxies built against OpenSSL or GnuTLS, with a small, managed set of hosts and a secure way to distribute keysNot available on LibreSSL builds, so confirm the crypto library on every host before choosing it
CertificateLarger fleets or hosts that run LibreSSL, where a internal certificate authority already issues and rotates machine certificatesNeeds a certificate lifecycle process for issuance, renewal and revocation, and works on LibreSSL
Passive agent checksServer connects to the agent, so the agent listens and encryption is configured on that connectionConfirm which port the agent listens on and whether your firewall rules allow the server to reach it
Active agent checksAgent connects out to the server or proxy, which can suit hosts behind restrictive inbound rulesEncryption must match on both ends, so set it on the agent and the server or proxy receiving the data
Proxy to server (active proxy)Proxy opens the connection to the server trapper port, keeping remote sites outbound-onlyApply encryption here first, because unencrypted configuration exchange can expose proxy configuration
Full TLS handshake per connectionAny encrypted deployment where connection volume is modest enough for handshake cost to be acceptableEach encrypted connection performs a full handshake with no session caching, so plan capacity for many short connections

How encrypted agent and proxy connections reach the server

The diagram starts with the Zabbix agent and an active proxy inside the monitored network, then follows their connections across the trust boundary to the Zabbix server trapper port in the server network. Encryption applies on each link that carries configuration or data, so check each hop separately: agent to proxy or server, and proxy to server. The database sits behind the server and is outside the encrypted agent and proxy links.

Agent and proxy links crossing from the monitored network to the server trapper port.

Rolling out encryption without opening new firewall ports

This sequence moves agent and proxy traffic to encrypted connections over the ports Zabbix already uses, so the change stays inside existing firewall rules and each link is verified before the next one is switched.

  1. Inventory hosts, proxies and library builds

    The Zabbix administrator and the team that owns each monitored host list every agent, every proxy and the server, along with the TLS library each binary was built against. Confirm that each build links to GnuTLS 3.1.18 or later, or to OpenSSL 1.0.1 to 3.x. Flag any LibreSSL builds, because they support certificates only and cannot use PSK. The step is done when every component has a documented version, library and encryption capability, and no host is left unassigned.

  2. Choose PSK or certificates for each link

    Decide the encryption method separately for each connection: server to proxy, proxy to agent, and direct server to agent. PSK suits small estates where the team can generate and distribute a key per host or proxy securely. Certificates suit larger estates that already run an internal certificate authority and need revocation and renewal processes. Record the decision per link and the owner of the key or certificate lifecycle. The step is done when the decision table covers every link in the inventory.

  3. Reuse existing ports and confirm no firewall change

    Map each encrypted link to the port it already uses: the server trapper port for active agents and proxies, and the agent listener port for passive checks. Encryption runs on those same ports, so the network team should confirm in writing that the existing rules already allow the traffic. Any proposed new port is a signal to re-check the design. The step is done when the network team has signed off the port map and no new rule is required.

  4. Configure the server and proxies first

    Configure the server and each proxy to accept encrypted connections on their existing ports, using the chosen PSK identity and key or the certificate and CA files. Keep unencrypted connections allowed during this phase so that agents still reporting in plain text are not cut off. Restrict the proxy addresses the server accepts, because an unencrypted active proxy can expose its configuration to anyone who can reach the server trapper port. The step is done when the server and proxies restart cleanly and show the new settings in their logs.

  5. Verify the server to proxy link

    Confirm that the proxies report data to the server over the encrypted connection before any agent is changed. Check the proxy and server logs for handshake errors, and check that the proxy's last-seen data is current in the frontend. Each encrypted connection performs a full TLS handshake with no session caching, so test the link under realistic polling load rather than with a single check. The step is done when the proxy link has run through a full collection cycle with no handshake failures.

  6. Switch agents in stages and verify each group

    Move agents to encryption in small groups, starting with a low-impact set of hosts. For each group, update the agent configuration to require the chosen method, restart the agent, and confirm in the frontend that items still update. Keep a rollback path for each group in case of failure. Move on to the next group only after the previous one shows no connection errors. The step is done when every agent group has reported data over an encrypted connection for a full check interval.

  7. Enforce encryption and verify each connection type

    After all agents are moved, change the server and proxy settings so that unencrypted connections are refused where the design requires it. Verify each connection type separately: active agent checks, passive server checks, and proxy data. Review the logs for any remaining plain connections and resolve them before closing the change. Record the final configuration, the key or certificate owners and the verification results as change evidence. The step is done when the connection test for each type passes and the evidence record is filed with the change ticket.

Crypto library limits to check before you choose

Zabbix encryption depends on the TLS library compiled into each server, proxy and agent, and on how often those components open new connections. The cards below cover the supported library ranges, the PSK and certificate split they create, and the per-connection handshake cost that matters most on busy proxies.

GnuTLS version floor

Zabbix supports GnuTLS from 3.1.18. Check the GnuTLS version on every host and proxy before you choose it as the library, because an older build can be installed but outside the supported range. On a package-based install, confirm the version with the package manager, and on a custom build, confirm it in the build configuration output. Record the result per host, since agents on older operating systems often carry older GnuTLS builds than the server.

Zabbix encryption docs

OpenSSL range and version drift

Zabbix supports OpenSSL from 1.0.1 through 3.x. Treat that range as the target and confirm the exact version each component links against, not the version on the server alone. Fleets that mix distribution releases can end up with proxies on one OpenSSL line and agents on another, so inventory the library per component before rollout. Plan an upgrade check whenever the operating system or the Zabbix build changes.

OpenSSL range
1.0.1 to 3.x
Zabbix encryption docs

LibreSSL limits to certificates

LibreSSL works with certificates only and does not support PSK. If a host or appliance is built against LibreSSL, PSK is not an option there, and the design must use certificates for that component. Mixed estates can end up with two encryption models, so document which hosts use which method and make sure the server-side configuration accepts both where it is needed. Confirm the library on the build, not from the operating system name.

Zabbix encryption docs

Full handshake on every connection

Each encrypted connection performs a full TLS handshake, and Zabbix does not cache sessions between connections. On a proxy that polls or sends data frequently to many hosts, this adds CPU work and latency to every exchange. Estimate connection volume from item intervals, active check refresh and proxy data upload frequency, then size proxy CPU with encryption enabled in a test before you roll it out widely. Ask the vendor or your own test results to confirm the overhead on your hardware.

Zabbix encryption docs

Busy proxies and connection volume

A proxy serving hundreds of agents multiplies the handshake cost described above, and its active connections to the server add more. Split large monitored estates across proxy groups where it fits your design, and avoid placing every host behind one busy proxy. Measure proxy CPU, queue size and send delays during a peak window, since those numbers show whether encryption has become the bottleneck before users see missing data.

Zabbix proxies docs

Confirm the library against the build

Before you choose PSK or certificates, check which TLS library each binary reports it was built with, and confirm the version on every component that will talk encrypted. Record the check in your rollout runbook so an operating system update or a package change does not silently alter the library. Ask your DeployOpen contact or your own build team to confirm this on your actual hosts, not on a reference machine.

Zabbix encryption docs

Questions teams ask before encrypting Zabbix traffic

How much effort does it take to encrypt Zabbix agent and proxy traffic?

The effort depends mainly on how many agents, active proxies and network paths you have, and on how much of the rollout can be staged without an outage. Encryption is a configuration change on each host and each proxy, plus matching settings on the server side, so the work scales with the number of components rather than with the complexity of Zabbix itself. Teams with a small, well-documented estate can often finish in a few focused change windows. Larger estates with many proxies, mixed operating systems and change control boards need a more detailed plan. Ask any partner for a written scope that lists every component, the order of rollout and the rollback steps before agreeing to a price.

Can our own team encrypt Zabbix traffic without a partner?

Yes, an experienced Zabbix administrator with access to the hosts, the proxies and the server configuration can do this in-house. The work is well documented in the Zabbix encryption documentation, and the risk comes from rollout order and mistakes in key or certificate handling, not from any single hard step. Your team needs someone who can generate and store keys or issue certificates, edit agent and proxy configuration files, restart services and verify that data still flows. Bringing in a partner makes most sense when the team lacks that time, when a compliance review expects a documented and tested change, or when the estate spans several networks and vendors.

What does our team need to provide for the work?

Plan on providing access and decisions rather than hands-on labor for the whole estate. You will need an inventory of agents, active and passive proxies and the server, with their operating systems, Zabbix versions and network paths. You also need change windows, named owners for each host group, access to the configuration files and, where certificates are chosen, access to your certificate authority or a decision on which one issues certificates. A test environment that mirrors production helps, and someone must be available to confirm that monitoring data is arriving after each stage.

How does PSK compare with certificates for ongoing effort?

Pre-shared keys are usually simpler to set up because each component stores a shared secret, but every key has to be generated, distributed and rotated by hand or by your own tooling. Certificates require a certificate authority, issuance, renewal and revocation processes, which adds upfront work and recurring work as expiry dates arrive. Certificates also fit better when you already run an internal PKI and want consistent lifecycle control. Before choosing, check whether your crypto library supports the method you need, since the Zabbix encryption documentation notes that LibreSSL works with certificates only, not PSK. Ask your team or partner to estimate the rotation and renewal workload for your estate.

Will encryption need new firewall ports?

It does not have to. Encrypted agent and proxy traffic can use the ports Zabbix already uses, so the main network question is whether your current rules allow the existing connections. Confirm the port and direction for each connection type in your environment before the rollout, and test each path after the change. Your network team should review any rule change that opens a new path, since that usually signals a design gap rather than a required step.

Why do unencrypted active proxies create a configuration exposure risk?

Without encryption, an active proxy's configuration can be exposed to anyone who can reach the server trapper port, according to the Zabbix proxy documentation. Restricting which proxy addresses the server accepts reduces that exposure, but encryption removes the need to rely on network location alone. Treat this as the main reason to prioritize proxies in the rollout, especially those that cross segment or site boundaries. Your security team should confirm which proxies are reachable from untrusted networks before scheduling the work.

What drives the scope of an encryption project up or down?

The biggest drivers are the number of proxies, whether certificates or PSK are chosen, the diversity of agent platforms and the presence of a change process that requires testing and evidence. Scope also rises when the estate includes isolated networks, older crypto libraries or many teams that must be coordinated. It falls when the inventory is current, the proxies are few, and a single method is used everywhere. Ask any provider to price the work from a written inventory, and confirm which costs are one-time (design, rollout, testing) and which recur (key rotation, certificate renewal, support).

How DeployOpen scopes and delivers Zabbix encryption

DeployOpen plans, implements and documents encryption for Zabbix agents and proxies inside your own infrastructure, so your security and operations teams can review each step. The work starts with a written scope that fixes the encryption method, the connections in scope and the change plan before any agent or proxy configuration is touched.

How we scope

  • Inventory every agent, active proxy and server connection and record which ones carry configuration or data today.
  • Choose PSK or certificates per connection type, based on your PKI, crypto library and host estate.
  • Confirm the Zabbix version, TLS library and any LibreSSL-based hosts before the build starts.
  • Agree the written scope, deliverables and timeline in advance, with fixed-scope engagements as standard.

How we build

  • Roll out encryption in stages, starting with a test group of hosts and proxies before wider change.
  • Configure agents, proxies and server with matching settings, keeping existing firewall ports and rules unchanged.
  • Restrict proxy addresses on the server trapper path alongside encryption, so configuration exposure is closed.
  • Test each connection type after change, including failed-handshake behavior and reconnection after restarts.

How we hand over

  • Document the chosen method, key or certificate ownership, and the rotation steps your team must follow.
  • Provide a configuration record for every agent, proxy and server setting that changed during rollout.
  • Deliver verification results showing which connections are encrypted and how each was checked.
  • Walk your operations team through troubleshooting for handshake failures and expired credentials.

How we support

  • Offer ongoing support, upgrades and retesting as a retainer when your Zabbix estate grows or changes.
  • Review encryption settings again when you move to a new Zabbix release line or change TLS libraries.
  • Retest connections after host onboarding, proxy changes or key and certificate rotation.
  • Ask your DeployOpen contact to confirm retainer terms and response expectations in the written agreement.

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.