ssh_tunnel statistics: billerica to zippy

Time: 2012-May-23 17:50:40 Wed

Current tunnel state: enabled          Current tunnel condition: UP

loader stats

------ loader (pid: 5204 ) ------------ (v3.31 2006-05-29) ----- State: enabled UP
Time:                2012-May-23 17:50:40 Wed
client:              billerica
server:              zippy
client heartbeat:    Wed May 23 17:40:47 EDT 2012
server heartbeat:    Wed May 23 17:40:35 EDT 2012
server heartbeat 1:  Wed May 23 17:40:35 EDT 2012
server heartbeat 2:  Wed May 23 17:40:35 EDT 2012
server heartbeat 3:  Server Heartbeat 1
server heartbeat 4:  Server Heartbeat 2
Sleep time:          300
loader loop counter: 3
bad port tests:      0     last: none yet
failed file updates: 0     last: none yet
tunnels killed:      0     last: none yet
emails sent:         2     last: 2012-May-23 17:40:42 Wed
email addresses:     john@larsen-family.us
loader started:      2012-May-23 17:40:36 Wed
debug flags:         0x0

tunnel stats

------ tunnel (pid: 6892 ) ------------ (v3.31 2006-05-29) ----- State: enabled UP
Time:                2012-May-23 17:46:06 Wed
client:              billerica
server:              zippy
client heartbeat:    Wed May 23 17:40:47 EDT 2012
server heartbeat:    Wed May 23 17:40:35 EDT 2012
Sleep time:          300
tunnel loop counter: 2
bad port tests:      0     last: none yet
emails sent:         1     last: 2012-May-23 17:40:44 Wed
email addresses:     john@larsen-family.us
tunnel started:      2012-May-23 17:40:46 Wed
debug flags:         0x0

Current users, uptime, and load average

 17:50:40 up 13 min,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT

Current processes

UID        PID  PPID  C STIME TTY          TIME CMD
1004      2132     1  0 17:38 ?        00:00:00 /usr/bin/cygrunsrv
1004      2456  2132  0 17:38 ?        00:00:00 /usr/sbin/cron -n
1004      3192     1  0 17:39 ?        00:00:00 /usr/bin/cygrunsrv
1004      3356  3192  0 17:39 ?        00:00:00 /usr/sbin/sshd -D
1004      6128  2456  0 17:40 ?        00:00:00 /usr/sbin/cron -n
1000      5204     1  0 17:40 ?        00:00:00 /usr/bin/perl -w /home/StakeAdmin/ssh_tunnel/zippy/loader -d 0 -st 300 -e john@larsen-family.us
1000      6892     1  0 17:40 ?        00:00:00 /usr/bin/perl -w /home/StakeAdmin/ssh_tunnel/zippy/tunnel -d 0 -st 300 -e john@larsen-family.us
1000      6664  6128  0 17:40 ?        00:00:00 /usr/sbin/sendmail -FCronDaemon -odi -oem -oi -t
1000      4720  5204  0 17:50 ?        00:00:00 /usr/bin/perl -w /home/StakeAdmin/ssh_tunnel/zippy/loader -d 0 -st 300 -e john@larsen-family.us
1000      6532  4720  0 17:50 ?        00:00:00 /usr/bin/procps -edf

