ssh_tunnel statistics: tal-mac-mini to screamer

Time: 2006-Mar-29 15:10:06 Wed

Current tunnel state: disabled          Current tunnel condition: DOWN

loader stats

------ loader (pid: 10279 ) ------------ (v3.16 2006/03/23) ----- State: disabled UP
Time:                2006-Mar-23 16:20:34 Thu
client:              tal-mac-mini
server:              screamer
client heartbeat:    Thu Mar 23 16:16:33 EST 2006
server heartbeat:    Thu Mar 23 16:16:45 EST 2006
server heartbeat 1:  Thu Mar 23 16:16:45 EST 2006
server heartbeat 2:  Thu Mar 23 16:12:46 EST 2006
server heartbeat 3:  Thu Mar 23 16:08:47 EST 2006
server heartbeat 4:  Server Heartbeat 1
Sleep time:          239
loader loop counter: 6
bad port tests:      0
failed file updates: 0
tunnels killed:      4
emails sent:         5
email addresses:     john@larsen-family.us
loader started:      2006-Mar-23 16:00:03 Thu
debug flags:         0x0

tunnel stats

------ tunnel (pid: 10796 ) ------------ (v3.16 2006/03/23) ----- State: enabled UP
Time:                2006-Mar-23 16:16:53 Thu
client:              tal-mac-mini
server:              screamer
client heartbeat:    Thu Mar 23 16:16:33 EST 2006
server heartbeat:    Thu Mar 23 16:16:45 EST 2006
Sleep time:          239
tunnel loop counter: 3
bad port tests:      0
emails sent:         0
email addresses:     john@larsen-family.us
tunnel started:      2006-Mar-23 16:08:35 Thu
debug flags:         0x0

Current users, uptime, and load average

 15:10:06 up 6 days,  2:30,  1 user,  load average: 0.32, 0.08, 0.02
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
xhliu    pts/0    enterprise       14:28   35:24   0.20s  0.20s -csh

