ssh_tunnel statistics: napoleon to zippy

Time: 2017-Mar-20 15:11:20 Mon

Current tunnel state: enabled          Current tunnel condition: DOWN

loader stats

------ loader (pid: 2576 ) ------------ (v3.26 2006/04/15) ----- State: enabled DOWN
Time:                2017-Mar-20 15:11:19 Mon
client:              napoleon
server:              zippy
client heartbeat:    Mon Mar 20 15:01:17 MDT 2017
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: 66
bad port tests:      0     last: none yet
failed file updates: 1     last: 2017-Mar-20 15:01:16 Mon
tunnels killed:      17     last: 2017-Mar-20 15:10:36 Mon
emails sent:         21     last: 2017-Mar-20 15:11:15 Mon
email addresses:     john@larsen-family.us
loader started:      2017-Mar-19 22:10:53 Sun
debug flags:         0x0

tunnel stats

------ tunnel (pid: 12508 ) ------------ (v3.26 2006/04/15) ----- State: enabled UP
Time:                2017-Mar-20 15:10:34 Mon
client:              napoleon
server:              zippy
client heartbeat:    Mon Mar 20 15:10:29 MDT 2017
server heartbeat:    Mon Mar 20 16:10:26 EST 2017
Sleep time:          238
tunnel loop counter: 1
bad port tests:      0     last: none yet
emails sent:         1     last: 2017-Mar-20 15:09:07 Mon
email addresses:     john@larsen-family.us
tunnel started:      2017-Mar-20 15:10:29 Mon
debug flags:         0x0

Current users, uptime, and load average

 15:11:21 up 4 days,  4:00,  0 users,  load average: 0.00, 0.00, 0.00
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT

Current processes

 15:11:22 up 4 days,  4:00,  0 users,  load average: 0.00, 0.00, 0.00
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT

