ssh_tunnel statistics: stakeclerk to old-beast

Time: 2006-Dec-08 14:00:18 Fri

Current tunnel state: disabled          Current tunnel condition: DOWN

loader stats

------ loader (pid: 1896 ) ------------ (v3.26 2006/04/15) ----- State: disabled DOWN
Time:                2006-Nov-19 00:00:34 Sun
client:              stakeclerk
server:              old-beast
client heartbeat:    Client Heartbeat
server heartbeat:    Server Heartbeat
server heartbeat 1:  Server Heartbeat 1
server heartbeat 2:  Server Heartbeat 2
server heartbeat 3:  Server Heartbeat 3
server heartbeat 4:  Server Heartbeat 4
Sleep time:          236
loader loop counter: 0
bad port tests:      1     last: 2006-Nov-19 00:00:31 Sun
failed file updates: 0     last: none yet
tunnels killed:      3     last: 2006-Nov-19 00:00:34 Sun
emails sent:         1     last: 2006-Nov-19 00:00:33 Sun
email addresses:     john@larsen-family.us
loader started:      YYYY-MMM-DD HH:MM:SS DOW
debug flags:         0x0

tunnel stats

------ tunnel (pid: 1928 ) ------------ (v3.26 2006/04/15) ----- State: enabled UP
Time:                2006-Apr-15 23:32:03 Sat
client:              stakeclerk
server:              old-beast
client heartbeat:    Sat Apr 15 23:31:57 EDT 2006
server heartbeat:    Sat Apr 15 23:28:29 EDT 2006
Sleep time:          236
tunnel loop counter: 37
bad port tests:      0     last: none yet
emails sent:         1     last: 2006-Apr-15 21:10:19 Sat
email addresses:     john@larsen-family.us
tunnel started:      2006-Apr-15 21:10:21 Sat
debug flags:         0x0

Current users, uptime, and load average

 14:00:18 up 12 days,  3:49,  0 users,  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
SYSTEM     500     1  0 Nov26 ?        00:00:42 /usr/bin/cygrunsrv 
SYSTEM     524   500  0 Nov26 ?        00:00:51 /usr/sbin/cron -D 
SYSTEM     700     1  0 Nov26 ?        00:00:40 /usr/bin/cygrunsrv 
SYSTEM     716   700  0 Nov26 ?        00:01:35 /usr/sbin/sshd -D 
SYSTEM    1200   524  0 Nov26 ?        00:00:50 /USR/SBIN/CRON -D 
Clerk     1472  1200  0 Nov26 ?        00:00:51 /usr/sbin/sendmail -FCronDaemon -odi -oem theClaw56@comcast.net 
Clerk      548     1  0 Nov26 ?        00:02:44 /usr/bin/perl -w /home/Clerk/ssh_tunnel/screamer/loader -d 0 -st 296 -e john@larsen-family.us 
Clerk     1720     1  0 Dec07 ?        00:00:06 /usr/bin/perl -w /home/Clerk/ssh_tunnel/screamer/tunnel -d 0 -st 296 -e john@larsen-family.us 
Clerk     1916     1  0 Dec07 ?        00:00:10 /usr/bin/ssh -F /home/Clerk/ssh_tunnel/screamer/tunnel.conf -n tunnel /home/tunnels/ssh_tunnel/stakeclerk/pulse -d 0 -st 296 -e john@larsen-family.us 
SYSTEM    1480   524  0 13:59 ?        00:00:00 /USR/SBIN/CRON -D 
Clerk     1652  1720  0 14:00 ?        00:00:00 sh -c /usr/bin/ssh  -F tunnel.conf -n heartbeat "echo `date` > /home/tunnels/ssh_tunnel/stakeclerk/heartbeat.stakeclerk" 2>/dev/null 
Clerk     2040  1652  0 14:00 ?        00:00:00 /usr/bin/ssh -F tunnel.conf -n heartbeat echo Fri Dec  8 14:00:06 EST 2006 > /home/tunnels/ssh_tunnel/stakeclerk/heartbeat.stakeclerk 
SYSTEM    2072   716  0 14:00 ?        00:00:00 /usr/sbin/sshd -D -R 
SYSTEM    1684  2072  0 14:00 ?        00:00:00 /usr/sbin/sshd -D -R 
Clerk     1428     1  3 14:00 ?        00:00:00 /usr/bin/perl -w /home/Clerk/ssh_tunnel/old-beast/ssh_tunnel.pl 
Clerk     1460  1428  0 14:00 ?        00:00:00 /usr/bin/procps -edf 

