Ad Widget

Collapse

Change host behind NAT to Proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hueddersen
    Junior Member
    • Dec 2021
    • 1

    #1

    Change host behind NAT to Proxy

    Hi there,

    I have a Zabbix-server version 5.2.7 running in the cloud on Azure. In my office I have a windows-server with Zabbix-Agent 2 running behind a firewall with NAT-traversal. The firewall itself has a DynDNS-address and port-forwarding of port 10050 to the windows-server. In Zabbix I configured the host with the DynDNS-address of the firewall as its hostname (xyz.dyndns.org) and monitoring worked fine.

    Now I want to integrate a second server in my office to into the monitoring. So I took a PC and installed Ubuntu 20.04 LTS with Zabbix Proxy 5.2.7. I configured the proxy to be active and configured.

    xyz.dyndns.org,192.168.0.0/24,zabbix-proxy.xyz.local

    as the proxy-address. With this configuration the proxy can be seen by the cloud-server (last seen < 10 s all the time). But when I change the host to be monitored by the proxy it becomes unavailable (red). I tried various combinations of local / remote hostnames and IP-addresses both in proxy-configuration and in host-configuration but did not succeed. When I select an item on the host and try to test it I get "Get value from agent failed: ZBX_TCP_READ() failed: [104] Connection reset by peer". When I do the same test without proxy and the remote-address on the interface it works fine. Also a "telnet server 10050" from the proxy-server works, the port is open.

    So my questions are:

    1. What is the correct proxy-address? Has it to be the local address / subnet?
    2. What is the correct hostname and interface address for the host I want to monitor by the proxy? Has it to be the local address that the proxy needs to talk to internally?

    Thanks for your help,

    Jörg
Working...