Current processes


Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    192.168.1.109:57181    ec2-23-23-81-232:https  ESTABLISHED
  TCP    192.168.1.109:57220    msnbot-65-52-108-205:https  ESTABLISHED
  TCP    192.168.1.109:57238    pg-in-f188:5228        ESTABLISHED
  TCP    192.168.1.109:57247    162.125.34.129:https   ESTABLISHED
  TCP    192.168.1.109:57335    ec2-34-197-215-225:https  ESTABLISHED
  TCP    192.168.1.109:57349    t2:https               ESTABLISHED
  TCP    192.168.1.109:57366    a23-214-6-48:https     ESTABLISHED
  TCP    192.168.1.109:57392    sea15s08-in-f110:https  ESTABLISHED
  TCP    192.168.1.109:57422    r2:https               ESTABLISHED
  TCP    192.168.1.109:57518    cache:https            ESTABLISHED
  TCP    192.168.1.109:57524    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:57536    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:57649    a104-95-207-114:https  ESTABLISHED
  TCP    192.168.1.109:57652    sea15s07-in-f2:https   ESTABLISHED
  TCP    192.168.1.109:57657    a104-95-207-114:https  ESTABLISHED
  TCP    192.168.1.109:57750    a104-95-181-180:https  ESTABLISHED
  TCP    192.168.1.109:57795    a104-95-207-114:https  ESTABLISHED
  TCP    192.168.1.109:57912    sea15s08-in-f110:https  TIME_WAIT
  TCP    192.168.1.109:57915    sea15s12-in-f14:https  TIME_WAIT
  TCP    192.168.1.109:57918    sframes:https          ESTABLISHED
  TCP    192.168.1.109:57948    a104-95-181-180:https  ESTABLISHED
  TCP    192.168.1.109:58004    a23-44-160-143:https   ESTABLISHED
  TCP    192.168.1.109:58005    a23-44-160-143:https   ESTABLISHED
  TCP    192.168.1.109:58008    8.39.37.45:https       ESTABLISHED
  TCP    192.168.1.109:58010    a23-199-227-67:https   ESTABLISHED
  TCP    192.168.1.109:58043    sea15s02-in-f161:https  TIME_WAIT
  TCP    192.168.1.109:58195    185.86.137.32:https    ESTABLISHED
  TCP    192.168.1.109:58197    151.101.0.166:https    ESTABLISHED
  TCP    192.168.1.109:58200    65.200.23.32:https     ESTABLISHED
  TCP    192.168.1.109:58240    146.20.133.136:https   TIME_WAIT
  TCP    192.168.1.109:58243    146.20.129.173:https   TIME_WAIT
  TCP    192.168.1.109:58255    a104-95-196-162:https  ESTABLISHED
  TCP    192.168.1.109:58257    57:https               ESTABLISHED
  TCP    192.168.1.109:58272    a104-95-206-180:https  ESTABLISHED
  TCP    192.168.1.109:58315    a104-95-220-62:https   ESTABLISHED
  TCP    192.168.1.109:58322    a104-95-220-62:https   ESTABLISHED
  TCP    192.168.1.109:58701    ec2-54-174-51-58:https  TIME_WAIT
  TCP    192.168.1.109:58709    sframes:https          TIME_WAIT
  TCP    192.168.1.109:58716    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:58718    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:58726    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:58737    12.129.210.52:https    TIME_WAIT
  TCP    192.168.1.109:58739    12.129.210.52:https    TIME_WAIT
  TCP    192.168.1.109:58744    ec2-52-52-197-30:https  TIME_WAIT
  TCP    192.168.1.109:58746    ec2-54-172-6-233:https  TIME_WAIT
  TCP    192.168.1.109:58748    66.6.33.34:https       ESTABLISHED
  TCP    192.168.1.109:58754    ec2-34-197-231-207:https  TIME_WAIT
  TCP    192.168.1.109:58766    sframes:https          TIME_WAIT
  TCP    192.168.1.109:58767    12.129.210.52:https    TIME_WAIT
  TCP    192.168.1.109:58768    12.129.210.52:https    TIME_WAIT
  TCP    192.168.1.109:58770    198.8.71.205:https     TIME_WAIT
  TCP    192.168.1.109:58771    198.8.71.205:https     TIME_WAIT
  TCP    192.168.1.109:58782    198.54.12.127:https    TIME_WAIT
  TCP    192.168.1.109:58783    198.54.12.127:https    TIME_WAIT
  TCP    192.168.1.109:58785    198.54.233.82:https    TIME_WAIT
  TCP    192.168.1.109:58786    198.54.233.82:https    TIME_WAIT
  TCP    192.168.1.109:58787    174:https              TIME_WAIT
  TCP    192.168.1.109:58788    174:https              TIME_WAIT
  TCP    192.168.1.109:58789    23:https               ESTABLISHED
  TCP    192.168.1.109:58793    ec2-52-35-123-185:https  TIME_WAIT
  TCP    192.168.1.109:58795    2b:https               TIME_WAIT
  TCP    192.168.1.109:58797    2b:https               TIME_WAIT
  TCP    192.168.1.109:58800    162.248.16.24:https    TIME_WAIT
  TCP    192.168.1.109:58807    198.8.71.239:https     TIME_WAIT
  TCP    192.168.1.109:58810    ec2-52-41-153-238:https  TIME_WAIT
  TCP    192.168.1.109:58811    146.20.129.157:https   ESTABLISHED
  TCP    192.168.1.109:58812    ec2-54-68-250-99:https  ESTABLISHED
  TCP    192.168.1.109:58813    ec2-54-68-250-99:https  ESTABLISHED
  TCP    192.168.1.109:58814    ec2-54-68-250-99:https  ESTABLISHED
  TCP    192.168.1.109:58815    ec2-54-68-250-99:https  ESTABLISHED
  TCP    192.168.1.109:58816    ec2-54-68-250-99:https  ESTABLISHED
  TCP    192.168.1.109:58817    ec2-54-68-250-99:https  ESTABLISHED
  TCP    192.168.1.109:58821    185.86.139.59:https    ESTABLISHED
  TCP    192.168.1.109:58823    146.20.132.39:https    ESTABLISHED
  TCP    192.168.1.109:58824    146.20.132.76:https    ESTABLISHED
  TCP    192.168.1.109:58826    ec2-52-9-39-84:https   TIME_WAIT
  TCP    192.168.1.109:58827    ec2-52-9-39-84:https   TIME_WAIT
  TCP    192.168.1.109:58828    server-52-84-24-160:https  ESTABLISHED
  TCP    192.168.1.109:58829    23:https               TIME_WAIT
  TCP    192.168.1.109:58830    23:https               ESTABLISHED
  TCP    192.168.1.109:58835    server-54-230-87-159:https  ESTABLISHED
  TCP    192.168.1.109:58836    192.229.211.40:https   ESTABLISHED
  TCP    192.168.1.109:58837    192.229.211.40:https   ESTABLISHED
  TCP    192.168.1.109:58839    207.200.74.133:https   TIME_WAIT
  TCP    192.168.1.109:58840    207.200.74.133:https   TIME_WAIT
  TCP    192.168.1.109:58841    ec2-54-153-14-107:https  TIME_WAIT
  TCP    192.168.1.109:58842    213-155-156-182:https  TIME_WAIT
  TCP    192.168.1.109:58843    ec2-52-26-129-228:https  TIME_WAIT
  TCP    192.168.1.109:58844    ec2-52-26-129-228:https  TIME_WAIT
  TCP    192.168.1.109:58845    ec2-52-26-129-228:https  TIME_WAIT
  TCP    192.168.1.109:58846    ec2-52-26-129-228:https  TIME_WAIT
  TCP    192.168.1.109:58847    ec2-52-26-129-228:https  TIME_WAIT
  TCP    192.168.1.109:58859    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:58861    ec2-54-174-51-58:https  TIME_WAIT
  TCP    192.168.1.109:58868    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:58874    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:58876    sframes:https          TIME_WAIT
  TCP    192.168.1.109:58880    ads5-us-west:https     TIME_WAIT
  TCP    192.168.1.109:58881    ads5-us-west:https     TIME_WAIT
  TCP    192.168.1.109:58887    185.86.139.59:https    TIME_WAIT
  TCP    192.168.1.109:58888    185.86.139.59:https    TIME_WAIT
  TCP    192.168.1.109:58898    beacon:https           ESTABLISHED
  TCP    192.168.1.109:58899    gd:https               ESTABLISHED
  TCP    192.168.1.109:58900    pprd1-rtr2:https       ESTABLISHED
  TCP    192.168.1.109:58901    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:58902    beacon:https           ESTABLISHED
  TCP    192.168.1.109:58903    e2:https               ESTABLISHED
  TCP    192.168.1.109:58909    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:58911    173-14-166-5-NewEngland:ms-v-worlds  TIME_WAIT
  TCP    192.168.1.109:58915    server-52-84-19-215:https  ESTABLISHED
  TCP    192.168.1.109:58920    server-52-84-50-222:https  ESTABLISHED
  TCP    192.168.1.109:58921    server-52-84-20-172:https  ESTABLISHED
  TCP    192.168.1.109:58922    server-52-84-24-212:https  ESTABLISHED
  TCP    192.168.1.109:58923    server-52-84-24-212:https  ESTABLISHED
  TCP    192.168.1.109:58924    ec2-52-52-224-195:https  ESTABLISHED
  TCP    192.168.1.109:58925    swbdlv01:https         ESTABLISHED
  TCP    192.168.1.109:58926    ec2-52-5-176-216:https  ESTABLISHED
  TCP    192.168.1.109:58927    ec2-52-91-145-213:https  ESTABLISHED
  TCP    192.168.1.109:58928    ec2-52-91-145-213:https  ESTABLISHED
  TCP    192.168.1.109:58935    sea15s01-in-f14:https  ESTABLISHED
  TCP    192.168.1.109:58936    cache:https            ESTABLISHED
  TCP    192.168.1.109:58940    ec2-54-174-51-58:https  TIME_WAIT
  TCP    192.168.1.109:58942    sframes:https          TIME_WAIT
  TCP    192.168.1.109:58943    beacon:https           TIME_WAIT
  TCP    192.168.1.109:58944    beacon:https           TIME_WAIT
  TCP    192.168.1.109:58946    12.129.210.53:https    TIME_WAIT
  TCP    192.168.1.109:58947    12.129.210.53:https    TIME_WAIT
  TCP    192.168.1.109:58954    ads5-us-west:https     TIME_WAIT
  TCP    192.168.1.109:58955    ads5-us-west:https     TIME_WAIT
  TCP    192.168.1.109:58956    ads5-us-west:https     TIME_WAIT
  TCP    192.168.1.109:58959    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:58960    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:58961    185.86.138.79:https    TIME_WAIT
  TCP    192.168.1.109:58962    185.86.138.79:https    TIME_WAIT
  TCP    192.168.1.109:58967    ec2-184-169-147-36:https  ESTABLISHED
  TCP    192.168.1.109:58972    r-199-59-148-29:https  ESTABLISHED
  TCP    192.168.1.109:58978    t2:https               ESTABLISHED
  TCP    192.168.1.109:58979    t2:https               ESTABLISHED
  TCP    192.168.1.109:58980    t2:https               ESTABLISHED
  TCP    192.168.1.109:58981    t2:https               ESTABLISHED
  TCP    192.168.1.109:58982    t2:https               ESTABLISHED
  TCP    192.168.1.109:58983    t2:https               ESTABLISHED
  TCP    192.168.1.109:58984    66.6.33.34:https       ESTABLISHED
  TCP    192.168.1.109:58985    66.6.33.34:https       ESTABLISHED
  TCP    192.168.1.109:58986    t2:https               ESTABLISHED
  TCP    192.168.1.109:58988    66.6.33.149:https      ESTABLISHED
  TCP    192.168.1.109:58989    66.6.33.149:https      LAST_ACK
  TCP    192.168.1.109:58991    66.6.33.149:https      LAST_ACK
  TCP    192.168.1.109:58992    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:58995    t2:https               ESTABLISHED
  TCP    192.168.1.109:58996    t2:https               ESTABLISHED
  TCP    192.168.1.109:59002    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59008    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59010    173-14-166-5-NewEngland:ms-v-worlds  TIME_WAIT
  TCP    192.168.1.109:59012    173-14-166-5-NewEngland:ms-v-worlds  TIME_WAIT
  TCP    192.168.1.109:59015    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59018    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59021    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59024    sframes:https          ESTABLISHED
  TCP    192.168.1.109:59025    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59027    12.129.210.53:https    ESTABLISHED
  TCP    192.168.1.109:59028    12.129.210.53:https    ESTABLISHED
  TCP    192.168.1.109:59029    l3dsr-cserv-um-20:https  ESTABLISHED
  TCP    192.168.1.109:59030    l3dsr-cserv-um-20:https  ESTABLISHED
  TCP    192.168.1.109:59031    l3dsr-cserv-um-20:https  ESTABLISHED
  TCP    192.168.1.109:59032    pr-bh:https            ESTABLISHED
  TCP    192.168.1.109:59033    pr-bh:https            ESTABLISHED
  TCP    192.168.1.109:59034    pr-bh:https            ESTABLISHED
  TCP    192.168.1.109:59035    sa:https               ESTABLISHED
  TCP    192.168.1.109:59036    sa:https               ESTABLISHED
  TCP    192.168.1.109:59037    beacon:https           ESTABLISHED
  TCP    192.168.1.109:59038    a104-95-219-158:https  ESTABLISHED
  TCP    192.168.1.109:59039    a104-95-219-158:https  ESTABLISHED
  TCP    192.168.1.109:59040    a104-95-219-158:https  ESTABLISHED
  TCP    192.168.1.109:59041    a104-95-204-65:https   ESTABLISHED
  TCP    192.168.1.109:59042    a104-95-204-65:https   ESTABLISHED
  TCP    192.168.1.109:59043    a104-95-204-65:https   ESTABLISHED
  TCP    192.168.1.109:59044    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59045    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59046    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59047    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59048    a104-95-181-180:https  ESTABLISHED
  TCP    192.168.1.109:59049    a104-95-181-180:https  ESTABLISHED
  TCP    192.168.1.109:59051    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59052    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59054    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59057    ec2-50-112-255-244:https  TIME_WAIT
  TCP    192.168.1.109:59058    ec2-50-112-255-244:https  CLOSE_WAIT
  TCP    192.168.1.109:59059    ec2-50-112-255-244:https  CLOSE_WAIT
  TCP    192.168.1.109:59060    151.101.0.175:https    ESTABLISHED
  TCP    192.168.1.109:59061    151.101.0.175:https    ESTABLISHED
  TCP    192.168.1.109:59062    151.101.0.175:https    ESTABLISHED
  TCP    192.168.1.109:59063    sea15s07-in-f2:https   ESTABLISHED
  TCP    192.168.1.109:59064    sea15s12-in-f2:https   ESTABLISHED
  TCP    192.168.1.109:59065    sea15s08-in-f6:https   ESTABLISHED
  TCP    192.168.1.109:59066    lax28s01-in-f166:https  ESTABLISHED
  TCP    192.168.1.109:59067    63.251.109.81:https    CLOSE_WAIT
  TCP    192.168.1.109:59068    a104-95-110-85:https   ESTABLISHED
  TCP    192.168.1.109:59069    a104-95-110-85:https   ESTABLISHED
  TCP    192.168.1.109:59071    lax28s01-in-f166:https  ESTABLISHED
  TCP    192.168.1.109:59072    t2:https               ESTABLISHED
  TCP    192.168.1.109:59073    sea15s01-in-f138:https  ESTABLISHED
  TCP    192.168.1.109:59074    sea15s12-in-f2:https   ESTABLISHED
  TCP    192.168.1.109:59075    104.19.194.102:https   ESTABLISHED
  TCP    192.168.1.109:59076    sea15s02-in-f14:https  ESTABLISHED
  TCP    192.168.1.109:59077    cache:https            ESTABLISHED
  TCP    192.168.1.109:59078    a104-95-215-242:https  ESTABLISHED
  TCP    192.168.1.109:59079    a104-95-215-242:https  ESTABLISHED
  TCP    192.168.1.109:59080    cache:https            ESTABLISHED
  TCP    192.168.1.109:59083    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59085    t2:https               ESTABLISHED
  TCP    192.168.1.109:59086    t2:https               ESTABLISHED
  TCP    192.168.1.109:59088    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59091    ec2-54-174-51-58:https  ESTABLISHED
  TCP    [::1]:59494            napoleon:13022         TIME_WAIT
  TCP    [::1]:59498            napoleon:ssh           TIME_WAIT
  TCP    [::1]:59503            napoleon:13022         TIME_WAIT
  TCP    [::1]:59506            napoleon:ssh           TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:59133 napoleon:44529 SYN_SENT TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57649 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57912 sea15s08-in-f110:https TIME_WAIT TCP 192.168.1.109:57915 sea15s12-in-f14:https TIME_WAIT TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58043 sea15s02-in-f161:https TIME_WAIT TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58257 57:https ESTABLISHED TCP 192.168.1.109:58315 a104-95-220-62:https ESTABLISHED TCP 192.168.1.109:58322 a104-95-220-62:https ESTABLISHED TCP 192.168.1.109:58701 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58744 ec2-52-52-197-30:https TIME_WAIT TCP 192.168.1.109:58746 ec2-54-172-6-233:https TIME_WAIT TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58754 ec2-34-197-231-207:https TIME_WAIT TCP 192.168.1.109:58766 sframes:https TIME_WAIT TCP 192.168.1.109:58767 12.129.210.52:https TIME_WAIT TCP 192.168.1.109:58768 12.129.210.52:https TIME_WAIT TCP 192.168.1.109:58770 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:58771 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:58782 198.54.12.127:https TIME_WAIT TCP 192.168.1.109:58783 198.54.12.127:https TIME_WAIT TCP 192.168.1.109:58785 198.54.233.82:https TIME_WAIT TCP 192.168.1.109:58786 198.54.233.82:https TIME_WAIT TCP 192.168.1.109:58787 174:https TIME_WAIT TCP 192.168.1.109:58788 174:https TIME_WAIT TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58793 ec2-52-35-123-185:https TIME_WAIT TCP 192.168.1.109:58795 2b:https TIME_WAIT TCP 192.168.1.109:58797 2b:https TIME_WAIT TCP 192.168.1.109:58807 198.8.71.239:https TIME_WAIT TCP 192.168.1.109:58810 ec2-52-41-153-238:https TIME_WAIT TCP 192.168.1.109:58811 146.20.129.157:https ESTABLISHED TCP 192.168.1.109:58812 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58813 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58814 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58815 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58816 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58817 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https ESTABLISHED TCP 192.168.1.109:58824 146.20.132.76:https ESTABLISHED TCP 192.168.1.109:58826 ec2-52-9-39-84:https TIME_WAIT TCP 192.168.1.109:58827 ec2-52-9-39-84:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https ESTABLISHED TCP 192.168.1.109:58829 23:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https ESTABLISHED TCP 192.168.1.109:58836 192.229.211.40:https ESTABLISHED TCP 192.168.1.109:58837 192.229.211.40:https ESTABLISHED TCP 192.168.1.109:58839 207.200.74.133:https TIME_WAIT TCP 192.168.1.109:58840 207.200.74.133:https TIME_WAIT TCP 192.168.1.109:58841 ec2-54-153-14-107:https TIME_WAIT TCP 192.168.1.109:58842 213-155-156-182:https TIME_WAIT TCP 192.168.1.109:58843 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58844 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58845 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58846 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58847 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58859 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58861 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58868 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58874 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58876 sframes:https TIME_WAIT TCP 192.168.1.109:58880 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58881 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58887 185.86.139.59:https TIME_WAIT TCP 192.168.1.109:58888 185.86.139.59:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58901 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58903 e2:https ESTABLISHED TCP 192.168.1.109:58909 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58911 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https ESTABLISHED TCP 192.168.1.109:58925 swbdlv01:https ESTABLISHED TCP 192.168.1.109:58926 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:58927 ec2-52-91-145-213:https ESTABLISHED TCP 192.168.1.109:58928 ec2-52-91-145-213:https ESTABLISHED TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58940 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58942 sframes:https TIME_WAIT TCP 192.168.1.109:58943 beacon:https TIME_WAIT TCP 192.168.1.109:58944 beacon:https TIME_WAIT TCP 192.168.1.109:58946 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:58947 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:58954 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58955 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58956 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58959 mpr1:https TIME_WAIT TCP 192.168.1.109:58960 mpr1:https TIME_WAIT TCP 192.168.1.109:58961 185.86.138.79:https TIME_WAIT TCP 192.168.1.109:58962 185.86.138.79:https TIME_WAIT TCP 192.168.1.109:58967 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58978 t2:https ESTABLISHED TCP 192.168.1.109:58979 t2:https ESTABLISHED TCP 192.168.1.109:58980 t2:https ESTABLISHED TCP 192.168.1.109:58981 t2:https ESTABLISHED TCP 192.168.1.109:58982 t2:https ESTABLISHED TCP 192.168.1.109:58983 t2:https ESTABLISHED TCP 192.168.1.109:58984 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58985 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58986 t2:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:58989 66.6.33.149:https LAST_ACK TCP 192.168.1.109:58991 66.6.33.149:https LAST_ACK TCP 192.168.1.109:58992 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58995 t2:https ESTABLISHED TCP 192.168.1.109:58996 t2:https ESTABLISHED TCP 192.168.1.109:59002 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59008 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59010 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59012 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59015 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59018 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59021 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59024 sframes:https TIME_WAIT TCP 192.168.1.109:59025 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59027 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59028 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59029 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59030 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59031 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59032 pr-bh:https TIME_WAIT TCP 192.168.1.109:59033 pr-bh:https TIME_WAIT TCP 192.168.1.109:59034 pr-bh:https TIME_WAIT TCP 192.168.1.109:59036 sa:https ESTABLISHED TCP 192.168.1.109:59037 beacon:https TIME_WAIT TCP 192.168.1.109:59051 mpr1:https ESTABLISHED TCP 192.168.1.109:59052 mpr1:https ESTABLISHED TCP 192.168.1.109:59054 mpr1:https ESTABLISHED TCP 192.168.1.109:59057 ec2-50-112-255-244:https TIME_WAIT TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59072 t2:https TIME_WAIT TCP 192.168.1.109:59083 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59085 t2:https ESTABLISHED TCP 192.168.1.109:59086 t2:https ESTABLISHED TCP 192.168.1.109:59088 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59091 ec2-54-174-51-58:https ESTABLISHED TCP 192.168.1.109:59094 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59095 sframes:https ESTABLISHED TCP 192.168.1.109:59096 mpr1:https ESTABLISHED TCP 192.168.1.109:59097 mpr1:https ESTABLISHED TCP 192.168.1.109:59098 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59099 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59100 mpr1:https ESTABLISHED TCP 192.168.1.109:59101 sa:https ESTABLISHED TCP 192.168.1.109:59102 sa:https ESTABLISHED TCP 192.168.1.109:59103 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59105 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59106 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59107 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59108 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59109 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59110 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59111 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59112 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59115 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59116 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59117 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59119 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59120 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59121 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59122 pr:https ESTABLISHED TCP 192.168.1.109:59123 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59124 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59125 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59126 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59127 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59128 72.5.64.63:https ESTABLISHED TCP 192.168.1.109:59130 198.54.233.82:https ESTABLISHED TCP 192.168.1.109:59131 ec2-184-73-198-200:https ESTABLISHED TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59134 173-14-166-5-NewEngland:ms-v-worlds ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https ESTABLISHED TCP 192.168.1.109:59137 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:59138 server-52-84-24-212:https ESTABLISHED TCP [::1]:59494 napoleon:13022 TIME_WAIT TCP [::1]:59498 napoleon:ssh TIME_WAIT TCP [::1]:59503 napoleon:13022 TIME_WAIT TCP [::1]:59506 napoleon:ssh TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58257 57:https ESTABLISHED TCP 192.168.1.109:58744 ec2-52-52-197-30:https TIME_WAIT TCP 192.168.1.109:58746 ec2-54-172-6-233:https TIME_WAIT TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58793 ec2-52-35-123-185:https TIME_WAIT TCP 192.168.1.109:58810 ec2-52-41-153-238:https TIME_WAIT TCP 192.168.1.109:58811 146.20.129.157:https ESTABLISHED TCP 192.168.1.109:58812 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58813 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58814 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58815 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58816 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58817 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https ESTABLISHED TCP 192.168.1.109:58824 146.20.132.76:https ESTABLISHED TCP 192.168.1.109:58826 ec2-52-9-39-84:https TIME_WAIT TCP 192.168.1.109:58827 ec2-52-9-39-84:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https ESTABLISHED TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https ESTABLISHED TCP 192.168.1.109:58836 192.229.211.40:https ESTABLISHED TCP 192.168.1.109:58837 192.229.211.40:https ESTABLISHED TCP 192.168.1.109:58841 ec2-54-153-14-107:https TIME_WAIT TCP 192.168.1.109:58843 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58844 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58845 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58846 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58847 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58861 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58876 sframes:https TIME_WAIT TCP 192.168.1.109:58880 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58881 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58887 185.86.139.59:https TIME_WAIT TCP 192.168.1.109:58888 185.86.139.59:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58903 e2:https ESTABLISHED TCP 192.168.1.109:58909 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58911 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https ESTABLISHED TCP 192.168.1.109:58925 swbdlv01:https ESTABLISHED TCP 192.168.1.109:58926 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:58927 ec2-52-91-145-213:https ESTABLISHED TCP 192.168.1.109:58928 ec2-52-91-145-213:https ESTABLISHED TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58940 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58942 sframes:https TIME_WAIT TCP 192.168.1.109:58943 beacon:https TIME_WAIT TCP 192.168.1.109:58944 beacon:https TIME_WAIT TCP 192.168.1.109:58946 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:58947 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:58954 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58955 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58956 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58959 mpr1:https TIME_WAIT TCP 192.168.1.109:58960 mpr1:https TIME_WAIT TCP 192.168.1.109:58961 185.86.138.79:https TIME_WAIT TCP 192.168.1.109:58962 185.86.138.79:https TIME_WAIT TCP 192.168.1.109:58967 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58978 t2:https ESTABLISHED TCP 192.168.1.109:58979 t2:https ESTABLISHED TCP 192.168.1.109:58980 t2:https ESTABLISHED TCP 192.168.1.109:58981 t2:https ESTABLISHED TCP 192.168.1.109:58982 t2:https ESTABLISHED TCP 192.168.1.109:58983 t2:https ESTABLISHED TCP 192.168.1.109:58986 t2:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:58992 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58995 t2:https ESTABLISHED TCP 192.168.1.109:58996 t2:https ESTABLISHED TCP 192.168.1.109:59002 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59008 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59010 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59012 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59015 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59018 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59021 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59024 sframes:https TIME_WAIT TCP 192.168.1.109:59025 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59027 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59028 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59029 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59030 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59031 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59032 pr-bh:https TIME_WAIT TCP 192.168.1.109:59033 pr-bh:https TIME_WAIT TCP 192.168.1.109:59034 pr-bh:https TIME_WAIT TCP 192.168.1.109:59036 sa:https ESTABLISHED TCP 192.168.1.109:59037 beacon:https TIME_WAIT TCP 192.168.1.109:59052 mpr1:https ESTABLISHED TCP 192.168.1.109:59057 ec2-50-112-255-244:https TIME_WAIT TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59072 t2:https TIME_WAIT TCP 192.168.1.109:59083 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59085 t2:https ESTABLISHED TCP 192.168.1.109:59088 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59091 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59094 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59095 sframes:https TIME_WAIT TCP 192.168.1.109:59096 mpr1:https TIME_WAIT TCP 192.168.1.109:59097 mpr1:https TIME_WAIT TCP 192.168.1.109:59098 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59099 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59100 mpr1:https TIME_WAIT TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59120 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59121 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59127 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59128 72.5.64.63:https ESTABLISHED TCP 192.168.1.109:59131 ec2-184-73-198-200:https TIME_WAIT TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https ESTABLISHED TCP 192.168.1.109:59137 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59138 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59140 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59141 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59144 pr:https TIME_WAIT TCP 192.168.1.109:59145 pr:https TIME_WAIT TCP 192.168.1.109:59148 69.172.216.55:https ESTABLISHED TCP 192.168.1.109:59149 beacon:https TIME_WAIT TCP 192.168.1.109:59150 ec2-50-19-249-196:https ESTABLISHED TCP 192.168.1.109:59151 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59152 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59154 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59155 69.172.216.55:https TIME_WAIT TCP 192.168.1.109:59157 ec2-50-19-249-196:https TIME_WAIT TCP 192.168.1.109:59158 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59159 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59161 rack01:https ESTABLISHED TCP 192.168.1.109:59163 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59168 sframes:https TIME_WAIT TCP 192.168.1.109:59171 rack01:https TIME_WAIT TCP 192.168.1.109:59172 rack01:https TIME_WAIT TCP 192.168.1.109:59173 rack01:https TIME_WAIT TCP 192.168.1.109:59174 rack01:https TIME_WAIT TCP 192.168.1.109:59175 rack01:https TIME_WAIT TCP 192.168.1.109:59176 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59177 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59183 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59184 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59191 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59192 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59193 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59196 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:59200 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59201 a104-95-207-114:https TIME_WAIT TCP 192.168.1.109:59202 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:59211 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59214 sframes:https TIME_WAIT TCP 192.168.1.109:59215 beacon:https TIME_WAIT TCP 192.168.1.109:59216 beacon:https TIME_WAIT TCP 192.168.1.109:59217 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59218 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59219 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59220 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59221 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59222 pr:https TIME_WAIT TCP 192.168.1.109:59223 pr:https TIME_WAIT TCP 192.168.1.109:59224 pr:https TIME_WAIT TCP 192.168.1.109:59232 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59233 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59234 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59235 server-52-84-24-137:https TIME_WAIT TCP 192.168.1.109:59239 mpr1:https ESTABLISHED TCP 192.168.1.109:59247 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59248 ec2-54-174-51-58:https ESTABLISHED TCP 192.168.1.109:59250 sframes:https ESTABLISHED TCP 192.168.1.109:59251 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59252 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59253 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59254 mpr1:https ESTABLISHED TCP 192.168.1.109:59255 mpr1:https ESTABLISHED TCP 192.168.1.109:59256 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59257 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59258 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59259 beacon:https ESTABLISHED TCP 192.168.1.109:59260 mpr1:https ESTABLISHED TCP 192.168.1.109:59261 mpr1:https ESTABLISHED TCP 192.168.1.109:59262 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59263 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59264 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59265 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59266 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59267 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59268 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59269 sa:https ESTABLISHED TCP 192.168.1.109:59270 sa:https ESTABLISHED TCP 192.168.1.109:59271 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59272 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59273 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59274 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59275 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59276 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59277 198.8.71.239:https ESTABLISHED TCP [::1]:59494 napoleon:13022 TIME_WAIT TCP [::1]:59498 napoleon:ssh TIME_WAIT TCP [::1]:59503 napoleon:13022 TIME_WAIT TCP [::1]:59506 napoleon:ssh TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:59084 napoleon:44529 SYN_SENT TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57649 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57912 sea15s08-in-f110:https TIME_WAIT TCP 192.168.1.109:57915 sea15s12-in-f14:https TIME_WAIT TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58010 a23-199-227-67:https ESTABLISHED TCP 192.168.1.109:58043 sea15s02-in-f161:https TIME_WAIT TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58240 146.20.133.136:https TIME_WAIT TCP 192.168.1.109:58243 146.20.129.173:https TIME_WAIT TCP 192.168.1.109:58255 a104-95-196-162:https ESTABLISHED TCP 192.168.1.109:58257 57:https ESTABLISHED TCP 192.168.1.109:58272 a104-95-206-180:https ESTABLISHED TCP 192.168.1.109:58315 a104-95-220-62:https ESTABLISHED TCP 192.168.1.109:58322 a104-95-220-62:https ESTABLISHED TCP 192.168.1.109:58701 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58709 sframes:https TIME_WAIT TCP 192.168.1.109:58716 mpr1:https TIME_WAIT TCP 192.168.1.109:58718 mpr1:https TIME_WAIT TCP 192.168.1.109:58726 mpr1:https TIME_WAIT TCP 192.168.1.109:58737 12.129.210.52:https TIME_WAIT TCP 192.168.1.109:58739 12.129.210.52:https TIME_WAIT TCP 192.168.1.109:58744 ec2-52-52-197-30:https TIME_WAIT TCP 192.168.1.109:58746 ec2-54-172-6-233:https TIME_WAIT TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58754 ec2-34-197-231-207:https TIME_WAIT TCP 192.168.1.109:58761 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58766 sframes:https TIME_WAIT TCP 192.168.1.109:58767 12.129.210.52:https TIME_WAIT TCP 192.168.1.109:58768 12.129.210.52:https TIME_WAIT TCP 192.168.1.109:58770 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:58771 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:58782 198.54.12.127:https TIME_WAIT TCP 192.168.1.109:58783 198.54.12.127:https TIME_WAIT TCP 192.168.1.109:58785 198.54.233.82:https TIME_WAIT TCP 192.168.1.109:58786 198.54.233.82:https TIME_WAIT TCP 192.168.1.109:58787 174:https TIME_WAIT TCP 192.168.1.109:58788 174:https TIME_WAIT TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58793 ec2-52-35-123-185:https TIME_WAIT TCP 192.168.1.109:58795 2b:https TIME_WAIT TCP 192.168.1.109:58797 2b:https TIME_WAIT TCP 192.168.1.109:58800 162.248.16.24:https TIME_WAIT TCP 192.168.1.109:58807 198.8.71.239:https TIME_WAIT TCP 192.168.1.109:58810 ec2-52-41-153-238:https TIME_WAIT TCP 192.168.1.109:58811 146.20.129.157:https ESTABLISHED TCP 192.168.1.109:58812 ec2-54-68-250-99:https ESTABLISHED TCP 192.168.1.109:58813 ec2-54-68-250-99:https ESTABLISHED TCP 192.168.1.109:58814 ec2-54-68-250-99:https ESTABLISHED TCP 192.168.1.109:58815 ec2-54-68-250-99:https ESTABLISHED TCP 192.168.1.109:58816 ec2-54-68-250-99:https ESTABLISHED TCP 192.168.1.109:58817 ec2-54-68-250-99:https ESTABLISHED TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https ESTABLISHED TCP 192.168.1.109:58824 146.20.132.76:https ESTABLISHED TCP 192.168.1.109:58826 ec2-52-9-39-84:https TIME_WAIT TCP 192.168.1.109:58827 ec2-52-9-39-84:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https ESTABLISHED TCP 192.168.1.109:58829 23:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https ESTABLISHED TCP 192.168.1.109:58836 192.229.211.40:https ESTABLISHED TCP 192.168.1.109:58837 192.229.211.40:https ESTABLISHED TCP 192.168.1.109:58839 207.200.74.133:https TIME_WAIT TCP 192.168.1.109:58840 207.200.74.133:https TIME_WAIT TCP 192.168.1.109:58841 ec2-54-153-14-107:https TIME_WAIT TCP 192.168.1.109:58842 213-155-156-182:https TIME_WAIT TCP 192.168.1.109:58843 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58844 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58845 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58846 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58847 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58859 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58861 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58868 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58874 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58876 sframes:https TIME_WAIT TCP 192.168.1.109:58880 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58881 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58887 185.86.139.59:https TIME_WAIT TCP 192.168.1.109:58888 185.86.139.59:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58901 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58903 e2:https ESTABLISHED TCP 192.168.1.109:58909 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58911 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https ESTABLISHED TCP 192.168.1.109:58925 swbdlv01:https ESTABLISHED TCP 192.168.1.109:58926 ec2-52-5-176-216:https ESTABLISHED TCP 192.168.1.109:58927 ec2-52-91-145-213:https ESTABLISHED TCP 192.168.1.109:58928 ec2-52-91-145-213:https ESTABLISHED TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58940 ec2-54-174-51-58:https ESTABLISHED TCP 192.168.1.109:58942 sframes:https TIME_WAIT TCP 192.168.1.109:58943 beacon:https TIME_WAIT TCP 192.168.1.109:58944 beacon:https TIME_WAIT TCP 192.168.1.109:58946 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:58947 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:58954 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58955 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58956 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58959 mpr1:https TIME_WAIT TCP 192.168.1.109:58960 mpr1:https TIME_WAIT TCP 192.168.1.109:58961 185.86.138.79:https TIME_WAIT TCP 192.168.1.109:58962 185.86.138.79:https TIME_WAIT TCP 192.168.1.109:58967 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58978 t2:https ESTABLISHED TCP 192.168.1.109:58979 t2:https ESTABLISHED TCP 192.168.1.109:58980 t2:https ESTABLISHED TCP 192.168.1.109:58981 t2:https ESTABLISHED TCP 192.168.1.109:58982 t2:https ESTABLISHED TCP 192.168.1.109:58983 t2:https ESTABLISHED TCP 192.168.1.109:58984 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58985 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58986 t2:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:58989 66.6.33.149:https LAST_ACK TCP 192.168.1.109:58991 66.6.33.149:https LAST_ACK TCP 192.168.1.109:58992 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58995 t2:https ESTABLISHED TCP 192.168.1.109:58996 t2:https ESTABLISHED TCP 192.168.1.109:59002 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59008 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59010 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59012 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59015 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59018 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59021 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59024 sframes:https ESTABLISHED TCP 192.168.1.109:59025 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59027 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59028 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59029 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59030 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59031 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59032 pr-bh:https ESTABLISHED TCP 192.168.1.109:59033 pr-bh:https ESTABLISHED TCP 192.168.1.109:59034 pr-bh:https ESTABLISHED TCP 192.168.1.109:59035 sa:https ESTABLISHED TCP 192.168.1.109:59036 sa:https ESTABLISHED TCP 192.168.1.109:59037 beacon:https ESTABLISHED TCP 192.168.1.109:59038 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59039 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59040 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59041 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59042 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59043 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59044 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59045 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59046 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59047 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59048 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59049 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59050 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59051 mpr1:https ESTABLISHED TCP 192.168.1.109:59052 mpr1:https ESTABLISHED TCP 192.168.1.109:59053 pr:https ESTABLISHED TCP 192.168.1.109:59054 mpr1:https ESTABLISHED TCP 192.168.1.109:59055 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59056 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59057 ec2-50-112-255-244:https TIME_WAIT TCP 192.168.1.109:59058 ec2-50-112-255-244:https ESTABLISHED TCP 192.168.1.109:59059 ec2-50-112-255-244:https ESTABLISHED TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59061 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59062 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59063 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59067 63.251.109.81:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59069 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59070 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59072 t2:https ESTABLISHED TCP 192.168.1.109:59073 sea15s01-in-f138:https ESTABLISHED TCP 192.168.1.109:59074 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59075 104.19.194.102:https ESTABLISHED TCP 192.168.1.109:59076 sea15s02-in-f14:https ESTABLISHED TCP 192.168.1.109:59077 cache:https ESTABLISHED TCP 192.168.1.109:59078 a104-95-215-242:https ESTABLISHED TCP 192.168.1.109:59079 a104-95-215-242:https ESTABLISHED TCP 192.168.1.109:59080 cache:https ESTABLISHED TCP 192.168.1.109:59083 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59085 t2:https ESTABLISHED TCP 192.168.1.109:59086 t2:https ESTABLISHED TCP 192.168.1.109:59087 173-14-166-5-NewEngland:ssh SYN_SENT TCP [::1]:59494 napoleon:13022 TIME_WAIT TCP [::1]:59498 napoleon:ssh TIME_WAIT TCP [::1]:59503 napoleon:13022 TIME_WAIT TCP [::1]:59506 napoleon:ssh TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:59166 napoleon:44529 SYN_SENT TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57912 sea15s08-in-f110:https TIME_WAIT TCP 192.168.1.109:57915 sea15s12-in-f14:https TIME_WAIT TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58043 sea15s02-in-f161:https TIME_WAIT TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58257 57:https ESTABLISHED TCP 192.168.1.109:58315 a104-95-220-62:https ESTABLISHED TCP 192.168.1.109:58322 a104-95-220-62:https ESTABLISHED TCP 192.168.1.109:58701 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58744 ec2-52-52-197-30:https TIME_WAIT TCP 192.168.1.109:58746 ec2-54-172-6-233:https TIME_WAIT TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58754 ec2-34-197-231-207:https TIME_WAIT TCP 192.168.1.109:58766 sframes:https TIME_WAIT TCP 192.168.1.109:58767 12.129.210.52:https TIME_WAIT TCP 192.168.1.109:58768 12.129.210.52:https TIME_WAIT TCP 192.168.1.109:58770 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:58771 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:58782 198.54.12.127:https TIME_WAIT TCP 192.168.1.109:58783 198.54.12.127:https TIME_WAIT TCP 192.168.1.109:58785 198.54.233.82:https TIME_WAIT TCP 192.168.1.109:58786 198.54.233.82:https TIME_WAIT TCP 192.168.1.109:58787 174:https TIME_WAIT TCP 192.168.1.109:58788 174:https TIME_WAIT TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58793 ec2-52-35-123-185:https TIME_WAIT TCP 192.168.1.109:58795 2b:https TIME_WAIT TCP 192.168.1.109:58797 2b:https TIME_WAIT TCP 192.168.1.109:58807 198.8.71.239:https TIME_WAIT TCP 192.168.1.109:58810 ec2-52-41-153-238:https TIME_WAIT TCP 192.168.1.109:58811 146.20.129.157:https ESTABLISHED TCP 192.168.1.109:58812 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58813 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58814 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58815 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58816 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58817 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https ESTABLISHED TCP 192.168.1.109:58824 146.20.132.76:https ESTABLISHED TCP 192.168.1.109:58826 ec2-52-9-39-84:https TIME_WAIT TCP 192.168.1.109:58827 ec2-52-9-39-84:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https ESTABLISHED TCP 192.168.1.109:58829 23:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https ESTABLISHED TCP 192.168.1.109:58836 192.229.211.40:https ESTABLISHED TCP 192.168.1.109:58837 192.229.211.40:https ESTABLISHED TCP 192.168.1.109:58839 207.200.74.133:https TIME_WAIT TCP 192.168.1.109:58840 207.200.74.133:https TIME_WAIT TCP 192.168.1.109:58841 ec2-54-153-14-107:https TIME_WAIT TCP 192.168.1.109:58843 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58844 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58845 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58846 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58847 ec2-52-26-129-228:https TIME_WAIT TCP 192.168.1.109:58859 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58861 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58868 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58874 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58876 sframes:https TIME_WAIT TCP 192.168.1.109:58880 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58881 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58887 185.86.139.59:https TIME_WAIT TCP 192.168.1.109:58888 185.86.139.59:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58901 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58903 e2:https ESTABLISHED TCP 192.168.1.109:58909 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58911 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https ESTABLISHED TCP 192.168.1.109:58925 swbdlv01:https ESTABLISHED TCP 192.168.1.109:58926 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:58927 ec2-52-91-145-213:https ESTABLISHED TCP 192.168.1.109:58928 ec2-52-91-145-213:https ESTABLISHED TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58940 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58942 sframes:https TIME_WAIT TCP 192.168.1.109:58943 beacon:https TIME_WAIT TCP 192.168.1.109:58944 beacon:https TIME_WAIT TCP 192.168.1.109:58946 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:58947 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:58954 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58955 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58956 ads5-us-west:https TIME_WAIT TCP 192.168.1.109:58959 mpr1:https TIME_WAIT TCP 192.168.1.109:58960 mpr1:https TIME_WAIT TCP 192.168.1.109:58961 185.86.138.79:https TIME_WAIT TCP 192.168.1.109:58962 185.86.138.79:https TIME_WAIT TCP 192.168.1.109:58967 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58978 t2:https ESTABLISHED TCP 192.168.1.109:58979 t2:https ESTABLISHED TCP 192.168.1.109:58980 t2:https ESTABLISHED TCP 192.168.1.109:58981 t2:https ESTABLISHED TCP 192.168.1.109:58982 t2:https ESTABLISHED TCP 192.168.1.109:58983 t2:https ESTABLISHED TCP 192.168.1.109:58984 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58985 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58986 t2:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:58989 66.6.33.149:https LAST_ACK TCP 192.168.1.109:58991 66.6.33.149:https LAST_ACK TCP 192.168.1.109:58992 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:58995 t2:https ESTABLISHED TCP 192.168.1.109:58996 t2:https ESTABLISHED TCP 192.168.1.109:59002 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59008 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59010 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59012 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59015 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59018 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59021 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59024 sframes:https TIME_WAIT TCP 192.168.1.109:59025 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59027 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59028 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59029 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59030 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59031 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59032 pr-bh:https TIME_WAIT TCP 192.168.1.109:59033 pr-bh:https TIME_WAIT TCP 192.168.1.109:59034 pr-bh:https TIME_WAIT TCP 192.168.1.109:59036 sa:https ESTABLISHED TCP 192.168.1.109:59037 beacon:https TIME_WAIT TCP 192.168.1.109:59051 mpr1:https ESTABLISHED TCP 192.168.1.109:59052 mpr1:https ESTABLISHED TCP 192.168.1.109:59054 mpr1:https ESTABLISHED TCP 192.168.1.109:59057 ec2-50-112-255-244:https TIME_WAIT TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59072 t2:https TIME_WAIT TCP 192.168.1.109:59083 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59085 t2:https ESTABLISHED TCP 192.168.1.109:59088 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59091 ec2-54-174-51-58:https ESTABLISHED TCP 192.168.1.109:59094 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59095 sframes:https TIME_WAIT TCP 192.168.1.109:59096 mpr1:https TIME_WAIT TCP 192.168.1.109:59097 mpr1:https TIME_WAIT TCP 192.168.1.109:59098 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59099 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59100 mpr1:https TIME_WAIT TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59115 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59116 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59117 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59119 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59120 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59121 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59122 pr:https ESTABLISHED TCP 192.168.1.109:59127 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59128 72.5.64.63:https ESTABLISHED TCP 192.168.1.109:59131 ec2-184-73-198-200:https ESTABLISHED TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https ESTABLISHED TCP 192.168.1.109:59137 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:59138 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:59140 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59141 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59142 unpaid-20:https CLOSE_WAIT TCP 192.168.1.109:59143 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59144 pr:https ESTABLISHED TCP 192.168.1.109:59145 pr:https ESTABLISHED TCP 192.168.1.109:59146 convserv-20:https CLOSE_WAIT TCP 192.168.1.109:59147 convserv-20:https CLOSE_WAIT TCP 192.168.1.109:59148 69.172.216.55:https ESTABLISHED TCP 192.168.1.109:59149 beacon:https ESTABLISHED TCP 192.168.1.109:59150 ec2-50-19-249-196:https ESTABLISHED TCP 192.168.1.109:59151 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59152 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59153 convserv-20:https ESTABLISHED TCP 192.168.1.109:59154 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59155 69.172.216.55:https ESTABLISHED TCP 192.168.1.109:59156 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59157 ec2-50-19-249-196:https ESTABLISHED TCP 192.168.1.109:59158 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59159 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59161 rack01:https ESTABLISHED TCP 192.168.1.109:59162 198.54.233.82:https ESTABLISHED TCP 192.168.1.109:59163 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59165 unpaid-20:https ESTABLISHED TCP [::1]:59494 napoleon:13022 TIME_WAIT TCP [::1]:59498 napoleon:ssh TIME_WAIT TCP [::1]:59503 napoleon:13022 TIME_WAIT TCP [::1]:59506 napoleon:ssh TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:59412 napoleon:44529 SYN_SENT TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58257 57:https ESTABLISHED TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58812 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58813 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58814 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58815 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58816 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58817 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58903 e2:https ESTABLISHED TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https TIME_WAIT TCP 192.168.1.109:58925 swbdlv01:https ESTABLISHED TCP 192.168.1.109:58926 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58967 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:59024 sframes:https TIME_WAIT TCP 192.168.1.109:59027 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59029 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59030 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59031 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59032 pr-bh:https TIME_WAIT TCP 192.168.1.109:59033 pr-bh:https TIME_WAIT TCP 192.168.1.109:59034 pr-bh:https TIME_WAIT TCP 192.168.1.109:59037 beacon:https TIME_WAIT TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59072 t2:https TIME_WAIT TCP 192.168.1.109:59088 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59091 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59094 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59095 sframes:https TIME_WAIT TCP 192.168.1.109:59096 mpr1:https TIME_WAIT TCP 192.168.1.109:59097 mpr1:https TIME_WAIT TCP 192.168.1.109:59098 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59099 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59100 mpr1:https TIME_WAIT TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59120 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59121 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59127 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59131 ec2-184-73-198-200:https TIME_WAIT TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:59137 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59138 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59140 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59141 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59144 pr:https TIME_WAIT TCP 192.168.1.109:59145 pr:https TIME_WAIT TCP 192.168.1.109:59149 beacon:https TIME_WAIT TCP 192.168.1.109:59151 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59152 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59154 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59155 69.172.216.55:https TIME_WAIT TCP 192.168.1.109:59157 ec2-50-19-249-196:https TIME_WAIT TCP 192.168.1.109:59158 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59159 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59161 rack01:https ESTABLISHED TCP 192.168.1.109:59163 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59168 sframes:https TIME_WAIT TCP 192.168.1.109:59171 rack01:https TIME_WAIT TCP 192.168.1.109:59172 rack01:https TIME_WAIT TCP 192.168.1.109:59173 rack01:https TIME_WAIT TCP 192.168.1.109:59174 rack01:https TIME_WAIT TCP 192.168.1.109:59175 rack01:https TIME_WAIT TCP 192.168.1.109:59176 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59177 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59183 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59184 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59191 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59192 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59193 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59196 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:59200 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59201 a104-95-207-114:https TIME_WAIT TCP 192.168.1.109:59202 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:59211 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59214 sframes:https TIME_WAIT TCP 192.168.1.109:59215 beacon:https TIME_WAIT TCP 192.168.1.109:59216 beacon:https TIME_WAIT TCP 192.168.1.109:59217 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59218 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59219 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59220 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59221 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59222 pr:https TIME_WAIT TCP 192.168.1.109:59223 pr:https TIME_WAIT TCP 192.168.1.109:59224 pr:https TIME_WAIT TCP 192.168.1.109:59232 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59233 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59234 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59235 server-52-84-24-137:https TIME_WAIT TCP 192.168.1.109:59247 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59248 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59250 sframes:https TIME_WAIT TCP 192.168.1.109:59252 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59253 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59254 mpr1:https TIME_WAIT TCP 192.168.1.109:59255 mpr1:https TIME_WAIT TCP 192.168.1.109:59256 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59258 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59259 beacon:https TIME_WAIT TCP 192.168.1.109:59260 mpr1:https TIME_WAIT TCP 192.168.1.109:59261 mpr1:https TIME_WAIT TCP 192.168.1.109:59278 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59281 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59286 173-14-166-5-NewEngland:ssh ESTABLISHED TCP 192.168.1.109:59287 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59288 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59289 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59291 t2:https ESTABLISHED TCP 192.168.1.109:59293 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59297 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59298 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59302 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59305 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59310 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59314 t2:https ESTABLISHED TCP 192.168.1.109:59315 t2:https ESTABLISHED TCP 192.168.1.109:59316 t2:https ESTABLISHED TCP 192.168.1.109:59317 t2:https ESTABLISHED TCP 192.168.1.109:59318 t2:https ESTABLISHED TCP 192.168.1.109:59319 t2:https ESTABLISHED TCP 192.168.1.109:59320 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59321 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59322 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59329 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59330 ec2-54-174-51-58:https ESTABLISHED TCP 192.168.1.109:59332 beacon:https TIME_WAIT TCP 192.168.1.109:59333 beacon:https TIME_WAIT TCP 192.168.1.109:59337 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59339 sframes:https TIME_WAIT TCP 192.168.1.109:59343 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59344 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59345 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59346 mpr1:https ESTABLISHED TCP 192.168.1.109:59347 mpr1:https ESTABLISHED TCP 192.168.1.109:59348 mpr1:https TIME_WAIT TCP 192.168.1.109:59361 mpr1:https TIME_WAIT TCP 192.168.1.109:59362 mpr1:https TIME_WAIT TCP 192.168.1.109:59363 mpr1:https ESTABLISHED TCP 192.168.1.109:59364 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59365 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59366 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59367 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:59376 pr:https ESTABLISHED TCP 192.168.1.109:59379 ec2-52-52-192-52:https ESTABLISHED TCP 192.168.1.109:59380 server-52-84-24-227:https FIN_WAIT_1 TCP 192.168.1.109:59381 server-52-84-24-227:https FIN_WAIT_1 TCP 192.168.1.109:59382 ec2-34-199-132-64:https ESTABLISHED TCP 192.168.1.109:59383 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59384 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59391 69.172.216.55:https ESTABLISHED TCP 192.168.1.109:59392 beacon:https ESTABLISHED TCP 192.168.1.109:59393 rack01:https ESTABLISHED TCP 192.168.1.109:59394 ec2-54-235-138-11:https ESTABLISHED TCP 192.168.1.109:59396 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59402 unpaid-20:https LAST_ACK TCP 192.168.1.109:59403 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59404 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59406 t2:https ESTABLISHED TCP 192.168.1.109:59407 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59408 convserv-20:https ESTABLISHED TCP [::1]:59494 napoleon:13022 TIME_WAIT TCP [::1]:59498 napoleon:ssh TIME_WAIT TCP [::1]:59503 napoleon:13022 TIME_WAIT TCP [::1]:59506 napoleon:ssh TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58257 57:https ESTABLISHED TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58812 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58813 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58814 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58815 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58816 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58817 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58903 e2:https ESTABLISHED TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https TIME_WAIT TCP 192.168.1.109:58925 swbdlv01:https ESTABLISHED TCP 192.168.1.109:58926 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58940 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:58967 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:59021 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59024 sframes:https TIME_WAIT TCP 192.168.1.109:59025 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59027 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59029 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59030 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59031 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59032 pr-bh:https TIME_WAIT TCP 192.168.1.109:59033 pr-bh:https TIME_WAIT TCP 192.168.1.109:59034 pr-bh:https TIME_WAIT TCP 192.168.1.109:59037 beacon:https TIME_WAIT TCP 192.168.1.109:59057 ec2-50-112-255-244:https TIME_WAIT TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59072 t2:https TIME_WAIT TCP 192.168.1.109:59083 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59088 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59091 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59094 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59095 sframes:https TIME_WAIT TCP 192.168.1.109:59096 mpr1:https TIME_WAIT TCP 192.168.1.109:59097 mpr1:https TIME_WAIT TCP 192.168.1.109:59098 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59099 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59100 mpr1:https TIME_WAIT TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59120 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59121 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59127 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59131 ec2-184-73-198-200:https TIME_WAIT TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:59137 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59138 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59140 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59141 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59144 pr:https TIME_WAIT TCP 192.168.1.109:59145 pr:https TIME_WAIT TCP 192.168.1.109:59149 beacon:https TIME_WAIT TCP 192.168.1.109:59151 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59152 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59154 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59155 69.172.216.55:https TIME_WAIT TCP 192.168.1.109:59157 ec2-50-19-249-196:https TIME_WAIT TCP 192.168.1.109:59158 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59159 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59161 rack01:https ESTABLISHED TCP 192.168.1.109:59163 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59168 sframes:https TIME_WAIT TCP 192.168.1.109:59171 rack01:https TIME_WAIT TCP 192.168.1.109:59172 rack01:https TIME_WAIT TCP 192.168.1.109:59173 rack01:https TIME_WAIT TCP 192.168.1.109:59174 rack01:https TIME_WAIT TCP 192.168.1.109:59175 rack01:https TIME_WAIT TCP 192.168.1.109:59176 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59177 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59183 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59184 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59191 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59192 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59193 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59196 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:59200 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59201 a104-95-207-114:https TIME_WAIT TCP 192.168.1.109:59202 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:59211 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59214 sframes:https TIME_WAIT TCP 192.168.1.109:59215 beacon:https TIME_WAIT TCP 192.168.1.109:59216 beacon:https TIME_WAIT TCP 192.168.1.109:59217 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59218 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59219 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59220 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59221 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59222 pr:https TIME_WAIT TCP 192.168.1.109:59223 pr:https TIME_WAIT TCP 192.168.1.109:59224 pr:https TIME_WAIT TCP 192.168.1.109:59232 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59233 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59234 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59235 server-52-84-24-137:https TIME_WAIT TCP 192.168.1.109:59247 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59248 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59250 sframes:https TIME_WAIT TCP 192.168.1.109:59252 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59253 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59254 mpr1:https TIME_WAIT TCP 192.168.1.109:59255 mpr1:https TIME_WAIT TCP 192.168.1.109:59256 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59258 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59259 beacon:https TIME_WAIT TCP 192.168.1.109:59260 mpr1:https TIME_WAIT TCP 192.168.1.109:59261 mpr1:https TIME_WAIT TCP 192.168.1.109:59278 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59281 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59286 173-14-166-5-NewEngland:ssh ESTABLISHED TCP 192.168.1.109:59287 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59288 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59289 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59291 t2:https ESTABLISHED TCP 192.168.1.109:59293 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59297 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59298 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59302 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59305 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59310 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59314 t2:https ESTABLISHED TCP 192.168.1.109:59315 t2:https ESTABLISHED TCP 192.168.1.109:59316 t2:https ESTABLISHED TCP 192.168.1.109:59317 t2:https ESTABLISHED TCP 192.168.1.109:59318 t2:https ESTABLISHED TCP 192.168.1.109:59319 t2:https ESTABLISHED TCP 192.168.1.109:59320 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59321 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59322 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59329 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59330 ec2-54-174-51-58:https ESTABLISHED TCP 192.168.1.109:59332 beacon:https TIME_WAIT TCP 192.168.1.109:59333 beacon:https TIME_WAIT TCP 192.168.1.109:59337 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59339 sframes:https ESTABLISHED TCP 192.168.1.109:59340 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59341 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59342 a104-95-219-158:https ESTABLISHED TCP 192.168.1.109:59343 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59344 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59345 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59346 mpr1:https ESTABLISHED TCP 192.168.1.109:59347 mpr1:https ESTABLISHED TCP 192.168.1.109:59348 mpr1:https ESTABLISHED TCP 192.168.1.109:59349 sa:https ESTABLISHED TCP 192.168.1.109:59350 sa:https ESTABLISHED TCP 192.168.1.109:59351 sa:https ESTABLISHED TCP 192.168.1.109:59352 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59353 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59354 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59355 a104-95-204-65:https ESTABLISHED TCP 192.168.1.109:59356 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59357 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59358 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59359 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59360 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:59361 mpr1:https ESTABLISHED TCP 192.168.1.109:59362 mpr1:https ESTABLISHED TCP 192.168.1.109:59363 mpr1:https ESTABLISHED TCP 192.168.1.109:59364 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59365 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59366 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59367 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:59368 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:59369 104.244.43.242:https ESTABLISHED TCP 192.168.1.109:59370 104.244.43.242:https ESTABLISHED TCP 192.168.1.109:59371 104.244.43.50:https ESTABLISHED TCP 192.168.1.109:59372 104.244.43.50:https ESTABLISHED TCP 192.168.1.109:59373 104.244.43.50:https ESTABLISHED TCP 192.168.1.109:59374 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59376 pr:https ESTABLISHED TCP 192.168.1.109:59377 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59378 l3dsr-cserv-um-20:https ESTABLISHED TCP 192.168.1.109:59379 ec2-52-52-192-52:https ESTABLISHED TCP 192.168.1.109:59380 server-52-84-24-227:https ESTABLISHED TCP 192.168.1.109:59381 server-52-84-24-227:https ESTABLISHED TCP 192.168.1.109:59382 ec2-34-199-132-64:https ESTABLISHED TCP 192.168.1.109:59383 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59384 ec2-54-237-221-129:https ESTABLISHED TCP [::1]:59506 napoleon:ssh TIME_WAIT

