I have a proxy (192.168.1.x) local network and a server (192.168.2.x) in the cloud. The problem is I can't establish the connection between the two knowing that I'm going through a firewall with two NAT rules that allow the second network to return the default port (10050).
zabbix_get :
( Get value error : cannot connect to [[address IP of the server] 10051]:[111] connexion refused )
/var/log/zabbix/zabbix_agentd.log
failed to accept an incoming connection : connection from " adresse IP publique" rejected allowed hosts "192.168.2.x"
/var/log/zabbix/zabbix_agent.log
failed to accept an incoming connection : connection from " 192.168.1.x" rejected, allowed hosts "address IP of the server"
And the configuration files are well filled
-proxy.conf
Listenport 10050
Server address IP of the server
Hostname Zabbix proxy
DBHost localhost
DBName zabbix
DBUser zabbix
DBPassword ***********
-Agent.conf
Listenport 10051
Server address IP of the server
Hostname zabbix
-Zabbix server
Listenport 10051
DBHost localhost
DBName zabbix
DBUser zabbix
DBPassword ***********
-Agent.conf
Listenport 10050
Server public address IP
ServerActive address IP of the server
Hostname zabbix server
zabbix_get :
( Get value error : cannot connect to [[address IP of the server] 10051]:[111] connexion refused )
/var/log/zabbix/zabbix_agentd.log
failed to accept an incoming connection : connection from " adresse IP publique" rejected allowed hosts "192.168.2.x"
/var/log/zabbix/zabbix_agent.log
failed to accept an incoming connection : connection from " 192.168.1.x" rejected, allowed hosts "address IP of the server"
And the configuration files are well filled
-proxy.conf
Listenport 10050
Server address IP of the server
Hostname Zabbix proxy
DBHost localhost
DBName zabbix
DBUser zabbix
DBPassword ***********
-Agent.conf
Listenport 10051
Server address IP of the server
Hostname zabbix
-Zabbix server
Listenport 10051
DBHost localhost
DBName zabbix
DBUser zabbix
DBPassword ***********
-Agent.conf
Listenport 10050
Server public address IP
ServerActive address IP of the server
Hostname zabbix server
Comment