Current netstat


Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    StakeClerk:ssh         StakeClerk:1323        ESTABLISHED
  TCP    StakeClerk:1034        fhc-beast:netbios-ssn  ESTABLISHED
  TCP    StakeClerk:1308        c-66-31-7-212.hsd1.nh.comcast.net:ssh  TIME_WAIT
  TCP    StakeClerk:1313        c-66-31-7-212.hsd1.nh.comcast.net:ssh  TIME_WAIT
  TCP    StakeClerk:1319        c-66-31-7-212.hsd1.nh.comcast.net:imap  TIME_WAIT
  TCP    StakeClerk:1323        StakeClerk:ssh         ESTABLISHED
  TCP    StakeClerk:2955        c-66-31-7-212.hsd1.nh.comcast.net:ssh  ESTABLISHED
  TCP    StakeClerk:4991        fhc-beast:smtp         CLOSE_WAIT
  TCP    StakeClerk:1321        StakeClerk:33022       ESTABLISHED
  TCP    StakeClerk:1324        StakeClerk:1325        FIN_WAIT_2
  TCP    StakeClerk:1325        StakeClerk:1324        CLOSE_WAIT
  TCP    StakeClerk:1326        StakeClerk:1327        ESTABLISHED
  TCP    StakeClerk:1327        StakeClerk:1326        ESTABLISHED
  TCP    StakeClerk:33022       StakeClerk:1321        ESTABLISHED

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.2224 installed on Sat Apr  8 18:07:41 2006)
# (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $)
MAILTO=theClaw56@comcast.net

# Verifying that email works from cron
#26 * * * * cat /etc/motd

# ssh_tunnel to screamer
0,10,20,30,40,50 * * * * /home/Clerk/ssh_tunnel/screamer/ssh_tunnel.pl
# ssh_tunnel to old-beast
0,10,20,30,40,50 * * * * /home/Clerk/ssh_tunnel/old-beast/ssh_tunnel.pl

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      stakeclerk
# SSH_CLIENT_DIR  /home/Clerk/ssh_tunnel/old-beast
# SSH_SERVER      old-beast
# SSH_SERVER_DIR  /home/tunnels/ssh_tunnel/stakeclerk
#
########################################################################
# 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 = 143
UserKnownHostsFile = /home/Clerk/ssh_tunnel/old-beast/known_hosts
User = tunnels
IdentityFile = /home/Clerk/ssh_tunnel/old-beast/id_rsa.stakeclerk

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 disabled
#
# The email addresses below receive diagnostic messages.  Separate
# multiple addresses with commas and no white space.  The word "none"
# turns off email sending and is the default.  The same email address
# is used by cron, loader, tunnel, and pulse.
# EMAIL_ADDRESS     john@larsen-family.us
#
# The threshold defined below is how many port failures are required
# before an email is sent.  Set this to "none" to turn this off.  If
# the ssh_server's ssh port isn't accessible then the loader kills 
# the tunnel.  This periodic email serves as a reminder that the tunnel
# is down.
# EMAIL_THRESHOLD   100
#
# 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        236
#
#
################################################################################
# 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 larsen-family.us
Port = 143
UserKnownHostsFile = /home/Clerk/ssh_tunnel/old-beast/known_hosts
User = tunnels
IdentityFile = /home/Clerk/ssh_tunnel/old-beast/id_rsa.stakeclerk
Compression = yes
RemoteForward = 22222 stakeclerk:22
LocalForward = 22222 old-beast:22

################################################################################
Host heartbeat
HostName localhost
Port = 22222
UserKnownHostsFile = /home/Clerk/ssh_tunnel/old-beast/known_hosts
User = tunnels
IdentityFile = /home/Clerk/ssh_tunnel/old-beast/id_rsa.stakeclerk

################################################################################
Host pulse
HostName localhost
Port = 22222
UserKnownHostsFile = /home/tunnels/ssh_tunnel/stakeclerk/known_hosts
User = clerk
IdentityFile = /home/tunnels/ssh_tunnel/stakeclerk/id_rsa.stakeclerk

################################################################################
# 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  /w/html/ssh_tunnel
#
# 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/Clerk/ssh_tunnel/old-beast/known_hosts.webpage
User = tunnels
IdentityFile = /home/Clerk/ssh_tunnel/old-beast/id_rsa.stakeclerk