crontab file


Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    192.168.1.109:57181    ec2-23-23-81-232:https  ESTABLISHED
  TCP    192.168.1.109:57220    msnbot-65-52-108-205:https  ESTABLISHED
  TCP    192.168.1.109:57238    pg-in-f188:5228        ESTABLISHED
  TCP    192.168.1.109:57247    162.125.34.129:https   ESTABLISHED
  TCP    192.168.1.109:57335    ec2-34-197-215-225:https  ESTABLISHED
  TCP    192.168.1.109:57349    t2:https               ESTABLISHED
  TCP    192.168.1.109:57366    a23-214-6-48:https     ESTABLISHED
  TCP    192.168.1.109:57392    sea15s08-in-f110:https  ESTABLISHED
  TCP    192.168.1.109:57422    r2:https               ESTABLISHED
  TCP    192.168.1.109:57518    cache:https            ESTABLISHED
  TCP    192.168.1.109:57524    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:57536    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:57652    sea15s07-in-f2:https   ESTABLISHED
  TCP    192.168.1.109:57657    a104-95-207-114:https  ESTABLISHED
  TCP    192.168.1.109:57750    a104-95-181-180:https  ESTABLISHED
  TCP    192.168.1.109:57795    a104-95-207-114:https  ESTABLISHED
  TCP    192.168.1.109:57918    sframes:https          ESTABLISHED
  TCP    192.168.1.109:57948    a104-95-181-180:https  ESTABLISHED
  TCP    192.168.1.109:58004    a23-44-160-143:https   ESTABLISHED
  TCP    192.168.1.109:58005    a23-44-160-143:https   ESTABLISHED
  TCP    192.168.1.109:58008    8.39.37.45:https       ESTABLISHED
  TCP    192.168.1.109:58195    185.86.137.32:https    ESTABLISHED
  TCP    192.168.1.109:58197    151.101.0.166:https    ESTABLISHED
  TCP    192.168.1.109:58200    65.200.23.32:https     ESTABLISHED
  TCP    192.168.1.109:58257    57:https               ESTABLISHED
  TCP    192.168.1.109:58748    66.6.33.34:https       ESTABLISHED
  TCP    192.168.1.109:58789    23:https               ESTABLISHED
  TCP    192.168.1.109:58812    ec2-54-68-250-99:https  TIME_WAIT
  TCP    192.168.1.109:58813    ec2-54-68-250-99:https  TIME_WAIT
  TCP    192.168.1.109:58814    ec2-54-68-250-99:https  TIME_WAIT
  TCP    192.168.1.109:58815    ec2-54-68-250-99:https  TIME_WAIT
  TCP    192.168.1.109:58816    ec2-54-68-250-99:https  TIME_WAIT
  TCP    192.168.1.109:58817    ec2-54-68-250-99:https  TIME_WAIT
  TCP    192.168.1.109:58821    185.86.139.59:https    ESTABLISHED
  TCP    192.168.1.109:58823    146.20.132.39:https    TIME_WAIT
  TCP    192.168.1.109:58828    server-52-84-24-160:https  TIME_WAIT
  TCP    192.168.1.109:58830    23:https               ESTABLISHED
  TCP    192.168.1.109:58835    server-54-230-87-159:https  TIME_WAIT
  TCP    192.168.1.109:58898    beacon:https           ESTABLISHED
  TCP    192.168.1.109:58899    gd:https               ESTABLISHED
  TCP    192.168.1.109:58900    pprd1-rtr2:https       ESTABLISHED
  TCP    192.168.1.109:58902    beacon:https           ESTABLISHED
  TCP    192.168.1.109:58903    e2:https               ESTABLISHED
  TCP    192.168.1.109:58915    server-52-84-19-215:https  ESTABLISHED
  TCP    192.168.1.109:58920    server-52-84-50-222:https  ESTABLISHED
  TCP    192.168.1.109:58921    server-52-84-20-172:https  ESTABLISHED
  TCP    192.168.1.109:58922    server-52-84-24-212:https  ESTABLISHED
  TCP    192.168.1.109:58923    server-52-84-24-212:https  ESTABLISHED
  TCP    192.168.1.109:58924    ec2-52-52-224-195:https  TIME_WAIT
  TCP    192.168.1.109:58925    swbdlv01:https         ESTABLISHED
  TCP    192.168.1.109:58926    ec2-52-5-176-216:https  TIME_WAIT
  TCP    192.168.1.109:58935    sea15s01-in-f14:https  ESTABLISHED
  TCP    192.168.1.109:58936    cache:https            ESTABLISHED
  TCP    192.168.1.109:58940    ec2-54-174-51-58:https  TIME_WAIT
  TCP    192.168.1.109:58967    ec2-184-169-147-36:https  TIME_WAIT
  TCP    192.168.1.109:58972    r-199-59-148-29:https  ESTABLISHED
  TCP    192.168.1.109:58988    66.6.33.149:https      ESTABLISHED
  TCP    192.168.1.109:59021    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59024    sframes:https          TIME_WAIT
  TCP    192.168.1.109:59025    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59027    12.129.210.53:https    TIME_WAIT
  TCP    192.168.1.109:59029    l3dsr-cserv-um-20:https  TIME_WAIT
  TCP    192.168.1.109:59030    l3dsr-cserv-um-20:https  TIME_WAIT
  TCP    192.168.1.109:59031    l3dsr-cserv-um-20:https  TIME_WAIT
  TCP    192.168.1.109:59032    pr-bh:https            TIME_WAIT
  TCP    192.168.1.109:59033    pr-bh:https            TIME_WAIT
  TCP    192.168.1.109:59034    pr-bh:https            TIME_WAIT
  TCP    192.168.1.109:59037    beacon:https           TIME_WAIT
  TCP    192.168.1.109:59057    ec2-50-112-255-244:https  TIME_WAIT
  TCP    192.168.1.109:59060    151.101.0.175:https    ESTABLISHED
  TCP    192.168.1.109:59064    sea15s12-in-f2:https   ESTABLISHED
  TCP    192.168.1.109:59065    sea15s08-in-f6:https   ESTABLISHED
  TCP    192.168.1.109:59066    lax28s01-in-f166:https  ESTABLISHED
  TCP    192.168.1.109:59068    a104-95-110-85:https   ESTABLISHED
  TCP    192.168.1.109:59071    lax28s01-in-f166:https  ESTABLISHED
  TCP    192.168.1.109:59072    t2:https               TIME_WAIT
  TCP    192.168.1.109:59083    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59088    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59091    ec2-54-174-51-58:https  TIME_WAIT
  TCP    192.168.1.109:59094    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59095    sframes:https          TIME_WAIT
  TCP    192.168.1.109:59096    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:59097    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:59098    12.129.210.53:https    TIME_WAIT
  TCP    192.168.1.109:59099    12.129.210.53:https    TIME_WAIT
  TCP    192.168.1.109:59100    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:59104    a104-95-181-180:https  ESTABLISHED
  TCP    192.168.1.109:59120    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59121    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59127    l3dsr-cserv-um-20:https  TIME_WAIT
  TCP    192.168.1.109:59131    ec2-184-73-198-200:https  TIME_WAIT
  TCP    192.168.1.109:59132    sea15s02-in-f170:https  ESTABLISHED
  TCP    192.168.1.109:59135    sea15s11-in-f14:https  ESTABLISHED
  TCP    192.168.1.109:59136    ec2-52-5-176-216:https  TIME_WAIT
  TCP    192.168.1.109:59137    server-52-84-24-212:https  TIME_WAIT
  TCP    192.168.1.109:59138    server-52-84-24-212:https  TIME_WAIT
  TCP    192.168.1.109:59140    server-52-84-24-137:https  ESTABLISHED
  TCP    192.168.1.109:59141    server-52-84-24-137:https  ESTABLISHED
  TCP    192.168.1.109:59144    pr:https               TIME_WAIT
  TCP    192.168.1.109:59145    pr:https               TIME_WAIT
  TCP    192.168.1.109:59149    beacon:https           TIME_WAIT
  TCP    192.168.1.109:59151    server-52-84-20-172:https  ESTABLISHED
  TCP    192.168.1.109:59152    sea15s02-in-f170:https  ESTABLISHED
  TCP    192.168.1.109:59154    server-52-84-20-172:https  TIME_WAIT
  TCP    192.168.1.109:59155    69.172.216.55:https    TIME_WAIT
  TCP    192.168.1.109:59157    ec2-50-19-249-196:https  TIME_WAIT
  TCP    192.168.1.109:59158    server-52-84-24-147:https  ESTABLISHED
  TCP    192.168.1.109:59159    server-52-84-24-147:https  ESTABLISHED
  TCP    192.168.1.109:59161    rack01:https           ESTABLISHED
  TCP    192.168.1.109:59163    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59168    sframes:https          TIME_WAIT
  TCP    192.168.1.109:59171    rack01:https           TIME_WAIT
  TCP    192.168.1.109:59172    rack01:https           TIME_WAIT
  TCP    192.168.1.109:59173    rack01:https           TIME_WAIT
  TCP    192.168.1.109:59174    rack01:https           TIME_WAIT
  TCP    192.168.1.109:59175    rack01:https           TIME_WAIT
  TCP    192.168.1.109:59176    server-52-84-24-147:https  TIME_WAIT
  TCP    192.168.1.109:59177    server-52-84-24-147:https  TIME_WAIT
  TCP    192.168.1.109:59183    unpaid-20:https        TIME_WAIT
  TCP    192.168.1.109:59184    unpaid-20:https        TIME_WAIT
  TCP    192.168.1.109:59191    server-52-84-20-172:https  TIME_WAIT
  TCP    192.168.1.109:59192    server-52-84-20-172:https  TIME_WAIT
  TCP    192.168.1.109:59193    server-52-84-20-172:https  TIME_WAIT
  TCP    192.168.1.109:59196    ec2-184-169-147-36:https  TIME_WAIT
  TCP    192.168.1.109:59200    server-52-84-20-172:https  TIME_WAIT
  TCP    192.168.1.109:59201    a104-95-207-114:https  TIME_WAIT
  TCP    192.168.1.109:59202    162.125.34.129:https   ESTABLISHED
  TCP    192.168.1.109:59211    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59214    sframes:https          TIME_WAIT
  TCP    192.168.1.109:59215    beacon:https           TIME_WAIT
  TCP    192.168.1.109:59216    beacon:https           TIME_WAIT
  TCP    192.168.1.109:59217    unpaid-20:https        TIME_WAIT
  TCP    192.168.1.109:59218    unpaid-20:https        TIME_WAIT
  TCP    192.168.1.109:59219    unpaid-20:https        TIME_WAIT
  TCP    192.168.1.109:59220    unpaid-20:https        TIME_WAIT
  TCP    192.168.1.109:59221    server-52-84-24-147:https  TIME_WAIT
  TCP    192.168.1.109:59222    pr:https               TIME_WAIT
  TCP    192.168.1.109:59223    pr:https               TIME_WAIT
  TCP    192.168.1.109:59224    pr:https               TIME_WAIT
  TCP    192.168.1.109:59232    server-52-84-20-172:https  TIME_WAIT
  TCP    192.168.1.109:59233    server-52-84-20-172:https  TIME_WAIT
  TCP    192.168.1.109:59234    server-52-84-20-172:https  TIME_WAIT
  TCP    192.168.1.109:59235    server-52-84-24-137:https  TIME_WAIT
  TCP    192.168.1.109:59247    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59248    ec2-54-174-51-58:https  TIME_WAIT
  TCP    192.168.1.109:59250    sframes:https          TIME_WAIT
  TCP    192.168.1.109:59252    205.210.187.194:https  TIME_WAIT
  TCP    192.168.1.109:59253    205.210.187.194:https  TIME_WAIT
  TCP    192.168.1.109:59254    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:59255    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:59256    198.8.71.205:https     TIME_WAIT
  TCP    192.168.1.109:59258    198.8.71.205:https     TIME_WAIT
  TCP    192.168.1.109:59259    beacon:https           TIME_WAIT
  TCP    192.168.1.109:59260    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:59261    mpr1:https             TIME_WAIT
  TCP    192.168.1.109:59278    173-14-166-5-NewEngland:ms-v-worlds  TIME_WAIT
  TCP    192.168.1.109:59281    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59286    173-14-166-5-NewEngland:ssh  ESTABLISHED
  TCP    192.168.1.109:59287    173-14-166-5-NewEngland:ms-v-worlds  TIME_WAIT
  TCP    192.168.1.109:59288    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59289    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59291    t2:https               ESTABLISHED
  TCP    192.168.1.109:59293    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59297    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59298    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59302    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59305    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59310    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59314    t2:https               ESTABLISHED
  TCP    192.168.1.109:59315    t2:https               ESTABLISHED
  TCP    192.168.1.109:59316    t2:https               ESTABLISHED
  TCP    192.168.1.109:59317    t2:https               ESTABLISHED
  TCP    192.168.1.109:59318    t2:https               ESTABLISHED
  TCP    192.168.1.109:59319    t2:https               ESTABLISHED
  TCP    192.168.1.109:59320    66.6.33.34:https       ESTABLISHED
  TCP    192.168.1.109:59321    66.6.33.34:https       ESTABLISHED
  TCP    192.168.1.109:59322    66.6.33.34:https       ESTABLISHED
  TCP    192.168.1.109:59329    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59330    ec2-54-174-51-58:https  ESTABLISHED
  TCP    192.168.1.109:59332    beacon:https           TIME_WAIT
  TCP    192.168.1.109:59333    beacon:https           TIME_WAIT
  TCP    192.168.1.109:59337    173-14-166-5-NewEngland:ssh  TIME_WAIT
  TCP    192.168.1.109:59339    sframes:https          ESTABLISHED
  TCP    192.168.1.109:59340    a104-95-219-158:https  ESTABLISHED
  TCP    192.168.1.109:59341    a104-95-219-158:https  ESTABLISHED
  TCP    192.168.1.109:59342    a104-95-219-158:https  ESTABLISHED
  TCP    192.168.1.109:59343    205.210.187.209:https  ESTABLISHED
  TCP    192.168.1.109:59344    205.210.187.209:https  ESTABLISHED
  TCP    192.168.1.109:59345    205.210.187.209:https  ESTABLISHED
  TCP    192.168.1.109:59346    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59347    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59348    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59349    sa:https               ESTABLISHED
  TCP    192.168.1.109:59350    sa:https               ESTABLISHED
  TCP    192.168.1.109:59351    sa:https               ESTABLISHED
  TCP    192.168.1.109:59352    a104-95-181-180:https  ESTABLISHED
  TCP    192.168.1.109:59353    a104-95-204-65:https   ESTABLISHED
  TCP    192.168.1.109:59354    a104-95-204-65:https   ESTABLISHED
  TCP    192.168.1.109:59355    a104-95-204-65:https   ESTABLISHED
  TCP    192.168.1.109:59356    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59357    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59358    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59359    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59360    a104-95-182-235:https  ESTABLISHED
  TCP    192.168.1.109:59361    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59362    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59363    mpr1:https             ESTABLISHED
  TCP    192.168.1.109:59364    198.8.71.205:https     ESTABLISHED
  TCP    192.168.1.109:59365    198.8.71.205:https     ESTABLISHED
  TCP    192.168.1.109:59366    198.8.71.205:https     ESTABLISHED
  TCP    192.168.1.109:59367    ec2-184-169-147-36:https  ESTABLISHED
  TCP    192.168.1.109:59368    ec2-184-169-147-36:https  ESTABLISHED
  TCP    192.168.1.109:59369    104.244.43.242:https   ESTABLISHED
  TCP    192.168.1.109:59370    104.244.43.242:https   ESTABLISHED
  TCP    192.168.1.109:59371    104.244.43.50:https    ESTABLISHED
  TCP    192.168.1.109:59372    104.244.43.50:https    ESTABLISHED
  TCP    192.168.1.109:59373    104.244.43.50:https    ESTABLISHED
  TCP    192.168.1.109:59374    12.129.210.53:https    ESTABLISHED
  TCP    192.168.1.109:59376    pr:https               ESTABLISHED
  TCP    192.168.1.109:59377    unpaid-20:https        ESTABLISHED
  TCP    192.168.1.109:59378    l3dsr-cserv-um-20:https  ESTABLISHED
  TCP    192.168.1.109:59379    ec2-52-52-192-52:https  ESTABLISHED
  TCP    [::1]:59506            napoleon:ssh           TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /home/jlarsen/bin/updatedb.cron

