Hi,
I'm using Autossh on a remote machine ($REMOTE) to connect to my main server ($MASTER). My call looks (something) like this:
That is: I open two tunnels. The first survives network failures and master server outtakes, whereas the second doesn't. Sooner or later, it closes. For Zabbix, this means that the remote node will keep sending data, whereas the master node will lose its connection to the node eventually.
Is this right? Should Autossh keep both tunnels running? Did I use it incorrectly?
I'm using Autossh on a remote machine ($REMOTE) to connect to my main server ($MASTER). My call looks (something) like this:
Code:
autossh -M 0 \
$MASTER_NAME \
-L $REMOTE_PORT_FWD_TO_MASTER:localhost:$MASTER_PORT \
-R $MASTER_PORT_FWD_TO_REMOTE:localhost:$REMOTE_PORT \
-N \
-o ServerAliveInterval=15 \
-o ServerAliveCountMax=3
That is: I open two tunnels. The first survives network failures and master server outtakes, whereas the second doesn't. Sooner or later, it closes. For Zabbix, this means that the remote node will keep sending data, whereas the master node will lose its connection to the node eventually.
Is this right? Should Autossh keep both tunnels running? Did I use it incorrectly?
Comment