r00igev@@r
Honorary Master
- Joined
- Dec 14, 2009
- Messages
- 15,639
- Reaction score
- 14,157
- Location
- Draadloos Bantha poo doo in 4ways
I use a reverse ssh with:
/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -i /home/amastelek/.ssh/id_rsa -R 42067:localhost:42067 -N -q user@ &
On the vpn server I have this in snmpd.conf:
proxy -Cn 157S -v 2c -c rcigmig2000 tcp:localhost:42067 .1.3
All works great but on a line outage I need to restart snmpd - ssh restarts automatically.
Any way to get snmpd to restart automatically?
/usr/bin/autossh -M 0 -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -o "PubkeyAuthentication=yes" -o "PasswordAuthentication=no" -i /home/amastelek/.ssh/id_rsa -R 42067:localhost:42067 -N -q user@ &
On the vpn server I have this in snmpd.conf:
proxy -Cn 157S -v 2c -c rcigmig2000 tcp:localhost:42067 .1.3
All works great but on a line outage I need to restart snmpd - ssh restarts automatically.
Any way to get snmpd to restart automatically?