ssh_tunnel statistics: napoleon to zippy
Time: 2022-Jul-03 22:30:06 Sun
Current tunnel state: disabled          Current tunnel condition: DOWN
loader stats
------ loader (pid: 8060 ) ------------ (v3.26 2006/04/15) ----- State: disabled DOWN
Time: 2022-Jun-05 16:30:05 Sun
client: napoleon
server: zippy
client heartbeat: Client Heartbeat
server heartbeat: Server Heartbeat
server heartbeat 1: Server Heartbeat 1
server heartbeat 2: Server Heartbeat 2
server heartbeat 3: Server Heartbeat 3
server heartbeat 4: Server Heartbeat 4
Sleep time: 238
loader loop counter: 0
bad port tests: 0 last: none yet
failed file updates: 0 last: none yet
tunnels killed: 3 last: 2022-Jun-05 16:30:05 Sun
emails sent: 0 last: none yet
email addresses: john@larsen-family.us
loader started: YYYY-MMM-DD HH:MM:SS DOW
debug flags: 0x0
tunnel stats
------ tunnel (pid: 9535 ) ------------ (v3.26 2006/04/15) ----- State: enabled UP
Time: 2021-Jul-06 20:31:15 Tue
client: napoleon
server: zippy
client heartbeat: Client Heartbeat
server heartbeat: Thu May 20 22:10:31 EDT 2021
Sleep time: 238
tunnel loop counter: 2
bad port tests: 0 last: none yet
emails sent: 1 last: 2021-Jul-06 20:27:13 Tue
email addresses: john@larsen-family.us
tunnel started: 2021-Jul-06 20:27:16 Tue
debug flags: 0x0
Current users, uptime, and load average
22:30:06 up 17 days, 23:08, 0 users, load average: 2.99, 2.90, 2.80
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
Current processes
UID PID PPID C STIME TTY TIME CMD
jlarsen 948 946 0 Jun16 ? 00:00:11 /usr/sbin/cron -n
jlarsen 946 1 0 Jun16 ? 00:00:00 /usr/bin/cygrunsrv
cyg_ser+ 945 1 0 Jun16 ? 00:00:00 /usr/bin/cygrunsrv
cyg_ser+ 947 945 0 Jun16 ? 00:00:00 /usr/sbin/sshd -D
jlarsen 53956 1 0 04:30 ? 00:00:00 /usr/bin/perl -w /home/jlarsen/ssh_tunnel/zippy/ssh_tunnel.pl
jlarsen 53961 53956 0 04:30 ? 00:00:00 /usr/bin/procps -edf
jlarsen 53940 948 0 04:30 ? 00:00:00 /usr/sbin/cron -n
Current netstat
Active Connections
Proto Local Address Foreign Address State
TCP 127.0.0.1:49350 napoleon:53289 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53290 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53291 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53292 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53293 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53294 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53295 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53296 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53297 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53298 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53299 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53300 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53301 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53302 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53303 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53304 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53305 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53306 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53307 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53308 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53309 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53310 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53311 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53312 CLOSE_WAIT
TCP 127.0.0.1:49350 napoleon:53313 CLOSE_WAIT
TCP 127.0.0.1:50489 napoleon:50490 ESTABLISHED
TCP 127.0.0.1:50490 napoleon:50489 ESTABLISHED
TCP 127.0.0.1:51028 napoleon:51029 ESTABLISHED
TCP 127.0.0.1:51029 napoleon:51028 ESTABLISHED
TCP 127.0.0.1:53206 napoleon:53207 ESTABLISHED
TCP 127.0.0.1:53207 napoleon:53206 ESTABLISHED
TCP 127.0.0.1:53211 napoleon:53212 ESTABLISHED
TCP 127.0.0.1:53212 napoleon:53211 ESTABLISHED
TCP 127.0.0.1:53226 napoleon:53227 ESTABLISHED
TCP 127.0.0.1:53227 napoleon:53226 ESTABLISHED
TCP 127.0.0.1:53232 napoleon:53233 ESTABLISHED
TCP 127.0.0.1:53233 napoleon:53232 ESTABLISHED
TCP 127.0.0.1:53236 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53237 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53238 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53239 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53240 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53241 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53242 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53243 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53244 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53245 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53246 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53247 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53248 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53249 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53250 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53251 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53252 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53253 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53254 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53255 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53256 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53257 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53258 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53259 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53260 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53261 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53262 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53263 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53264 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53265 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53266 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53267 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53269 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53270 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53271 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53272 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53273 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53274 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53275 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53276 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53277 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53278 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53279 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53280 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53281 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53283 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53284 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53285 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53286 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53287 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53288 napoleon:49350 TIME_WAIT
TCP 127.0.0.1:53289 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53290 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53291 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53292 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53293 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53294 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53295 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53296 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53297 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53298 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53299 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53300 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53301 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53302 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53303 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53304 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53305 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53306 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53307 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53308 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53309 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53310 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53311 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53312 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:53313 napoleon:49350 FIN_WAIT_2
TCP 127.0.0.1:54330 napoleon:54331 ESTABLISHED
TCP 127.0.0.1:54331 napoleon:54330 ESTABLISHED
TCP 127.0.0.1:56826 napoleon:56827 ESTABLISHED
TCP 127.0.0.1:56827 napoleon:56826 ESTABLISHED
TCP 127.0.0.1:57241 napoleon:57242 ESTABLISHED
TCP 127.0.0.1:57242 napoleon:57241 ESTABLISHED
TCP 127.0.0.1:57409 napoleon:57410 ESTABLISHED
TCP 127.0.0.1:57410 napoleon:57409 ESTABLISHED
TCP 127.0.0.1:57425 napoleon:57426 ESTABLISHED
TCP 127.0.0.1:57426 napoleon:57425 ESTABLISHED
TCP 127.0.0.1:57503 napoleon:57504 ESTABLISHED
TCP 127.0.0.1:57504 napoleon:57503 ESTABLISHED
TCP 127.0.0.1:58649 napoleon:58650 ESTABLISHED
TCP 127.0.0.1:58650 napoleon:58649 ESTABLISHED
TCP 127.0.0.1:58961 napoleon:58962 ESTABLISHED
TCP 127.0.0.1:58962 napoleon:58961 ESTABLISHED
TCP 127.0.0.1:59177 napoleon:59178 ESTABLISHED
TCP 127.0.0.1:59178 napoleon:59177 ESTABLISHED
TCP 127.0.0.1:59954 napoleon:59955 ESTABLISHED
TCP 127.0.0.1:59955 napoleon:59954 ESTABLISHED
TCP 127.0.0.1:60148 napoleon:60149 ESTABLISHED
TCP 127.0.0.1:60149 napoleon:60148 ESTABLISHED
TCP 127.0.0.1:60856 napoleon:60857 ESTABLISHED
TCP 127.0.0.1:60857 napoleon:60856 ESTABLISHED
TCP 127.0.0.1:60895 napoleon:60896 ESTABLISHED
TCP 127.0.0.1:60896 napoleon:60895 ESTABLISHED
TCP 127.0.0.1:62204 napoleon:62205 ESTABLISHED
TCP 127.0.0.1:62205 napoleon:62204 ESTABLISHED
TCP 127.0.0.1:62208 napoleon:62209 ESTABLISHED
TCP 127.0.0.1:62209 napoleon:62208 ESTABLISHED
TCP 127.0.0.1:62224 napoleon:62225 ESTABLISHED
TCP 127.0.0.1:62225 napoleon:62224 ESTABLISHED
TCP 127.0.0.1:62235 napoleon:62236 ESTABLISHED
TCP 127.0.0.1:62236 napoleon:62235 ESTABLISHED
TCP 127.0.0.1:63322 napoleon:63323 ESTABLISHED
TCP 127.0.0.1:63323 napoleon:63322 ESTABLISHED
TCP 127.0.0.1:65028 napoleon:65029 ESTABLISHED
TCP 127.0.0.1:65029 napoleon:65028 ESTABLISHED
TCP 127.0.0.1:65046 napoleon:65047 ESTABLISHED
TCP 127.0.0.1:65047 napoleon:65046 ESTABLISHED
TCP 127.0.0.1:65087 napoleon:65088 ESTABLISHED
TCP 127.0.0.1:65088 napoleon:65087 ESTABLISHED
TCP 127.0.0.1:65108 napoleon:65109 ESTABLISHED
TCP 127.0.0.1:65109 napoleon:65108 ESTABLISHED
TCP 127.0.0.1:65505 napoleon:65506 ESTABLISHED
TCP 127.0.0.1:65506 napoleon:65505 ESTABLISHED
TCP 192.168.0.13:50589 a23-58-116-8:https CLOSE_WAIT
TCP 192.168.0.13:51265 ec2-44-195-156-125:https ESTABLISHED
TCP 192.168.0.13:51424 ec2-52-42-134-249:https ESTABLISHED
TCP 192.168.0.13:53219 239:https TIME_WAIT
TCP 192.168.0.13:53222 ec2-34-237-46-90:https CLOSE_WAIT
TCP 192.168.0.13:53234 wordpress:https ESTABLISHED
TCP 192.168.0.13:53235 wordpress:https ESTABLISHED
TCP 192.168.0.13:53282 173-14-166-6-NewEngland:ssh TIME_WAIT
TCP 192.168.0.13:56371 162.159.135.234:https ESTABLISHED
TCP 192.168.0.13:56398 den16s08-in-f10:https ESTABLISHED
TCP 192.168.0.13:56401 den16s08-in-f10:https ESTABLISHED
TCP 192.168.0.13:56422 assets:https ESTABLISHED
TCP 192.168.0.13:56445 74.114.154.19:https ESTABLISHED
TCP 192.168.0.13:59683 52.159.126.152:https ESTABLISHED
TCP 192.168.0.13:59704 ec2-3-222-28-246:https ESTABLISHED
TCP 192.168.0.13:65474 den16s08-in-f3:https ESTABLISHED
crontab file
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.NWVI6ROpNU installed on Mon Jul 5 15:58:09 2021)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
MAILTO=john@larsen-family.us
#* * * * * echo "`date`: This is an email test"; echo `date` > /tmp/crontest.$LOGNAME.txt
# For now do diskusage by itself until restore of nashua files is completed
#0 21 * * * /home/jlarsen/diskusage/diskusage -n 50 -e john@larsen-family.us
## This script restores files from zippy back to napoleon
#10,40 * * * * /home/jlarsen/napoleon_restore/napoleon_restore.sh /c/napoleon_nashua
#34 22 * * * /home/jlarsen/napoleon_restore/napoleon_restore.sh /c/napoleon_nashua
# Check if the ssh_tunnel is up and running
0,10,20,30,40,50 * * * * /home/jlarsen/ssh_tunnel/zippy/ssh_tunnel.pl
# Perform the nightly backup --------------------------------------
#2 17,21 * * * /home/jlarsen/backup/backup.cron
7 21 * * * /home/jlarsen/backup/backup.cron
8 21 * * * /home/jlarsen/backup/backup.cron
#7 22 * * * /home/jlarsen/backup/backup.cron
# UPDATE LOCATE DATABASE ---------------------------------------
#02 15,18,21 * * * /home/jlarsen/bin/updatedb.cron
02 19 * * * /home/jlarsen/bin/updatedb.cron
loader.conf file
# Filename: loader.conf
# Description: This is the configuration file for the loader portion of the
# ssh_tunnel program. The contents of this file never change. This insures
# that the loader will always operate. It is important not to change the
# formatting of this file because it is read by the ssh_tunnel and processed
# using perl which is expecting things to be in certain locations.
#
# loader.conf has two sections:
# 1. Configuration information such as the names of the ssh and sshd
# hosts, the working directories on each host, and other data as needed.
# 2. The ssh host configuration for the loader program is in this file.
# That configuration should never change. It needs to be at the end
# of the file because ssh uses everything between "Host" entries as
# configuration. There is only one Host section in this file.
#
########################################################################
# The following section contains host information
# SSH_CLIENT napoleon
# SSH_CLIENT_DIR /home/jlarsen/ssh_tunnel/zippy
# SSH_SERVER zippy
# SSH_SERVER_DIR /home/tunnels/ssh_tunnel/napoleon
#
########################################################################
# The following section is the ssh config file for the loader program.
# IMPORTANT! The path on the client MUST have the SSH_SERVER name in
# it. The script uses this name is search strings and it MUST be there.
Host loader
HostName sml.dnsalias.org
Port = 22
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/zippy/id_rsa.rlarsen
tunnel.conf file
# Filename: tunnel.conf
#
# Description: This is the configuration file for the tunnel portion of the
# ssh_tunnel program. The contents of this file can be changed during program execution.
# It is important not to change the formatting of the file because it is read by the
# tunnel program and processed using awk which is expecting things to be in certain
# locations.
#
# tunnel.conf has three sections:
# 1. Configuration information such as email addresses and thresholds.
# 2. The ssh host configuration for the tunnel. This consists of two
# host definitions, tunnel and heartbeat. The tunnel is the permanent
# connection and defines port forwarding. The heartbeat uses one of
# the forwarded ports to write and copy heartbeat files between the
# ssh client and the ssh server. Changing heartbeats indicate that the
# tunnel is functioning.
# 3. The webpage configuration section as described below. This has the
# ssh host configuration for updating a webpage on a webserver.
#
################################################################################
# The following section contains configuration information
#
# The tunnel is either "enabled" or "disabled" based on the value given
# below. If disabled, then no processes are running on either the
# client or the server. A cron job on the client runs ssh_tunnel.pl periodically
# to check if tunnel.conf has changed on the server. If a change is detected
# then the new tunnel.conf file is transfered over. If the tunnel state
# becomes "enabled" then the tunnel is activated.
# TUNNEL_STATE disabled
#
# The email addresses below receive diagnostic messages. Separate
# multiple addresses with commas and no white space. The word "none"
# turns off email sending and is the default. The same email address
# is used by cron, loader, tunnel, and pulse.
# EMAIL_ADDRESS john@larsen-family.us
#
# The threshold defined below is how many port failures are required
# before an email is sent. Set this to "none" to turn this off. If
# the ssh_server's ssh port isn't accessible then the loader kills
# the tunnel. This periodic email serves as a reminder that the tunnel
# is down.
# EMAIL_THRESHOLD 50
#
# The loader, tunnel, and pulse programs all have the same sleep value.
# The sleep time can be changed here. It should be in the range of
# 60 to 3600 seconds. Shorter sleep times increase system loading.
# The sleep time must be less than half the crontab time for ssh_tunnel.pl.
# SLEEP_TIME 238
#
#
################################################################################
# The following section is the ssh config file for the tunnel program.
# IMPORTANT! The path on the client MUST have the SSH_SERVER name in
# it. The script uses this name is search strings and it MUST be there.
#
# Important info about port numbers used in the "ssh_tunnel" and "heartbeat"
# sections below. The "heartbeat" Port number must be the same as the last
# two port numbers in the "ssh_tunnel" section. In this example 50022 is
# used. The port number used must be unused by anything else on the two
# machines. If you have multiple tunnels connecting to a single ssh_server
# be sure to use different port numbers.
#
# Another requirement is that the ssh_server must be configured to
# allow remote port forwarding. This is normally off by default in the
# ssh_server's sshd_config file. Set "GatewayPorts yes" in sshd_config.
#
Host tunnel
HostName sml.dnsalias.org
Port = 22
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/zippy/id_rsa.rlarsen
Compression = yes
RemoteForward = 13999 localhost:5900
RemoteForward = 13222 localhost:22
RemoteForward = 13022 localhost:22
LocalForward = 13022 localhost:22
################################################################################
Host heartbeat
HostName localhost
Port = 13022
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/zippy/id_rsa.rlarsen
################################################################################
Host pulse
HostName localhost
Port = 13022
UserKnownHostsFile = /home/tunnels/ssh_tunnel/napoleon/known_hosts
User = jlarsen
IdentityFile = /home/tunnels/ssh_tunnel/napoleon/id_rsa.rlarsen
################################################################################
# Note: This section must be last in tunnel.conf.
# A webpage will be copied to the directory set by WEBSERVER_DIR below. The
# default value "none" turns this feature off. Change "none" to the directory
# path where the webpage should be copied. The "webpage" host information
# below must also be changed to valid values to make this work.
# WEBSERVER_DIR /home/tunnels/ssh_tunnel_html
#
# The filename of the webpage copied to the webserver defaults to
# SSH_CLIENT_to_SSH_SERVER.html. To choose a different name replace the
# word "default" on the line below with the desired name.
# WEBPAGE_FILENAME default
#
# A copy of the webpage can be put in the directory define by WEBPAGE_LOCAL_DIR.
# Change "none" to a valid directory to enable this feature.
# WEBPAGE_LOCAL_DIR none
#
# The webpage update rate defaults to once per sleep time. Change the value below
# to select a different rate. The update rate is the number of times through the
# loader while loop before updating the webpage. This value is ignored when events
# occur such as the tunnel going down or during startup. The webpage is updated
# for all non normal runtime events.
# WEBPAGE_UPDATE_RATE 1
#
Host webpage
HostName sml.dnsalias.org
Port = 22
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/zippy/id_rsa.rlarsen