Current netstat


Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    127.0.0.1:49189        LU-43060:49190         ESTABLISHED
  TCP    127.0.0.1:49190        LU-43060:49189         ESTABLISHED
  TCP    127.0.0.1:49196        LU-43060:49197         ESTABLISHED
  TCP    127.0.0.1:49197        LU-43060:49196         ESTABLISHED
  TCP    192.168.15.71:8194     LU-43060:49200         ESTABLISHED
  TCP    192.168.15.71:49200    LU-43060:8194          ESTABLISHED
  TCP    192.168.15.71:49202    LU-43060:49203         ESTABLISHED
  TCP    192.168.15.71:49203    LU-43060:49202         ESTABLISHED
  TCP    192.168.15.71:49448    lga15s29-in-f14:http   ESTABLISHED
  TCP    192.168.15.71:49450    a23-0-249-117:http     ESTABLISHED
  TCP    192.168.15.71:49451    a23-0-249-117:http     ESTABLISHED
  TCP    192.168.15.71:49455    216.49.178.206:15871   ESTABLISHED
  TCP    192.168.15.71:49461    216:http               ESTABLISHED
  TCP    192.168.15.71:49462    216:http               ESTABLISHED
  TCP    192.168.15.71:49463    216:http               ESTABLISHED
  TCP    192.168.15.71:49464    216:http               ESTABLISHED
  TCP    192.168.15.71:49465    216:http               ESTABLISHED
  TCP    192.168.15.71:49466    216:http               ESTABLISHED
  TCP    192.168.15.71:49467    216:http               ESTABLISHED
  TCP    192.168.15.71:49468    216:http               ESTABLISHED
  TCP    192.168.15.71:49475    domain:http            CLOSE_WAIT
  TCP    192.168.15.71:49476    domain:http            ESTABLISHED
  TCP    192.168.15.71:49477    domain:http            ESTABLISHED
  TCP    192.168.15.71:49478    208-47-254-25:http     CLOSE_WAIT
  TCP    192.168.15.71:49479    208-47-254-25:http     ESTABLISHED
  TCP    192.168.15.71:49489    ws5:http               CLOSE_WAIT
  TCP    192.168.15.71:49490    ws5:http               CLOSE_WAIT
  TCP    192.168.15.71:49492    ws5:http               CLOSE_WAIT
  TCP    192.168.15.71:49493    ws5:http               CLOSE_WAIT
  TCP    192.168.15.71:49494    ws5:http               CLOSE_WAIT
  TCP    192.168.15.71:49495    ws5:http               CLOSE_WAIT
  TCP    192.168.15.71:49496    lga15s29-in-f26:http   ESTABLISHED
  TCP    192.168.15.71:49497    lga15s29-in-f26:http   ESTABLISHED
  TCP    192.168.15.71:49500    72.21.215.147:http     ESTABLISHED
  TCP    192.168.15.71:49501    72.21.215.147:http     ESTABLISHED
  TCP    192.168.15.71:49502    lga15s29-in-f9:http    ESTABLISHED
  TCP    192.168.15.71:49504    207-171-168-101:http   ESTABLISHED
  TCP    192.168.15.71:49505    207-171-168-101:http   ESTABLISHED
  TCP    192.168.15.71:49506    64.34.206.53:http      CLOSE_WAIT
  TCP    192.168.15.71:49507    64.34.206.53:http      CLOSE_WAIT
  TCP    192.168.15.71:49508    207-171-168-103:http   ESTABLISHED
  TCP    192.168.15.71:49513    207-171-168-103:http   ESTABLISHED
  TCP    192.168.15.71:49514    72.21.215.147:http     ESTABLISHED
  TCP    192.168.15.71:49515    72.21.215.147:http     ESTABLISHED
  TCP    192.168.15.71:49516    72.21.214.128:http     ESTABLISHED
  TCP    192.168.15.71:49517    72.21.214.128:http     ESTABLISHED
  TCP    192.168.15.71:49521    208-47-254-18:http     CLOSE_WAIT
  TCP    192.168.15.71:49522    208-47-254-18:http     CLOSE_WAIT
  TCP    192.168.15.71:49523    208-47-254-18:http     CLOSE_WAIT
  TCP    192.168.15.71:49527    207-171-168-103:http   ESTABLISHED
  TCP    192.168.15.71:49528    207-171-168-103:http   ESTABLISHED
  TCP    192.168.15.71:49529    207-171-168-103:http   ESTABLISHED
  TCP    192.168.15.71:49724    ldssr4:8194            ESTABLISHED
  TCP    192.168.15.71:49743    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49746    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49749    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49750    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49751    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49752    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49755    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49756    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49757    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49758    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49759    192.168.15.1:65535     TIME_WAIT
  TCP    192.168.15.71:49761    173-14-166-5-NewEngland:ssh  TIME_WAIT

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.gQOQhImUn2 installed on Sun Aug  7 08:29:25 2011)
# (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`: testing ssmtp"; echo `date` > /home/StakeAdmin/crontest.txt

# Run the backups
#30 4 * * * /home/StakeAdmin/backup/backup.cron
#15 17 * * * /home/StakeAdmin/backup/backup.cron

# Kill the sophos client firewall if it is running
#00,10,20,30,40,50 * * * * /home/StakeAdmin/bin/kill_scf.pl

# Keep the SSH tunnel going
0,10,20,30,40,50 * * * * /home/StakeAdmin/ssh_tunnel/zippy/ssh_tunnel.pl

# Restart the VNC server in case someone shut it down
2 0 * * *  /c/Windows/system32/net start "uvnc_service"

loader.conf file

# Filename:  loader.conf
# Description:  This is the configuration file for the loader portion of the 
# ssh_tunnel program.  Once configured 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      billerica
# SSH_CLIENT_DIR  /home/StakeAdmin/ssh_tunnel/zippy
# SSH_SERVER      zippy
# SSH_SERVER_DIR  /home/tunnels/ssh_tunnel/billerica
#
########################################################################
# 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 larsen-family.us
Port = 22
UserKnownHostsFile = /home/StakeAdmin/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/StakeAdmin/ssh_tunnel/zippy/id_rsa.billerica

tunnel.conf file

# Filename:  tunnel.conf
#
# Description:  This is the configuration file for the tunnel and pulse sections 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 processed
# using perl 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.  DON'T REMOVE the
# leading pound sign (#).  The lines must be commented or the files won't work
# for ssh.
#
# 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 enabled but down.
# EMAIL_THRESHOLD   none
#
# 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        300
#
#
################################################################################
# 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.
#
# 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.
#
# 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.  The last two lines both use the
# name "localhost".  You could put the actual names of the ssh server and
# client instead, but using localhost is safest. If the machine's name
# were changed the tunnel would no longer work.  Using "localhost" guarantees
# the forwarding will work even if the machine's name changes.  The other 
# RemoteForward lines forward ports on the ssh server to ports on machines 
# on the LAN where the ssh client resides. These aren't required and should 
# be removed if not needed.
#
Host tunnel
HostName larsen-family.us
Port = 22
UserKnownHostsFile = /home/StakeAdmin/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/StakeAdmin/ssh_tunnel/zippy/id_rsa.billerica
Compression = yes
RemoteForward = 27900 localhost:5900
RemoteForward = 27022 localhost:22
LocalForward = 27022 localhost:22

################################################################################
Host heartbeat
HostName localhost
Port = 27022
UserKnownHostsFile = /home/StakeAdmin/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/StakeAdmin/ssh_tunnel/zippy/id_rsa.billerica

################################################################################
Host pulse
HostName localhost
Port = 27022
UserKnownHostsFile = /home/tunnels/ssh_tunnel/billerica/known_hosts
User = StakeAdmin
IdentityFile = /home/tunnels/ssh_tunnel/billerica/id_rsa.billerica

################################################################################
# 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  /home/StakeAdmin/ssh_tunnel/zippy
#
# 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 larsen-family.us
Port = 22
UserKnownHostsFile = /home/StakeAdmin/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/StakeAdmin/ssh_tunnel/zippy/id_rsa.billerica