ssh_tunnel statistics: kent-pc to zippy
Time: 2012-Feb-03 22:30:08 Fri
Current tunnel state: disabled          Current tunnel condition: DOWN
loader stats
------ loader (pid: 6036 ) ------------ (v3.31 2006-05-29) ----- State: disabled UP
Time: 2011-Oct-12 19:50:56 Wed
client: kent-pc
server: zippy
client heartbeat: Wed Oct 12 19:46:06 MDT 2011
server heartbeat: 2011-Oct-12 21:46:06 Wed
server heartbeat 1: 2011-Oct-12 21:46:06 Wed
server heartbeat 2: 2011-Oct-12 21:36:06 Wed
server heartbeat 3: 2011-Oct-12 21:31:06 Wed
server heartbeat 4: 2011-Oct-12 21:26:06 Wed
Sleep time: 300
loader loop counter: 13
bad port tests: 0 last: none yet
failed file updates: 0 last: none yet
tunnels killed: 2 last: 2011-Oct-12 19:50:26 Wed
emails sent: 3 last: 2011-Oct-12 19:50:24 Wed
email addresses: john@larsen-family.us
loader started: 2011-Oct-12 18:50:14 Wed
debug flags: 0x40000000
tunnel stats
------ tunnel (pid: 5808 ) ------------ (v3.31 2006-05-29) ----- State: enabled UP
Time: 2011-Oct-12 19:46:11 Wed
client: kent-pc
server: zippy
client heartbeat: Wed Oct 12 19:46:06 MDT 2011
server heartbeat: 2011-Oct-12 21:46:06 Wed
Sleep time: 300
tunnel loop counter: 12
bad port tests: 0 last: none yet
emails sent: 1 last: 2011-Oct-12 18:50:28 Wed
email addresses: john@larsen-family.us
tunnel started: 2011-Oct-12 18:51:03 Wed
debug flags: 0x40000000
Current users, uptime, and load average
22:30:08 up 1 day, 1:37, 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
jlarsen 516 1 0 Feb02 ? 00:00:00 /usr/bin/cygrunsrv
jlarsen 540 516 0 Feb02 ? 00:00:01 /usr/sbin/cron -n
jlarsen 4756 540 0 Feb04 ? 00:00:00 /usr/sbin/cron -n
jlarsen 5592 1 0 Feb04 ? 00:00:00 /usr/bin/perl -w /home/jlarsen/ssh_tunnel/zippy/ssh_tunnel.pl
jlarsen 5404 5592 0 Feb04 ? 00:00:00 /usr/bin/procps -edf
Current netstat
Active Connections
Proto Local Address Foreign Address State
TCP 127.0.0.1:10000 Kent-PC:53120 TIME_WAIT
TCP 127.0.0.1:10000 Kent-PC:53132 TIME_WAIT
TCP 192.168.0.3:53137 profiles:https ESTABLISHED
TCP 192.168.0.3:53138 profiles:http ESTABLISHED
TCP 192.168.0.3:53139 sml:ssh FIN_WAIT_1
TCP 192.168.0.3:53142 sml:ssh FIN_WAIT_1
TCP 192.168.0.3:57526 nuq04s08-in-f23:https ESTABLISHED
TCP 192.168.0.3:58071 ec2:http CLOSE_WAIT
TCP [fe80::a01e:27b9:285f:72d9%9]:445 Kent-PC:51676 ESTABLISHED
TCP [fe80::a01e:27b9:285f:72d9%9]:51676 Kent-PC:microsoft-ds ESTABLISHED
crontab file
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.RIvxEKBda5 installed on Wed May 25 20:32:08 2011)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
MAILTO=john@larsen-family.us
# Test cron-----------------------------------------------------------
#* * * * * echo "Testing crontab";touch /home/jlarsen/crontest
# DAILY BACKUPS ------------------------------------------------------
# Perform daily mode backups Monday through Saturday
#01 3 * * 1-6 /home/jlarsen/backup/backup daily -f /home/jlarsen/backup/daily.dirlist -e john@larsen-family.us,kjacomb@msn.com
#01 3 * * 1-6 /home/jlarsen/backup/backup daily -f /home/jlarsen/backup/daily.dirlist -e john@larsen-family.us
# WEEKLY BACKUPS ------------------------------------------------------
# Perform weekly mode backups on Sunday
#01 3 * * 0 /home/jlarsen/backup/backup weekly -f /home/jlarsen/backup/weekly.dirlist -e john@larsen-family.us,kjacomb@msn.com
#01 3 * * 0 /home/jlarsen/backup/backup weekly -f /home/jlarsen/backup/weekly.dirlist -e john@larsen-family.us
# BACKUPS -------------------------------------------------------------
20 15 * * * /home/jlarsen/backup/backup.cron
01 21 * * * /home/jlarsen/backup/backup.cron
#32 21 * * * /home/jlarsen/backup/backup.cron
# SSH_TUNNEL ----------------------------------------------------------
0,15,20,30,40,50 * * * * /home/jlarsen/ssh_tunnel/zippy/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 kent-pc
# SSH_CLIENT_DIR /home/jlarsen/ssh_tunnel/zippy
# SSH_SERVER zippy
# SSH_SERVER_DIR /home/tunnels/ssh_tunnel/kent-pc
#
########################################################################
# 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/jlarsen/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/zippy/id_rsa.kent-pc
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 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 sml.dnsalias.org
Port = 22
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/zippy/id_rsa.kent-pc
Compression = yes
RemoteForward = 54555 kent-pc:5910
RemoteForward = 55522 localhost:22
LocalForward = 55522 localhost:22
################################################################################
Host heartbeat
HostName localhost
Port = 55522
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/zippy/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/zippy/id_rsa.kent-pc
################################################################################
Host pulse
HostName localhost
Port = 55522
UserKnownHostsFile = /home/tunnels/ssh_tunnel/kent-pc/known_hosts
User = jlarsen
IdentityFile = /home/tunnels/ssh_tunnel/kent-pc/id_rsa.kent-pc
#IdentityFile = /home/tunnels/ssh_tunnel/kent-pc/id_rsa.merlinthemad
################################################################################
# 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.webpage
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/zippy/id_rsa.kent-pc