Ad Widget

Collapse

How can I monitor users/Zabbix Agents from another network with zabbix proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mark O´Hara
    Junior Member
    • Jul 2023
    • 3

    #1

    How can I monitor users/Zabbix Agents from another network with zabbix proxy

    Hello, first of all I want to thank you for this forum to solve this question.
    I have implemented zabbix server version 6.0 and it works perfectly in my local network monitoring both routers and end devices with sending reports to my Gmail without any problem.
    Now I would like to know how I can monitor a device from another network with my zabbix server, so I was recommended to use zabbix proxy of the same version of zabbix server (6.0) as an intermediary, I implemented it on a laptop with centos 8 and it was installed.

    But it turns out that as they are 2 different networks they don't have connectivity between them:
    -------------------------------------------------------------------------------------------------
    Zabbix server: 192.168.0.147 (Static)
    Zabbix Proxy: 192.168.43.128 (It is the address of another network)
    -------------------------------------------------------------------------------------------------
    In zabbix proxy I did a tail -f /var/log/zabbix/zabbix/zabbx_proxy.log to see the connectivity and I get this:

    Unable to connect to 192.168.0.147:10051 [Cannot connect to [[192.168.0.147]:10051]: [4] Interrumpet system call
    Unable to connect....

    It should be noted that on both ports 10050 and 10051 are enabled and on the router as well.

    My question is:
    Is it necessary to establish a vpn between the zabbix proxy and server?
    How can both communicate if they are on different networks?
    Add an ip route?
    Zabbix server must be with public ip so that they can communicate?

    Thank you in advance for your time.​
  • Upoester
    Junior Member
    • Jul 2023
    • 1

    #2
    Hello , Mark O´Hara Here we are discussed what is you problem and its solution it simple and lengthy , To screen devices from another association with Zabbix using a Zabbix middle person, you truly need to spread out correspondence between the Zabbix mediator and the Zabbix server, which are on different associations. Here are the means you can follow to achieve this:

    VPN Setup (Recommended): The most secure and recommended approach is to set up a VPN (Virtual Private Network) between the network where the Zabbix proxy is located and the network where the Zabbix server is located. This will create a secure tunnel for communication between the two networks, allowing the Zabbix proxy to reach the Zabbix server and vice versa. Make sure the necessary ports for Zabbix communication (e.g., 10050, 10051) are allowed through the VPN.

    Firewall Rules and Port Forwarding: If setting up a VPN is not feasible, you can configure the firewalls on both networks to allow traffic on the necessary ports (10050 and 10051) between the Zabbix server and the Zabbix proxy. Additionally, you may need to set up port forwarding on the routers or firewalls to direct traffic from the external IP address of the Zabbix proxy to the internal IP address of the Zabbix server and vice versa.

    Static Public IP (Optional): If you want to access the Zabbix server from the internet or across different networks, you can consider giving the Zabbix server a static public IP address. This will make it accessible from the Zabbix proxy and other networks without the need for VPN or port forwarding. However, keep in mind that exposing the Zabbix server directly to the internet may pose security risks, so ensure it is properly protected with firewall rules and other security measures.

    Check Zabbix Proxy Configuration: Double-check the Zabbix proxy configuration file (zabbix_proxy.conf) to ensure that it is set up correctly with the correct IP address and port for communication with the Zabbix server. Make sure there are no typos or errors in the configuration.

    Test Connectivity: After setting up the VPN, firewall rules, or port forwarding, test the connectivity between the Zabbix proxy and the Zabbix server using tools like telnet or ping to verify if the necessary ports are open and reachable.​

    Remember that when setting up communication between devices on different networks, security is a critical consideration. Always follow best practices for network security, and consider consulting with IT professionals or network administrators to ensure a secure and well-configured setup.

    If you encounter specific issues or errors during the setup, refer to the Zabbix documentation, forums, or seek support from the Zabbix community for further assistance.​

    Comment


    • Mark O´Hara
      Mark O´Hara commented
      Editing a comment
      Wow thanks for taking the time to answer, currently I have it already configured through static routes and it works great in addition to enabling ports on both firewalls, now I'm testing through NAT communication.
      My idea is to see what routing protocols I could use according to the connection required by a client such as VPN, RIP, EIGRP, OSPF, MPLS, BGP, Etc.

      Thank you very much for clearing my doubts
  • markosa
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Aug 2022
    • 104

    #3
    Mark O´Hara There's no need for vpn between server and proxy as long as you have traffic routed properly and every firewall within route, including ones within hosts, allows zabbix traffic, you can have vpn for extra security. If you have closed network, as it looks based on used addresses, then there's no need for public ip.

    Comment


    • Mark O´Hara
      Mark O´Hara commented
      Editing a comment
      Thanks, I routed both addresses and it works as the idea was to monitor clients from other networks to my local server.
      Thanks for your time.
Working...