your SSH command is wrong, it should be:
that actually means: after the ssh tunnel is in place, when a connection is made from your zabbix proxy to port 10050 it will be forwarded to 127.0.0.1:10050 on the REMOTE machine. What happens is that a connection to 127.0.0.1:10050 is started FROM the "root@router_ip" machine itself. In the whole procedure I assumed that your zabbix_server resides on the same machine you ssh to, the "router_ip", that's why I used 127.0.0.1, if your zabbix_server is on another machine inside the LAN behind your "router_ip" make sure you enter the LOCAL ip address of the zabbix_server as seen by the router_ip itself.
I know it's a bit tricky but once you fully understand how ssh tunnels work it will be straightforward
Code:
ssh -vvv -N -f -L 10050:127.0.0.1:10050 root@router_ip
I know it's a bit tricky but once you fully understand how ssh tunnels work it will be straightforward
Comment