Zabbix NAT problem

I recently replaced my home router with a MikroTik router. I further split servers into two groups.

  • – Production
  • – Dev

My Zabbix server sits in production network and some Zabbix clients sits in dev network. For some reason there is some kind of NAT issue preventing Zabbix client to translate Zabbix server IP correctly. My Zabbix server have IP and the new Zabbix client got new IP of I was seeing this error.

22825:20180108:185727.666 failed to accept an incoming connection: connection from "" rejected, allowed hosts: ""

Dev network’s DFGW is When Zabbix server sends checks to this client for some reason the dev network’s DFGW got into the translation as well. And since Zabbix client sees its gateway IP not in “Server=” directive in /etc/zabbix/zabbix_agentd.conf for allowed IPs… it denies the connectivity.

Well, it’s an easy fix. I just add dev network’s DFGW IP to /etc/zabbix/zabbix_agentd.conf so it reads the following.


Restart Zabbix client. Now Zabbix server connects.


The other solution is convert Zabblix client from passive to active checks. This seems to be requiring more works to fix the problem and change Zabbix server firewall settings. So I didn’t go this route.


(I have the feeling this is not the correct fix but just bandaging the problem. I don’t fully understand the problem and not sure what can be done on the router side as far as port forwarding goes to properly fix this. If you know, please let me know in the comment below. Thanks!)


  1. This is a MikroTik routing issue. I replaced it with Ubiquiti Networks’ EdgeRouter X SFP router today and not seeing this weird routing issue anything.

    For some reason the MikroTik have some weird bugs that drops packets randomly over the bridge. Increasing the queue frame depth does not help at all. Been smacking my head against it for almost a week and just can’t get it to run the way I wanted. I only spent roughly three hours setting up the EdgeRouter and everything is running exactly the way I wanted.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.