ssh_tunnel statistics: tal-rhe3-1 to screamer

Time: 2012-Jan-23 19:30:03 Mon

Current tunnel state: disabled          Current tunnel condition: DOWN

loader stats

------ loader (pid: 32315 ) ------------ (v3.26 2006/04/15) ----- State: disabled DOWN
Time:                2012-Jan-22 00:00:05 Sun
client:              tal-rhe3-1
server:              screamer
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:          240
loader loop counter: 0
bad port tests:      0     last: none yet
failed file updates: 0     last: none yet
tunnels killed:      3     last: 2012-Jan-22 00:00:05 Sun
emails sent:         1     last: 2012-Jan-22 00:00:05 Sun
email addresses:     john@larsen-family.us
loader started:      YYYY-MMM-DD HH:MM:SS DOW
debug flags:         0x0

tunnel stats

------ tunnel (pid: 20946 ) ------------ (v3.26 2006/04/15) ----- State: enabled UP
Time:                2006-May-22 13:44:42 Mon
client:              tal-rhe3-1
server:              screamer
client heartbeat:    Mon May 22 13:44:40 EDT 2006
server heartbeat:    Mon May 22 14:42:07 EDT 2006
Sleep time:          240
tunnel loop counter: 7
bad port tests:      0     last: none yet
emails sent:         1     last: 2006-May-22 13:20:09 Mon
email addresses:     john@larsen-family.us
tunnel started:      2006-May-22 13:20:40 Mon
debug flags:         0x0

Current users, uptime, and load average

 19:30:03 up 292 days, 11:26,  0 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT

