monitoring local lan server on main munin server

Flattr this!

I want to monitor my hostname.cavebeat.lan servers on my main server on the internet, to have from everywhere access to the monitoring. My internet connection at home is with dynamic ip so opening a port is not a good solution. DynDNS is also not the best thing and stable.

Searched the net for an easy setup without the need of openVPN or other tunnel software.

SSH Reverse proxy

one of the best tutorials out there is from

and more advanced with autossh:

# ------------------------------
# autossh reverse tunnel on boot
# ------------------------------

# This is the username on your local server who has public key authentication setup at the middleman

# This is the username and hostname/IP address for the middleman (internet accessible server)

# The following two numbers can be whatever you want, but need to be unique if you have multiple reverse ssh tunnels
# Port that the middleman will listen on (use this value as the -p argument when sshing)

# Connection monitoring port, don't need to know this one

# Ensures that autossh keeps trying to connect


su -c "autossh -f -N -R *:${PORT_MIDDLEMAN_WILL_LISTEN_ON}:localhost:4949 ${MIDDLEMAN_SERVER_AND_USERNAME} -p 22 -oLogLevel=error -oUserKnownHostsFile=/dev/null -oStrictHostKeyChecking=no" $USER_TO_SSH_IN_AS

When i start this script, the Server domain.tld is able to access port 4949 via 20005 from my local lan munin monitored node.

    use_node_name yes
    port 20005



easy as that



Comments are closed.