I have set up Zabbix server at home on my raspberry pi and I have a server on VPS also. I want to monitor my VPS server on my local Zabbix server.
I would like to NAT my Zabbix server 10.0.x.x and my VPS server 45.76.x.x
I have tried dstnat but no success.
Code: Select all
add action=dst-nat chain=dstnat comment="Zabbix Proxy" dst-port
=10050 in-interface=ether1 protocol=tcp to-addresses=10.0.x.x to-ports=10050
add action=dst-nat chain=dstnat comment="Zabbix Proxy" dst-port
=10050 in-interface=ether1 protocol=udp to-addresses=10.0.x.x to-ports=10050
Thanks for the help in advance![/b]
*Edit:
I tried to telnet on port 10050 from my VPS. I see that packages arrive on firewall but no connection established.
Code: Select all
telnet 89.x.x.x(My public IP) 10050
Trying 89.x.x.x
Connected to 89.x.x.x
Connection closed by foreign host.