Current processes

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0  2011 ?        00:00:21 init [3]                                              
root         2     1  0  2011 ?        00:00:09 [ksoftirqd/0]
root         3     1  0  2011 ?        00:01:41 [events/0]
root         4     3  0  2011 ?        00:00:00 [khelper]
root         5     3  0  2011 ?        00:00:00 [kblockd/0]
root         6     1  0  2011 ?        00:00:00 [khubd]
root        28     3  0  2011 ?        00:00:21 [pdflush]
root        29     3  0  2011 ?        00:00:19 [pdflush]
root        31     3  0  2011 ?        00:00:00 [aio/0]
root        26     1  0  2011 ?        00:00:17 [kapmd]
root        30     1  0  2011 ?        00:00:24 [kswapd0]
root       105     1  0  2011 ?        00:00:00 [kseriod]
root       176     3  0  2011 ?        00:00:00 [kmirrord/0]
root       185     1  0  2011 ?        00:05:25 [kjournald]
root      1021     1  0  2011 ?        00:00:00 udevd
root      1262     1  0  2011 ?        00:00:00 [kjournald]
root      1816     1  0  2011 ?        00:01:53 syslogd -m 0
root      1820     1  0  2011 ?        00:00:04 klogd -x
rpc       1848     1  0  2011 ?        00:10:55 portmap
rpcuser   1868     1  0  2011 ?        00:00:00 rpc.statd
root      1902     1  0  2011 ?        00:00:06 rpc.idmapd
root      1935     1  0  2011 ?        00:00:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-scripts/apmscript
root      1959     1  0  2011 ?        00:00:01 ypbind
root      2137     1  0  2011 ?        00:00:06 /usr/sbin/automount --timeout=60 /u yp auto_usr -bg
root      2139     1  0  2011 ?        00:00:05 /usr/sbin/automount --timeout=60 /h yp auto.home -bg
root      2157     1  0  2011 ?        00:00:05 /usr/sbin/automount --timeout=60 /s yp auto_os -bg
root      2222     1  0  2011 ?        00:00:07 /usr/sbin/automount --timeout=60 /w yp auto_web -bg
root      2293     1  0  2011 ?        00:00:07 /usr/sbin/automount --timeout=60 /v yp auto_vob -bg
root      2319     1  0  2011 ?        00:00:00 /usr/sbin/amd -F /etc/amd.conf
root      2332     1  0  2011 ?        00:00:00 [rpciod]
root      2333     1  0  2011 ?        00:00:00 [lockd]
root      2335     1  0  2011 ?        00:00:02 /usr/sbin/smartd
root      2439     1  0  2011 ?        00:00:03 /usr/sbin/sshd
root      2454     1  0  2011 ?        00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
ntp       2505     1  0  2011 ?        00:00:30 ntpd -u ntp:ntp -p /var/run/ntpd.pid
root      2526     1  0  2011 ?        00:00:13 sendmail: accepting connections
smmsp     2534     1  0  2011 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
root      2545     1  0  2011 ?        00:00:00 gpm -m /dev/input/mice -t imps2
root      2555     1  0  2011 ?        00:00:05 crond
xfs       2595     1  0  2011 ?        00:00:00 xfs -droppriv -daemon
daemon    2615     1  0  2011 ?        00:00:02 /usr/sbin/atd
dbus      2844     1  0  2011 ?        00:00:00 dbus-daemon-1 --system
root      2856     1  0  2011 ?        00:00:19 rhnsd --interval 240
root      2867     1  0  2011 ?        00:00:00 cups-config-daemon
root      2879     1  0  2011 ?        00:43:04 hald
root      2888     1  0  2011 tty1     00:00:00 /sbin/mingetty tty1
root      2889     1  0  2011 tty2     00:00:00 /sbin/mingetty tty2
root      2890     1  0  2011 tty3     00:00:00 /sbin/mingetty tty3
root      2891     1  0  2011 tty4     00:00:00 /sbin/mingetty tty4
root      2892     1  0  2011 tty5     00:00:00 /sbin/mingetty tty5
root      2893     1  0  2011 tty6     00:00:00 /sbin/mingetty tty6
root      8369     1  0  2011 ?        00:00:06 /usr/green/lm -h 1 -v -l /usr/green/lm_logfile.txt
root      6977     1  0 Jan22 ?        00:00:00 cupsd
root     15305  2555  0 19:30 ?        00:00:00 crond
root     15306  2555  0 19:30 ?        00:00:00 crond
root     15307 15305 12 19:30 ?        00:00:00 /usr/bin/perl -w /root/.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl
root     15308 15306 12 19:30 ?        00:00:00 [ssh_tunnel.pl] 
root     15321 15307  0 19:30 ?        00:00:00 /usr/bin/perl -w /root/.ssh/ssh_tunnel/old-beast/ssh_tunnel.pl
root     15322 15321  0 19:30 ?        00:00:00 sh -c echo test | /usr/bin/telnet larsen-family.us 143 2>1
root     15324 15322  0 19:30 ?        00:00:00 /usr/bin/telnet larsen-family.us 143
root     15331     1  0 19:30 ?        00:00:00 /usr/bin/perl -w /root/.ssh/ssh_tunnel/screamer/ssh_tunnel.pl
root     15336 15331  0 19:30 ?        00:00:00 /bin/ps -edf

Current netstat

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State      
tcp        0      0 tal-rhe4-1:56305            173-14-166-5-NewEngland:ssh TIME_WAIT   
tcp        0      1 tal-rhe4-1:56304            173-14-166-5-NewEnglan:imap SYN_SENT    
tcp        0      0 tal-rhe4-1:645              nis1:sunrpc                 TIME_WAIT   
tcp        0      0 tal-rhe4-1:644              nis1:sunrpc                 TIME_WAIT   
tcp        0      0 tal-rhe4-1:647              nis1:745                    TIME_WAIT   
tcp        0      0 tal-rhe4-1:644              nis1:sunrpc                 TIME_WAIT   
tcp        0      0 tal-rhe4-1:678              nis1:745                    TIME_WAIT   
tcp        0      0 tal-rhe4-1:681              nis1:745                    TIME_WAIT   
tcp        0      0 tal-rhe4-1:647              nis1:745                    TIME_WAIT   
tcp        0      0 tal-rhe4-1:646              nis1:745                    TIME_WAIT   