Current processes

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Mar23 ?        00:00:00 init [3]                               
root         2     1  0 Mar23 ?        00:00:00 [ksoftirqd/0]
root         3     1  0 Mar23 ?        00:00:00 [watchdog/0]
root         4     1  0 Mar23 ?        00:00:00 [events/0]
root         5     1  0 Mar23 ?        00:00:00 [khelper]
root         6     1  0 Mar23 ?        00:00:00 [kthread]
root        64     6  0 Mar23 ?        00:00:00 [kblockd/0]
root        74     6  0 Mar23 ?        00:00:00 [khubd]
root       127     6  0 Mar23 ?        00:00:00 [pdflush]
root       128     6  0 Mar23 ?        00:00:00 [pdflush]
root       130     6  0 Mar23 ?        00:00:00 [aio/0]
root       131     6  0 Mar23 ?        00:00:00 [xfslogd/0]
root       132     6  0 Mar23 ?        00:00:00 [xfsdatad/0]
root       133     6  0 Mar23 ?        00:00:00 [xfsbufd]
root       129     1  0 Mar23 ?        00:00:00 [kswapd0]
root       798     6  0 Mar23 ?        00:00:00 [ata/0]
root       854     1  0 Mar23 ?        00:00:00 [kjournald]
root      1185     1  0 Mar23 ?        00:00:00 udevd -d
root      1586     1  0 Mar23 ?        00:00:00 [khpsbpkt]
root      1591     1  0 Mar23 ?        00:00:00 [knodemgrd_0]
root      2020     1  0 Mar23 ?        00:00:00 [kjournald]
root      2443     1  0 Mar23 ?        00:00:00 /sbin/dhclient -1 -q -lf /var/lib/dhcp/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid eth0
root      2472     1  0 Mar23 ?        00:00:03 syslogd -m 0
root      2474     1  0 Mar23 ?        00:00:00 klogd -x
rpc       2489     1  0 Mar23 ?        00:00:08 portmap
root      2498     1  0 Mar23 ?        00:00:00 auditd
root      2502     6  0 Mar23 ?        00:00:00 [kauditd]
root      2511     1  0 Mar23 ?        00:00:00 hcid: processing events
root      2513     1  0 Mar23 ?        00:00:00 sdpd
root      2528     1  0 Mar23 ?        00:00:00 [krfcommd]
root      2555     1  0 Mar23 ?        00:00:00 ypbind
root      2710     1  0 Mar23 ?        00:00:00 /usr/sbin/automount --timeout=60 /misc file /etc/auto.misc
root      2715     1  0 Mar23 ?        00:00:00 /usr/sbin/automount --timeout=60 /net program /etc/auto.net
root      2788     1  0 Mar23 ?        00:00:00 /usr/sbin/automount --timeout=60 /u yp auto_usr -bg
root      2940     1  0 Mar23 ?        00:00:00 /usr/sbin/automount --timeout=60 /s yp auto_os -bg
root      3067     1  0 Mar23 ?        00:00:00 nifd -n
nobody    3097     1  0 Mar23 ?        00:00:02 mDNSResponder
root      3232     1  0 Mar23 ?        00:00:00 /usr/sbin/sshd
root      3260     1  0 Mar23 ?        00:00:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
ntp       3277     1  0 Mar23 ?        00:00:01 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g
root      3356     1  0 Mar23 ?        00:00:00 sendmail: accepting connections
smmsp     3378     1  0 Mar23 ?        00:00:00 sendmail: Queue runner@01:00:00 for /var/spool/clientmqueue
privoxy   3387     1  0 Mar23 ?        00:00:00 /usr/sbin/privoxy --user privoxy privoxy --pidfile /var/run/privoxy.pid /etc/privoxy/config
root      3395     1  0 Mar23 ?        00:00:00 gpm -m /dev/input/mice -t imps2
canna     3406     1  0 Mar23 ?        00:00:01 /usr/sbin/cannaserver -syslog -u canna
root      3416     1  0 Mar23 ?        00:00:01 crond
xfs       3454     1  0 Mar23 ?        00:00:00 xfs -droppriv -daemon
root      3469     1  0 Mar23 ?        00:00:00 /usr/sbin/atd
dbus      3477     1  0 Mar23 ?        00:00:00 dbus-daemon --system
root      3489     1  0 Mar23 ?        00:00:00 cups-config-daemon
root      3499     1  0 Mar23 ?        00:00:00 hald --retain-privileges
root      3513  3499  0 Mar23 ?        00:00:00 hald-addon-storage
root      3533     1  0 Mar23 ?        00:00:00 mdadm --monitor --scan
root      3550     1  0 Mar23 tty1     00:00:00 /sbin/mingetty tty1
root      3551     1  0 Mar23 tty2     00:00:00 /sbin/mingetty tty2
root      3552     1  0 Mar23 tty3     00:00:00 /sbin/mingetty tty3
root      3553     1  0 Mar23 tty4     00:00:00 /sbin/mingetty tty4
root      3554     1  0 Mar23 tty5     00:00:00 /sbin/mingetty tty5
root      3555     1  0 Mar23 tty6     00:00:00 /sbin/mingetty tty6
root      5345     6  0 Mar23 ?        00:00:00 [rpciod/0]
root      5346     1  0 Mar23 ?        00:00:00 [lockd]
root     23855     1  0 Mar26 ?        00:00:00 cupsd
root     27369  3232  0 14:28 ?        00:00:00 sshd: xhliu [priv]
xhliu    27372 27369  0 14:28 ?        00:00:00 sshd: xhliu@pts/0
xhliu    27373 27372  0 14:28 pts/0    00:00:00 -csh
root     28421  3416  0 15:10 ?        00:00:00 CROND
root     28423 28421  5 15:10 ?        00:00:00 [ssh_tunnel.pl] 
root     28440     1  0 15:10 ?        00:00:00 /usr/bin/perl -w /root/.ssh/screamer/ssh_tunnel.pl
root     28445 28440  0 15:10 ?        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 dhcp_client-120-118:41853   c-66-31-7-212.hsd1.nh.c:ssh TIME_WAIT   
tcp        0      0 dhcp_client-120-11:npmp-gui nis1:691                    TIME_WAIT   
tcp        0      0 dhcp_client-120-118:614     nis1:691                    TIME_WAIT   
tcp        0      0 dhcp_client-120-118:gii     nis1:691                    TIME_WAIT   
tcp        0      0 dhcp_client-120-118:617     nis1:691                    TIME_WAIT   
tcp        0      0 dhcp_client-120-118:59396   nis1:sunrpc                 TIME_WAIT   
tcp        0      0 dhcp_client-120-118:60057   nis1:sunrpc                 TIME_WAIT   
tcp        0      0 dhcp_client-120-118:58766   nis1:sunrpc                 TIME_WAIT   
tcp        0      0 dhcp_client-120-118:43934   nis1:sunrpc                 TIME_WAIT   
tcp        0      0 dhcp_client-120-118:41613   nis1:sunrpc                 TIME_WAIT   
tcp        0      0 dhcp_client-120-118:42228   nis1:sunrpc                 TIME_WAIT   
tcp        0      0 tal-mac-mini.mc.com:ssh     enterprise.mc.com:40390     ESTABLISHED 

crontab file

# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.19435 installed on Mon Mar 20 11:33:23 2006)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# This is root's crontab
0,10,20,30,40,50 * * * * /root/.ssh/screamer/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-mac-mini
# SSH_CLIENT_DIR  /root/.ssh/screamer
# SSH_SERVER      screamer
# SSH_SERVER_DIR  /home/tunnels/ssh_tunnel/tal-mac-mini
#
########################################################################
# 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/screamer/known_hosts
User = tunnels
IdentityFile = /root/.ssh/screamer/id_rsa.tal-mac-mini

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        239
#
#
################################################################################
# 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/screamer/known_hosts
User = tunnels
IdentityFile = /root/.ssh/screamer/id_rsa.tal-mac-mini
Compression = yes
RemoteForward = 39922 localhost:22
LocalForward = 39922 localhost:22

################################################################################
Host heartbeat
HostName localhost
Port = 39922
UserKnownHostsFile = /root/.ssh/screamer/known_hosts
User = tunnels
IdentityFile = /root/.ssh/screamer/id_rsa.tal-mac-mini

################################################################################
Host pulse
HostName localhost
Port = 39922
UserKnownHostsFile = /home/tunnels/ssh_tunnel/tal-mac-mini/known_hosts
User = root
IdentityFile = /home/tunnels/ssh_tunnel/tal-mac-mini/id_rsa.tal-mac-mini

################################################################################
# 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/screamer/known_hosts
User = tunnels
IdentityFile = /root/.ssh/screamer/id_rsa.tal-mac-mini