loader.conf file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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:  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 enabled
#
# 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
# 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 enabled # # 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 Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:59457 napoleon:44529 SYN_SENT TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58257 57:https ESTABLISHED TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58812 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58814 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58815 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58816 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58817 ec2-54-68-250-99:https TIME_WAIT TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https TIME_WAIT TCP 192.168.1.109:58925 swbdlv01:https ESTABLISHED TCP 192.168.1.109:58926 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58967 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59091 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59095 sframes:https TIME_WAIT TCP 192.168.1.109:59096 mpr1:https TIME_WAIT TCP 192.168.1.109:59097 mpr1:https TIME_WAIT TCP 192.168.1.109:59098 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59099 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59100 mpr1:https TIME_WAIT TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59120 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59121 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59127 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59131 ec2-184-73-198-200:https TIME_WAIT TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:59137 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59138 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59140 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59141 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59144 pr:https TIME_WAIT TCP 192.168.1.109:59145 pr:https TIME_WAIT TCP 192.168.1.109:59149 beacon:https TIME_WAIT TCP 192.168.1.109:59151 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59152 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59154 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59155 69.172.216.55:https TIME_WAIT TCP 192.168.1.109:59157 ec2-50-19-249-196:https TIME_WAIT TCP 192.168.1.109:59158 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59159 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59161 rack01:https ESTABLISHED TCP 192.168.1.109:59163 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59168 sframes:https TIME_WAIT TCP 192.168.1.109:59171 rack01:https TIME_WAIT TCP 192.168.1.109:59172 rack01:https TIME_WAIT TCP 192.168.1.109:59173 rack01:https TIME_WAIT TCP 192.168.1.109:59174 rack01:https TIME_WAIT TCP 192.168.1.109:59175 rack01:https TIME_WAIT TCP 192.168.1.109:59176 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59177 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59183 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59184 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59191 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59192 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59193 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59196 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:59200 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59201 a104-95-207-114:https TIME_WAIT TCP 192.168.1.109:59202 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:59211 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59214 sframes:https TIME_WAIT TCP 192.168.1.109:59215 beacon:https TIME_WAIT TCP 192.168.1.109:59216 beacon:https TIME_WAIT TCP 192.168.1.109:59217 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59218 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59219 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59220 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59221 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59222 pr:https TIME_WAIT TCP 192.168.1.109:59223 pr:https TIME_WAIT TCP 192.168.1.109:59224 pr:https TIME_WAIT TCP 192.168.1.109:59232 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59233 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59234 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59235 server-52-84-24-137:https TIME_WAIT TCP 192.168.1.109:59247 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59248 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59250 sframes:https TIME_WAIT TCP 192.168.1.109:59252 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59253 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59254 mpr1:https TIME_WAIT TCP 192.168.1.109:59255 mpr1:https TIME_WAIT TCP 192.168.1.109:59256 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59258 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59259 beacon:https TIME_WAIT TCP 192.168.1.109:59260 mpr1:https TIME_WAIT TCP 192.168.1.109:59261 mpr1:https TIME_WAIT TCP 192.168.1.109:59278 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59281 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59286 173-14-166-5-NewEngland:ssh ESTABLISHED TCP 192.168.1.109:59287 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59288 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59289 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59291 t2:https ESTABLISHED TCP 192.168.1.109:59293 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59297 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59298 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59302 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59305 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59310 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59314 t2:https ESTABLISHED TCP 192.168.1.109:59315 t2:https ESTABLISHED TCP 192.168.1.109:59316 t2:https ESTABLISHED TCP 192.168.1.109:59317 t2:https ESTABLISHED TCP 192.168.1.109:59318 t2:https ESTABLISHED TCP 192.168.1.109:59319 t2:https ESTABLISHED TCP 192.168.1.109:59320 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59321 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59322 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59329 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59330 ec2-54-174-51-58:https ESTABLISHED TCP 192.168.1.109:59332 beacon:https TIME_WAIT TCP 192.168.1.109:59333 beacon:https TIME_WAIT TCP 192.168.1.109:59337 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59339 sframes:https TIME_WAIT TCP 192.168.1.109:59343 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59344 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59345 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59347 mpr1:https ESTABLISHED TCP 192.168.1.109:59348 mpr1:https TIME_WAIT TCP 192.168.1.109:59361 mpr1:https TIME_WAIT TCP 192.168.1.109:59362 mpr1:https TIME_WAIT TCP 192.168.1.109:59363 mpr1:https ESTABLISHED TCP 192.168.1.109:59364 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59365 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59366 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59367 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:59376 pr:https ESTABLISHED TCP 192.168.1.109:59379 ec2-52-52-192-52:https ESTABLISHED TCP 192.168.1.109:59380 server-52-84-24-227:https TIME_WAIT TCP 192.168.1.109:59381 server-52-84-24-227:https TIME_WAIT TCP 192.168.1.109:59382 ec2-34-199-132-64:https ESTABLISHED TCP 192.168.1.109:59383 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59384 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59391 69.172.216.55:https ESTABLISHED TCP 192.168.1.109:59392 beacon:https TIME_WAIT TCP 192.168.1.109:59393 rack01:https ESTABLISHED TCP 192.168.1.109:59394 ec2-54-235-138-11:https ESTABLISHED TCP 192.168.1.109:59396 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59404 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59406 t2:https ESTABLISHED TCP 192.168.1.109:59414 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59415 sframes:https ESTABLISHED TCP 192.168.1.109:59416 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59417 rack01:https ESTABLISHED TCP 192.168.1.109:59418 rack01:https ESTABLISHED TCP 192.168.1.109:59419 rack01:https ESTABLISHED TCP 192.168.1.109:59420 rack01:https ESTABLISHED TCP 192.168.1.109:59421 rack01:https ESTABLISHED TCP 192.168.1.109:59422 pr:https ESTABLISHED TCP 192.168.1.109:59423 pr:https ESTABLISHED TCP 192.168.1.109:59424 pr:https ESTABLISHED TCP 192.168.1.109:59425 pr:https ESTABLISHED TCP 192.168.1.109:59426 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59427 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59428 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59429 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59430 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:59431 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:59432 server-52-84-24-133:https ESTABLISHED TCP 192.168.1.109:59433 server-52-84-24-133:https ESTABLISHED TCP 192.168.1.109:59434 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59435 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59436 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59437 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:59438 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:59439 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:59440 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:59441 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:59442 104.244.43.242:https ESTABLISHED TCP 192.168.1.109:59443 104.244.43.242:https ESTABLISHED TCP 192.168.1.109:59444 104.244.43.50:https ESTABLISHED TCP 192.168.1.109:59445 104.244.43.50:https ESTABLISHED TCP 192.168.1.109:59446 104.244.43.50:https ESTABLISHED TCP 192.168.1.109:59449 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59451 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59453 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59454 convserv-20:https ESTABLISHED TCP 192.168.1.109:59455 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59456 unpaid-20:https ESTABLISHED

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:59499 napoleon:59500 TIME_WAIT TCP 127.0.0.1:59501 napoleon:59502 TIME_WAIT TCP 127.0.0.1:59507 napoleon:59508 TIME_WAIT TCP 127.0.0.1:59509 napoleon:59510 TIME_WAIT TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https TIME_WAIT TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59091 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:59140 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59141 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59151 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59152 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59158 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59159 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59161 rack01:https ESTABLISHED TCP 192.168.1.109:59168 sframes:https TIME_WAIT TCP 192.168.1.109:59171 rack01:https TIME_WAIT TCP 192.168.1.109:59172 rack01:https TIME_WAIT TCP 192.168.1.109:59173 rack01:https TIME_WAIT TCP 192.168.1.109:59174 rack01:https TIME_WAIT TCP 192.168.1.109:59175 rack01:https TIME_WAIT TCP 192.168.1.109:59176 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59177 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59183 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59184 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59191 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59192 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59193 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59196 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:59200 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59201 a104-95-207-114:https TIME_WAIT TCP 192.168.1.109:59202 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:59211 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59214 sframes:https TIME_WAIT TCP 192.168.1.109:59215 beacon:https TIME_WAIT TCP 192.168.1.109:59216 beacon:https TIME_WAIT TCP 192.168.1.109:59217 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59218 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59219 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59220 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59221 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59222 pr:https TIME_WAIT TCP 192.168.1.109:59223 pr:https TIME_WAIT TCP 192.168.1.109:59224 pr:https TIME_WAIT TCP 192.168.1.109:59232 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59233 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59234 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59235 server-52-84-24-137:https TIME_WAIT TCP 192.168.1.109:59247 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59248 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59250 sframes:https TIME_WAIT TCP 192.168.1.109:59252 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59253 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59254 mpr1:https TIME_WAIT TCP 192.168.1.109:59255 mpr1:https TIME_WAIT TCP 192.168.1.109:59256 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59258 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59259 beacon:https TIME_WAIT TCP 192.168.1.109:59260 mpr1:https TIME_WAIT TCP 192.168.1.109:59261 mpr1:https TIME_WAIT TCP 192.168.1.109:59278 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59281 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59286 173-14-166-5-NewEngland:ssh ESTABLISHED TCP 192.168.1.109:59287 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59288 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59289 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59291 t2:https ESTABLISHED TCP 192.168.1.109:59293 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59297 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59298 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59302 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59305 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59310 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59314 t2:https ESTABLISHED TCP 192.168.1.109:59315 t2:https ESTABLISHED TCP 192.168.1.109:59316 t2:https ESTABLISHED TCP 192.168.1.109:59317 t2:https ESTABLISHED TCP 192.168.1.109:59318 t2:https ESTABLISHED TCP 192.168.1.109:59319 t2:https ESTABLISHED TCP 192.168.1.109:59320 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59321 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59322 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59329 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59330 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59332 beacon:https TIME_WAIT TCP 192.168.1.109:59333 beacon:https TIME_WAIT TCP 192.168.1.109:59337 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59339 sframes:https TIME_WAIT TCP 192.168.1.109:59343 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59344 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59345 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59347 mpr1:https ESTABLISHED TCP 192.168.1.109:59348 mpr1:https TIME_WAIT TCP 192.168.1.109:59361 mpr1:https TIME_WAIT TCP 192.168.1.109:59362 mpr1:https TIME_WAIT TCP 192.168.1.109:59363 mpr1:https ESTABLISHED TCP 192.168.1.109:59364 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59365 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59366 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59367 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:59379 ec2-52-52-192-52:https ESTABLISHED TCP 192.168.1.109:59380 server-52-84-24-227:https TIME_WAIT TCP 192.168.1.109:59381 server-52-84-24-227:https TIME_WAIT TCP 192.168.1.109:59382 ec2-34-199-132-64:https ESTABLISHED TCP 192.168.1.109:59383 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59384 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59391 69.172.216.55:https ESTABLISHED TCP 192.168.1.109:59392 beacon:https TIME_WAIT TCP 192.168.1.109:59393 rack01:https ESTABLISHED TCP 192.168.1.109:59394 ec2-54-235-138-11:https ESTABLISHED TCP 192.168.1.109:59396 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59404 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59406 t2:https ESTABLISHED TCP 192.168.1.109:59414 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59415 sframes:https TIME_WAIT TCP 192.168.1.109:59416 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59417 rack01:https TIME_WAIT TCP 192.168.1.109:59418 rack01:https TIME_WAIT TCP 192.168.1.109:59419 rack01:https TIME_WAIT TCP 192.168.1.109:59420 rack01:https TIME_WAIT TCP 192.168.1.109:59421 rack01:https TIME_WAIT TCP 192.168.1.109:59422 pr:https TIME_WAIT TCP 192.168.1.109:59423 pr:https TIME_WAIT TCP 192.168.1.109:59424 pr:https TIME_WAIT TCP 192.168.1.109:59425 pr:https TIME_WAIT TCP 192.168.1.109:59426 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59427 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59428 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59429 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59432 server-52-84-24-133:https TIME_WAIT TCP 192.168.1.109:59433 server-52-84-24-133:https TIME_WAIT TCP 192.168.1.109:59434 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59435 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59436 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59449 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59451 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59459 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59462 sframes:https ESTABLISHED TCP 192.168.1.109:59463 rack01:https ESTABLISHED TCP 192.168.1.109:59464 rack01:https ESTABLISHED TCP 192.168.1.109:59465 rack01:https ESTABLISHED TCP 192.168.1.109:59466 rack01:https ESTABLISHED TCP 192.168.1.109:59467 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59468 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59469 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59470 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59471 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59472 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59473 pr:https ESTABLISHED TCP 192.168.1.109:59474 pr:https ESTABLISHED TCP 192.168.1.109:59475 pr:https ESTABLISHED TCP 192.168.1.109:59476 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:59477 convserv-20:https ESTABLISHED TCP 192.168.1.109:59478 convserv-20:https ESTABLISHED TCP 192.168.1.109:59479 convserv-20:https ESTABLISHED TCP 192.168.1.109:59480 beacon:https ESTABLISHED TCP 192.168.1.109:59481 beacon:https ESTABLISHED TCP 192.168.1.109:59482 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59483 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59484 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59485 198.8.71.239:https ESTABLISHED TCP 192.168.1.109:59486 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59487 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59488 205.210.187.194:https ESTABLISHED TCP 192.168.1.109:59489 sa:https ESTABLISHED TCP 192.168.1.109:59492 ec2-54-174-51-58:https ESTABLISHED TCP 192.168.1.109:59493 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59497 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59511 173-14-166-5-NewEngland:ssh ESTABLISHED

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57349 t2:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58005 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58257 57:https ESTABLISHED TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https TIME_WAIT TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58967 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59091 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59095 sframes:https TIME_WAIT TCP 192.168.1.109:59096 mpr1:https TIME_WAIT TCP 192.168.1.109:59097 mpr1:https TIME_WAIT TCP 192.168.1.109:59098 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59099 12.129.210.53:https TIME_WAIT TCP 192.168.1.109:59100 mpr1:https TIME_WAIT TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59127 l3dsr-cserv-um-20:https TIME_WAIT TCP 192.168.1.109:59131 ec2-184-73-198-200:https TIME_WAIT TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:59137 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59138 server-52-84-24-212:https TIME_WAIT TCP 192.168.1.109:59140 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59141 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59144 pr:https TIME_WAIT TCP 192.168.1.109:59145 pr:https TIME_WAIT TCP 192.168.1.109:59149 beacon:https TIME_WAIT TCP 192.168.1.109:59151 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59152 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59154 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59155 69.172.216.55:https TIME_WAIT TCP 192.168.1.109:59157 ec2-50-19-249-196:https TIME_WAIT TCP 192.168.1.109:59158 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59159 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59161 rack01:https ESTABLISHED TCP 192.168.1.109:59168 sframes:https TIME_WAIT TCP 192.168.1.109:59171 rack01:https TIME_WAIT TCP 192.168.1.109:59172 rack01:https TIME_WAIT TCP 192.168.1.109:59173 rack01:https TIME_WAIT TCP 192.168.1.109:59174 rack01:https TIME_WAIT TCP 192.168.1.109:59175 rack01:https TIME_WAIT TCP 192.168.1.109:59176 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59177 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59183 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59184 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59191 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59192 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59193 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59196 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:59200 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59201 a104-95-207-114:https TIME_WAIT TCP 192.168.1.109:59202 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:59211 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59214 sframes:https TIME_WAIT TCP 192.168.1.109:59215 beacon:https TIME_WAIT TCP 192.168.1.109:59216 beacon:https TIME_WAIT TCP 192.168.1.109:59217 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59218 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59219 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59220 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59221 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59222 pr:https TIME_WAIT TCP 192.168.1.109:59223 pr:https TIME_WAIT TCP 192.168.1.109:59224 pr:https TIME_WAIT TCP 192.168.1.109:59232 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59233 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59234 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59235 server-52-84-24-137:https TIME_WAIT TCP 192.168.1.109:59247 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59248 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59250 sframes:https TIME_WAIT TCP 192.168.1.109:59252 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59253 205.210.187.194:https TIME_WAIT TCP 192.168.1.109:59254 mpr1:https TIME_WAIT TCP 192.168.1.109:59255 mpr1:https TIME_WAIT TCP 192.168.1.109:59256 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59258 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59259 beacon:https TIME_WAIT TCP 192.168.1.109:59260 mpr1:https TIME_WAIT TCP 192.168.1.109:59261 mpr1:https TIME_WAIT TCP 192.168.1.109:59278 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59281 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59286 173-14-166-5-NewEngland:ssh ESTABLISHED TCP 192.168.1.109:59287 173-14-166-5-NewEngland:ms-v-worlds TIME_WAIT TCP 192.168.1.109:59288 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59289 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59291 t2:https ESTABLISHED TCP 192.168.1.109:59293 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59297 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59298 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59302 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59305 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59310 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59314 t2:https ESTABLISHED TCP 192.168.1.109:59315 t2:https ESTABLISHED TCP 192.168.1.109:59316 t2:https ESTABLISHED TCP 192.168.1.109:59317 t2:https ESTABLISHED TCP 192.168.1.109:59318 t2:https ESTABLISHED TCP 192.168.1.109:59319 t2:https ESTABLISHED TCP 192.168.1.109:59320 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59321 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59322 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59329 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59330 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59332 beacon:https TIME_WAIT TCP 192.168.1.109:59333 beacon:https TIME_WAIT TCP 192.168.1.109:59337 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59339 sframes:https TIME_WAIT TCP 192.168.1.109:59343 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59344 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59345 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59347 mpr1:https ESTABLISHED TCP 192.168.1.109:59348 mpr1:https TIME_WAIT TCP 192.168.1.109:59361 mpr1:https TIME_WAIT TCP 192.168.1.109:59362 mpr1:https TIME_WAIT TCP 192.168.1.109:59363 mpr1:https ESTABLISHED TCP 192.168.1.109:59364 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59365 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59366 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59367 ec2-184-169-147-36:https ESTABLISHED TCP 192.168.1.109:59379 ec2-52-52-192-52:https ESTABLISHED TCP 192.168.1.109:59380 server-52-84-24-227:https TIME_WAIT TCP 192.168.1.109:59381 server-52-84-24-227:https TIME_WAIT TCP 192.168.1.109:59382 ec2-34-199-132-64:https ESTABLISHED TCP 192.168.1.109:59383 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59384 ec2-54-237-221-129:https ESTABLISHED TCP 192.168.1.109:59391 69.172.216.55:https ESTABLISHED TCP 192.168.1.109:59392 beacon:https TIME_WAIT TCP 192.168.1.109:59393 rack01:https ESTABLISHED TCP 192.168.1.109:59394 ec2-54-235-138-11:https ESTABLISHED TCP 192.168.1.109:59396 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59404 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59406 t2:https ESTABLISHED TCP 192.168.1.109:59414 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59415 sframes:https TIME_WAIT TCP 192.168.1.109:59416 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59417 rack01:https TIME_WAIT TCP 192.168.1.109:59418 rack01:https TIME_WAIT TCP 192.168.1.109:59419 rack01:https TIME_WAIT TCP 192.168.1.109:59420 rack01:https TIME_WAIT TCP 192.168.1.109:59421 rack01:https TIME_WAIT TCP 192.168.1.109:59422 pr:https TIME_WAIT TCP 192.168.1.109:59423 pr:https TIME_WAIT TCP 192.168.1.109:59424 pr:https TIME_WAIT TCP 192.168.1.109:59425 pr:https TIME_WAIT TCP 192.168.1.109:59426 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59427 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59428 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59429 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59432 server-52-84-24-133:https TIME_WAIT TCP 192.168.1.109:59433 server-52-84-24-133:https TIME_WAIT TCP 192.168.1.109:59434 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59435 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59436 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59449 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59451 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59459 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59462 sframes:https ESTABLISHED TCP 192.168.1.109:59463 rack01:https ESTABLISHED TCP 192.168.1.109:59464 rack01:https ESTABLISHED TCP 192.168.1.109:59465 rack01:https ESTABLISHED TCP 192.168.1.109:59466 rack01:https ESTABLISHED TCP 192.168.1.109:59467 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59468 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59469 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59470 unpaid-20:https ESTABLISHED TCP 192.168.1.109:59471 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59472 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59473 pr:https ESTABLISHED TCP 192.168.1.109:59474 pr:https ESTABLISHED TCP 192.168.1.109:59475 pr:https ESTABLISHED TCP 192.168.1.109:59476 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:59477 convserv-20:https ESTABLISHED TCP 192.168.1.109:59478 convserv-20:https ESTABLISHED TCP 192.168.1.109:59479 convserv-20:https ESTABLISHED TCP 192.168.1.109:59480 beacon:https ESTABLISHED TCP 192.168.1.109:59481 beacon:https ESTABLISHED TCP 192.168.1.109:59482 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59483 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59484 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59485 198.8.71.239:https ESTABLISHED TCP 192.168.1.109:59486 205.210.187.209:https ESTABLISHED TCP 192.168.1.109:59487 198.8.71.205:https ESTABLISHED TCP 192.168.1.109:59488 205.210.187.194:https ESTABLISHED

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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
Active Connections Proto Local Address Foreign Address State TCP 127.0.0.1:59499 napoleon:59500 TIME_WAIT TCP 127.0.0.1:59501 napoleon:59502 TIME_WAIT TCP 127.0.0.1:59507 napoleon:59508 TIME_WAIT TCP 127.0.0.1:59509 napoleon:59510 TIME_WAIT TCP 127.0.0.1:59593 napoleon:44529 SYN_SENT TCP 192.168.1.109:57181 ec2-23-23-81-232:https ESTABLISHED TCP 192.168.1.109:57220 msnbot-65-52-108-205:https ESTABLISHED TCP 192.168.1.109:57238 pg-in-f188:5228 ESTABLISHED TCP 192.168.1.109:57247 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:57335 ec2-34-197-215-225:https ESTABLISHED TCP 192.168.1.109:57366 a23-214-6-48:https ESTABLISHED TCP 192.168.1.109:57392 sea15s08-in-f110:https ESTABLISHED TCP 192.168.1.109:57422 r2:https ESTABLISHED TCP 192.168.1.109:57518 cache:https ESTABLISHED TCP 192.168.1.109:57524 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57536 a104-95-182-235:https ESTABLISHED TCP 192.168.1.109:57652 sea15s07-in-f2:https ESTABLISHED TCP 192.168.1.109:57657 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57750 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:57795 a104-95-207-114:https ESTABLISHED TCP 192.168.1.109:57918 sframes:https ESTABLISHED TCP 192.168.1.109:57948 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:58004 a23-44-160-143:https ESTABLISHED TCP 192.168.1.109:58008 8.39.37.45:https ESTABLISHED TCP 192.168.1.109:58195 185.86.137.32:https ESTABLISHED TCP 192.168.1.109:58197 151.101.0.166:https ESTABLISHED TCP 192.168.1.109:58200 65.200.23.32:https ESTABLISHED TCP 192.168.1.109:58748 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:58789 23:https ESTABLISHED TCP 192.168.1.109:58821 185.86.139.59:https ESTABLISHED TCP 192.168.1.109:58823 146.20.132.39:https TIME_WAIT TCP 192.168.1.109:58828 server-52-84-24-160:https TIME_WAIT TCP 192.168.1.109:58830 23:https ESTABLISHED TCP 192.168.1.109:58835 server-54-230-87-159:https TIME_WAIT TCP 192.168.1.109:58898 beacon:https ESTABLISHED TCP 192.168.1.109:58899 gd:https ESTABLISHED TCP 192.168.1.109:58900 pprd1-rtr2:https ESTABLISHED TCP 192.168.1.109:58902 beacon:https ESTABLISHED TCP 192.168.1.109:58915 server-52-84-19-215:https ESTABLISHED TCP 192.168.1.109:58920 server-52-84-50-222:https ESTABLISHED TCP 192.168.1.109:58921 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:58922 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58923 server-52-84-24-212:https ESTABLISHED TCP 192.168.1.109:58924 ec2-52-52-224-195:https TIME_WAIT TCP 192.168.1.109:58935 sea15s01-in-f14:https ESTABLISHED TCP 192.168.1.109:58936 cache:https ESTABLISHED TCP 192.168.1.109:58972 r-199-59-148-29:https ESTABLISHED TCP 192.168.1.109:58988 66.6.33.149:https ESTABLISHED TCP 192.168.1.109:59060 151.101.0.175:https ESTABLISHED TCP 192.168.1.109:59064 sea15s12-in-f2:https ESTABLISHED TCP 192.168.1.109:59065 sea15s08-in-f6:https ESTABLISHED TCP 192.168.1.109:59066 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59068 a104-95-110-85:https ESTABLISHED TCP 192.168.1.109:59071 lax28s01-in-f166:https ESTABLISHED TCP 192.168.1.109:59104 a104-95-181-180:https ESTABLISHED TCP 192.168.1.109:59132 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59135 sea15s11-in-f14:https ESTABLISHED TCP 192.168.1.109:59136 ec2-52-5-176-216:https TIME_WAIT TCP 192.168.1.109:59140 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59141 server-52-84-24-137:https ESTABLISHED TCP 192.168.1.109:59151 server-52-84-20-172:https ESTABLISHED TCP 192.168.1.109:59152 sea15s02-in-f170:https ESTABLISHED TCP 192.168.1.109:59158 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59159 server-52-84-24-147:https ESTABLISHED TCP 192.168.1.109:59161 rack01:https ESTABLISHED TCP 192.168.1.109:59196 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:59202 162.125.34.129:https ESTABLISHED TCP 192.168.1.109:59248 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59286 173-14-166-5-NewEngland:ssh ESTABLISHED TCP 192.168.1.109:59289 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59291 t2:https ESTABLISHED TCP 192.168.1.109:59293 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59302 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59305 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59310 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59314 t2:https ESTABLISHED TCP 192.168.1.109:59315 t2:https ESTABLISHED TCP 192.168.1.109:59316 t2:https ESTABLISHED TCP 192.168.1.109:59317 t2:https ESTABLISHED TCP 192.168.1.109:59318 t2:https ESTABLISHED TCP 192.168.1.109:59319 t2:https ESTABLISHED TCP 192.168.1.109:59320 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59321 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59322 66.6.33.34:https ESTABLISHED TCP 192.168.1.109:59329 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59330 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59332 beacon:https TIME_WAIT TCP 192.168.1.109:59333 beacon:https TIME_WAIT TCP 192.168.1.109:59337 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59339 sframes:https TIME_WAIT TCP 192.168.1.109:59343 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59344 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59345 205.210.187.209:https TIME_WAIT TCP 192.168.1.109:59348 mpr1:https TIME_WAIT TCP 192.168.1.109:59361 mpr1:https TIME_WAIT TCP 192.168.1.109:59362 mpr1:https TIME_WAIT TCP 192.168.1.109:59364 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59365 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59366 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59367 ec2-184-169-147-36:https TIME_WAIT TCP 192.168.1.109:59379 ec2-52-52-192-52:https TIME_WAIT TCP 192.168.1.109:59380 server-52-84-24-227:https TIME_WAIT TCP 192.168.1.109:59381 server-52-84-24-227:https TIME_WAIT TCP 192.168.1.109:59382 ec2-34-199-132-64:https TIME_WAIT TCP 192.168.1.109:59392 beacon:https TIME_WAIT TCP 192.168.1.109:59393 rack01:https ESTABLISHED TCP 192.168.1.109:59394 ec2-54-235-138-11:https TIME_WAIT TCP 192.168.1.109:59396 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59404 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59406 t2:https ESTABLISHED TCP 192.168.1.109:59414 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59415 sframes:https TIME_WAIT TCP 192.168.1.109:59416 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59417 rack01:https TIME_WAIT TCP 192.168.1.109:59418 rack01:https TIME_WAIT TCP 192.168.1.109:59419 rack01:https TIME_WAIT TCP 192.168.1.109:59420 rack01:https TIME_WAIT TCP 192.168.1.109:59421 rack01:https TIME_WAIT TCP 192.168.1.109:59422 pr:https TIME_WAIT TCP 192.168.1.109:59423 pr:https TIME_WAIT TCP 192.168.1.109:59424 pr:https TIME_WAIT TCP 192.168.1.109:59425 pr:https TIME_WAIT TCP 192.168.1.109:59426 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59427 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59428 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59429 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59432 server-52-84-24-133:https TIME_WAIT TCP 192.168.1.109:59433 server-52-84-24-133:https TIME_WAIT TCP 192.168.1.109:59434 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59435 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59436 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59449 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59451 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59459 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59462 sframes:https TIME_WAIT TCP 192.168.1.109:59463 rack01:https TIME_WAIT TCP 192.168.1.109:59464 rack01:https TIME_WAIT TCP 192.168.1.109:59465 rack01:https TIME_WAIT TCP 192.168.1.109:59466 rack01:https TIME_WAIT TCP 192.168.1.109:59467 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59468 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59469 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59470 unpaid-20:https TIME_WAIT TCP 192.168.1.109:59471 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59472 server-52-84-24-147:https TIME_WAIT TCP 192.168.1.109:59473 pr:https TIME_WAIT TCP 192.168.1.109:59474 pr:https TIME_WAIT TCP 192.168.1.109:59475 pr:https TIME_WAIT TCP 192.168.1.109:59477 convserv-20:https TIME_WAIT TCP 192.168.1.109:59478 convserv-20:https TIME_WAIT TCP 192.168.1.109:59479 convserv-20:https TIME_WAIT TCP 192.168.1.109:59480 beacon:https TIME_WAIT TCP 192.168.1.109:59481 beacon:https TIME_WAIT TCP 192.168.1.109:59482 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59483 server-52-84-20-172:https TIME_WAIT TCP 192.168.1.109:59489 sa:https ESTABLISHED TCP 192.168.1.109:59492 ec2-54-174-51-58:https TIME_WAIT TCP 192.168.1.109:59493 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59497 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59511 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59515 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59516 sframes:https TIME_WAIT TCP 192.168.1.109:59517 mpr1:https TIME_WAIT TCP 192.168.1.109:59518 mpr1:https TIME_WAIT TCP 192.168.1.109:59519 beacon:https TIME_WAIT TCP 192.168.1.109:59523 sa:https TIME_WAIT TCP 192.168.1.109:59525 mpr1:https TIME_WAIT TCP 192.168.1.109:59526 mpr1:https TIME_WAIT TCP 192.168.1.109:59536 12.129.210.53:https ESTABLISHED TCP 192.168.1.109:59550 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59553 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59556 sframes:https TIME_WAIT TCP 192.168.1.109:59557 beacon:https TIME_WAIT TCP 192.168.1.109:59561 mpr1:https TIME_WAIT TCP 192.168.1.109:59562 mpr1:https TIME_WAIT TCP 192.168.1.109:59574 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59576 198.8.71.205:https TIME_WAIT TCP 192.168.1.109:59577 mpr1:https TIME_WAIT TCP 192.168.1.109:59578 mpr1:https TIME_WAIT TCP 192.168.1.109:59586 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59587 173-14-166-5-NewEngland:ssh TIME_WAIT TCP 192.168.1.109:59591 173-14-166-5-NewEngland:ssh TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.MGY4gWzUBO installed on Wed Oct 12 16:16:09 2016)
# (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 15,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
#17 21 * * * /home/jlarsen/backup/backup.cron

# UPDATE LOCATE DATABASE ---------------------------------------
02 15,18,21 * * * /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 enabled
#
# 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