crontab file

# This is root's crontab
0,10,20,30,40,50 * * * * /root/.ssh/ssh_tunnel/screamer/ssh_tunnel.pl
0,10,20,30,40,50 * * * * /root/.ssh/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.  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      tal-rhe3-1
# SSH_CLIENT_DIR  /root/.ssh/ssh_tunnel/screamer
# SSH_SERVER      screamer
# SSH_SERVER_DIR  /home/tunnels/ssh_tunnel/tal-rhe3-1
#
########################################################################
# 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 = /root/.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /root/.ssh/ssh_tunnel/screamer/id_rsa.tal-rhe3-1

tunnel.conf file

# Filename:  tunnel.conf
#
# Description:  This is the configuration file for the tunnel portion of the 
# ssh_tunnel program.  The contents of this file can be changed during program execution.
# It is important not to change the formatting of the file because it is read by the
# tunnel program and processed using awk which is expecting things to be in certain
# locations.
#
# tunnel.conf has three sections:
# 1. Configuration information such as email addresses and thresholds.
# 2. The ssh host configuration for the tunnel.  This consists of two
#    host definitions, tunnel and heartbeat.  The tunnel is the permanent
#    connection and defines port forwarding.  The heartbeat uses one of 
#    the forwarded ports to write and copy heartbeat files between the
#    ssh client and the ssh server.  Changing heartbeats indicate that the
#    tunnel is functioning.
# 3. The webpage configuration section as described below.  This has the
#    ssh host configuration for updating a webpage on a webserver.
#
################################################################################
# The following section contains configuration information
#
# The tunnel is either "enabled" or "disabled" based on the value given
# below.  If disabled, then no processes are running on either the
# client or the server.  A cron job on the client runs ssh_tunnel.pl periodically
# to check if tunnel.conf has changed on the server.  If a change is detected
# then the new tunnel.conf file is transfered over.  If the tunnel state
# becomes "enabled" then the tunnel is activated.
# TUNNEL_STATE disabled
#
# The email addresses below receive diagnostic messages.  Separate
# multiple addresses with commas and no white space.  The word "none"
# turns off email sending and is the default.  The same email address
# is used by cron, loader, tunnel, and pulse.
# EMAIL_ADDRESS     john@larsen-family.us
#
# The threshold defined below is how many port failures are required
# before an email is sent.  Set this to "none" to turn this off.  If
# the ssh_server's ssh port isn't accessible then the loader kills 
# the tunnel.  This periodic email serves as a reminder that the tunnel
# is down.
# EMAIL_THRESHOLD   50
#
# The loader, tunnel, and pulse programs all have the same sleep value.
# The sleep time can be changed here.  It should be in the range of
# 60 to 3600 seconds.  Shorter sleep times increase system loading.
# The sleep time must be less than half the crontab time for ssh_tunnel.pl.
# SLEEP_TIME        240
#
#
################################################################################
# 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 = 22
UserKnownHostsFile = /root/.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /root/.ssh/ssh_tunnel/screamer/id_rsa.tal-rhe3-1
Compression = yes
RemoteForward = 56722 localhost:22
LocalForward = 56722 localhost:22

################################################################################
Host heartbeat
HostName localhost
Port = 56722
UserKnownHostsFile = /root/.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /root/.ssh/ssh_tunnel/screamer/id_rsa.tal-rhe3-1

################################################################################
Host pulse
HostName localhost
Port = 56722
UserKnownHostsFile = /home/tunnels/ssh_tunnel/tal-rhe3-1/known_hosts
User = root
IdentityFile = /home/tunnels/ssh_tunnel/tal-rhe3-1/id_rsa.tal-rhe3-1

################################################################################
# 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 larsen-family.us
Port = 22
UserKnownHostsFile = /root/.ssh/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /root/.ssh/ssh_tunnel/screamer/id_rsa.tal-rhe3-1