ssh_tunnel statistics: fhc-beast to screamer

Time: 2014-Sep-14 11:40:03 Sun

Current tunnel state: disabled          Current tunnel condition: DOWN

loader stats

------ loader (pid: 9500 ) ------------ (v3.26 2006/04/15) ----- State: disabled DOWN
Time:                2014-Aug-31 12:50:01 Sun
client:              fhc-beast
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:          296
loader loop counter: 0
bad port tests:      0     last: none yet
failed file updates: 0     last: none yet
tunnels killed:      3     last: 2014-Aug-31 12:50:01 Sun
emails sent:         0     last: none yet
email addresses:     john@larsen-family.us
loader started:      YYYY-MMM-DD HH:MM:SS DOW
debug flags:         0x1300000

tunnel stats

------ tunnel (pid: 2071 ) ------------ (v3.26 2006/04/15) ----- State: enabled UP
Time:                2013-Apr-20 15:53:02 Sat
client:              fhc-beast
server:              screamer
client heartbeat:    Sat Apr 20 15:53:01 EDT 2013
server heartbeat:    Sat Apr 20 15:48:06 EDT 2013
Sleep time:          296
tunnel loop counter: 166
bad port tests:      0     last: none yet
emails sent:         1     last: 2013-Apr-20 02:18:30 Sat
email addresses:     john@larsen-family.us
tunnel started:      2013-Apr-20 02:19:01 Sat
debug flags:         0x1300000

Current users, uptime, and load average

 11:40:03 up 60 days,  2:23,  0 users,  load average: 0.12, 0.14, 0.14
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT

Current processes

UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 Jul16 ?        00:00:16 /sbin/init
root         2     0  0 Jul16 ?        00:00:00 [kthreadd]
root         3     2  0 Jul16 ?        00:02:09 [migration/0]
root         4     2  0 Jul16 ?        00:00:25 [ksoftirqd/0]
root         5     2  0 Jul16 ?        00:00:00 [watchdog/0]
root         6     2  0 Jul16 ?        00:01:21 [migration/1]
root         7     2  0 Jul16 ?        00:00:14 [ksoftirqd/1]
root         8     2  0 Jul16 ?        00:00:00 [watchdog/1]
root         9     2  0 Jul16 ?        00:00:34 [events/0]
root        10     2  0 Jul16 ?        00:00:27 [events/1]
root        11     2  0 Jul16 ?        00:00:00 [cpuset]
root        12     2  0 Jul16 ?        00:00:00 [khelper]
root        13     2  0 Jul16 ?        00:00:00 [netns]
root        14     2  0 Jul16 ?        00:00:00 [async/mgr]
root        15     2  0 Jul16 ?        00:00:00 [pm]
root        17     2  0 Jul16 ?        00:00:02 [sync_supers]
root        18     2  0 Jul16 ?        00:00:03 [bdi-default]
root        19     2  0 Jul16 ?        00:00:00 [kintegrityd/0]
root        20     2  0 Jul16 ?        00:00:00 [kintegrityd/1]
root        21     2  0 Jul16 ?        00:01:42 [kblockd/0]
root        22     2  0 Jul16 ?        00:01:25 [kblockd/1]
root        23     2  0 Jul16 ?        00:00:00 [kacpid]
root        24     2  0 Jul16 ?        00:00:00 [kacpi_notify]
root        25     2  0 Jul16 ?        00:00:00 [kacpi_hotplug]
root        26     2  0 Jul16 ?        00:04:25 [ata/0]
root        27     2  0 Jul16 ?        00:05:39 [ata/1]
root        28     2  0 Jul16 ?        00:00:00 [ata_aux]
root        29     2  0 Jul16 ?        00:00:00 [ksuspend_usbd]
root        30     2  0 Jul16 ?        00:00:00 [khubd]
root        31     2  0 Jul16 ?        00:00:00 [kseriod]
root        32     2  0 Jul16 ?        00:00:00 [kmmcd]
root        35     2  0 Jul16 ?        00:00:01 [khungtaskd]
root        36     2  0 Jul16 ?        00:00:46 [kswapd0]
root        37     2  0 Jul16 ?        00:00:00 [ksmd]
root        38     2  0 Jul16 ?        00:00:00 [aio/0]
root        39     2  0 Jul16 ?        00:00:00 [aio/1]
root        40     2  0 Jul16 ?        00:00:00 [ecryptfs-kthrea]
root        41     2  0 Jul16 ?        00:00:00 [crypto/0]
root        42     2  0 Jul16 ?        00:00:00 [crypto/1]
root        45     2  0 Jul16 ?        00:00:00 [kstriped]
root        46     2  0 Jul16 ?        00:00:00 [kmpathd/0]
root        47     2  0 Jul16 ?        00:00:00 [kmpathd/1]
root        48     2  0 Jul16 ?        00:00:00 [kmpath_handlerd]
root        49     2  0 Jul16 ?        00:00:00 [ksnapd]
root        50     2  0 Jul16 ?        00:06:49 [kondemand/0]
root        51     2  0 Jul16 ?        00:00:00 [kondemand/1]
root        52     2  0 Jul16 ?        00:00:00 [kconservative/0]
root        53     2  0 Jul16 ?        00:00:00 [kconservative/1]
root       293     2  0 Jul16 ?        00:00:00 [scsi_eh_0]
root       295     2  0 Jul16 ?        00:18:32 [scsi_eh_1]
root       304     2  0 Jul16 ?        00:00:00 [scsi_eh_2]
root       307     2  0 Jul16 ?        00:00:00 [scsi_eh_3]
root       330     2  0 Jul16 ?        00:00:00 [usbhid_resumer]
root       351     2  0 Jul16 ?        00:02:42 [flush-8:0]
root       354     2  0 Jul16 ?        00:03:43 [jbd2/sda1-8]
root       355     2  0 Jul16 ?        00:00:00 [ext4-dio-unwrit]
root       356     2  0 Jul16 ?        00:00:00 [ext4-dio-unwrit]
root       375     1  0 Jul16 ?        00:00:00 mountall --daemon
root       398     1  0 Jul16 ?        00:00:00 upstart-udev-bridge --daemon
root       400     1  0 Jul16 ?        00:00:00 udevd --daemon
root       556   400  0 Jul16 ?        00:00:00 udevd --daemon
root       557   400  0 Jul16 ?        00:00:00 udevd --daemon
root       697     2  0 Jul16 ?        00:00:00 [nouveau/0]
root       698     2  0 Jul16 ?        00:00:00 [nouveau/1]
root       711     2  0 Jul16 ?        00:00:00 [ttm_swap]
root       792     2  0 Jul16 ?        00:00:00 [hd-audio0]
root       816     1  0 Jul16 ?        00:00:00 smbd -F
syslog     830     1  0 Jul16 ?        00:02:43 rsyslogd -c4
102        845     1  0 Jul16 ?        00:09:38 dbus-daemon --system --fork
root       853     1  0 Jul16 ?        00:00:22 gdm-binary
root       860     1  0 Jul16 ?        00:01:52 NetworkManager
avahi      862     1  0 Jul16 ?        00:02:24 avahi-daemon: running [fhc-beast1.local]
root       870     1  0 Jul16 ?        00:00:21 /usr/sbin/modem-manager
root       871     1  0 Jul16 ?        00:32:02 /usr/sbin/console-kit-daemon --no-daemon
avahi      874   862  0 Jul16 ?        00:00:00 avahi-daemon: chroot helper
root       943   816  0 Jul16 ?        00:00:00 smbd -F
root       962     2  0 Jul16 ?        00:00:00 [kslowd000]
root       963     2  0 Jul16 ?        00:00:00 [kslowd001]
root       964   853  0 Jul16 ?        00:00:00 /usr/lib/gdm/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1
root       992     1  0 Jul16 ?        00:00:00 /sbin/wpa_supplicant -u -s
root      1029   816  0 Jul16 ?        00:00:26 smbd -F
root      1030     2  0 Jul16 ?        00:00:10 [cifsd]
root      1037   964  0 Jul16 tty7     00:03:57 /usr/bin/X :0 -nr -verbose -auth /var/run/gdm/auth-for-gdm-adXsAE/database -nolisten tcp vt7
root      1085     1  0 Jul16 tty4     00:00:00 /sbin/getty -8 38400 tty4
root      1094     1  0 Jul16 tty5     00:00:00 /sbin/getty -8 38400 tty5
root      1099     1  0 Jul16 tty2     00:00:00 /sbin/getty -8 38400 tty2
root      1100     1  0 Jul16 tty3     00:00:00 /sbin/getty -8 38400 tty3
root      1102     1  0 Jul16 tty6     00:00:00 /sbin/getty -8 38400 tty6
root      1104     1  0 Jul16 ?        00:06:01 /usr/sbin/irqbalance
root      1106     1  0 Jul16 ?        00:00:00 acpid -c /etc/acpi/events -s /var/run/acpid.socket
root      1113     1  0 Jul16 ?        00:00:26 cron
daemon    1114     1  0 Jul16 ?        00:00:00 atd
root      1126     1  0 Jul16 ?        00:02:43 ddclient - sleeping for 280 seconds
gdm       1231     1  0 Jul16 ?        00:00:00 /usr/bin/dbus-launch --exit-with-session
gdm       1232     1  0 Jul16 ?        00:00:00 /bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
gdm       1233   964  0 Jul16 ?        00:01:20 /usr/bin/gnome-session --autostart=/usr/share/gdm/autostart/LoginWindow/
gdm       1236     1  0 Jul16 ?        00:00:27 /usr/lib/libgconf2-4/gconfd-2
root      1237     1  0 Jul16 ?        00:00:21 /usr/lib/postfix/master
gdm       1252     1  0 Jul16 ?        00:01:56 /usr/lib/gnome-settings-daemon/gnome-settings-daemon --gconf-prefix=/apps/gdm/simple-greeter/settings-manager-plugins
root      1273     1  0 Jul16 ?        00:00:11 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
gdm       1303     1  0 Jul16 ?        00:00:00 /usr/lib/gvfs/gvfsd
root      1316     1  0 Jul16 ?        00:00:41 /usr/sbin/sshd -D
gdm       1345  1233  0 Jul16 ?        00:00:57 metacity
root      1355     2  0 Jul16 ?        00:00:20 [cifsd]
root      1380     2  0 Jul16 ?        00:00:10 [cifsd]
root      1395     2  0 Jul16 ?        00:00:20 [cifsd]
gdm       1398  1233  0 Jul16 ?        00:01:49 gnome-power-manager
gdm       1400  1233  0 Jul16 ?        00:04:55 /usr/lib/gdm/gdm-simple-greeter
root      1408     1  0 Jul16 ?        00:01:33 /usr/lib/upower/upowerd
gdm       1409     1  0 Jul16 ?        00:00:30 /usr/bin/pulseaudio --start --log-target=syslog
rtkit     1411     1  0 Jul16 ?        00:00:53 /usr/lib/rtkit/rtkit-daemon
postfix   1420  1237  0 Jul16 ?        00:00:09 qmgr -l -t fifo -u
root      1423     1  0 Jul16 ?        00:05:04 /usr/lib/policykit-1/polkitd
root      1473     1  0 Jul16 ?        00:01:08 nmbd -D
root      1476     1  0 Jul16 ?        00:01:39 /usr/sbin/apache2 -k start
108       1514     1  0 Jul16 ?        00:01:11 /usr/sbin/hald
root      1515  1514  0 Jul16 ?        00:00:00 hald-runner
gdm       1548  1409  0 Jul16 ?        00:00:00 /usr/lib/pulseaudio/pulse/gconf-helper
root      1570     1  0 Jul16 tty1     00:00:00 /sbin/getty -8 38400 tty1
root      1571  1515  0 Jul16 ?        00:00:00 hald-addon-input: Listening on /dev/input/event4 /dev/input/event0 /dev/input/event1 /dev/input/event8
root      1585  1515  0 Jul16 ?        00:00:00 /usr/lib/hal/hald-addon-cpufreq
108       1586  1515  0 Jul16 ?        00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root      1587  1515  0 Jul16 ?        00:25:10 hald-addon-storage: polling /dev/sr0 (every 2 sec)
ntp       1614     1  0 Jul16 ?        00:02:47 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 118:126
root      1620  1113  0 Jul16 ?        00:00:00 CRON
549       1622  1620  0 Jul16 ?        00:00:00 [sh] 
549       1925     1  0 Jul16 ?        02:02:53 /bin/bash /home/stakeadmin/ping_test/pt 10.158.54.1 -d 0 -r 60 -t 5 -tto 60 -e stakeadmin@nashuastake.dnsalias.org
root      2362  1113  0 Jul16 ?        00:00:02 CRON
549       2363  2362  0 Jul16 ?        00:00:00 [sh] 
549       2381  2362  0 Jul16 ?        00:00:00 /usr/sbin/sendmail -i -FCronDaemon -oem stakeadmin@nashuastake.dnsalias.org
549       2382  2381  0 Jul16 ?        00:00:00 /usr/sbin/postdrop -r
549       2393     1  0 Jul16 ?        00:01:56 /usr/bin/perl -w /home/stakeadmin/ping_test.pl/merrimack -debug 0
root      2685  1113  0 Jul16 ?        00:00:01 CRON
549       2686  2685  0 Jul16 ?        00:00:00 [sh] 
549       2704  2685  0 Jul16 ?        00:00:00 /usr/sbin/sendmail -i -FCronDaemon -oem stakeadmin@nashuastake.dnsalias.org
549       2705  2704  0 Jul16 ?        00:00:00 /usr/sbin/postdrop -r
549       2716     1  0 Jul16 ?        00:02:08 /usr/bin/perl -w /home/stakeadmin/ping_test.pl/nashua1 -debug 0
root      3011  1113  0 Jul16 ?        00:00:00 CRON
549       3012  3011  0 Jul16 ?        00:00:00 [sh] 
549       3060     1  0 Jul16 ?        00:03:39 /usr/bin/perl -w /home/stakeadmin/ssh_tunnel/tunnels/loader -d 0 -st 296 -e stakeadmin@nashuastake.dnsalias.org
root      4700  1113  0 Jul16 ?        00:00:00 CRON
549       4701  4700  0 Jul16 ?        00:00:00 [sh] 
549       4961  4700  0 Jul16 ?        00:00:00 /usr/sbin/sendmail -i -FCronDaemon -oem stakeadmin@nashuastake.dnsalias.org
549       4963  4961  0 Jul16 ?        00:00:00 /usr/sbin/postdrop -r
549       5010     1  0 Jul16 ?        00:25:41 /bin/bash /home/stakeadmin/ping_test/pt stakeclerk -d 0 -r 300 -t 2 -tto 60 -e stakeadmin@nashuastake.dnsalias.org
root      6055  1113  0 Jul16 ?        00:00:01 CRON
549       6056  6055  0 Jul16 ?        00:00:00 [sh] 
549       6075  6055  0 Jul16 ?        00:00:00 /usr/sbin/sendmail -i -FCronDaemon -oem stakeadmin@nashuastake.dnsalias.org
549       6076  6075  0 Jul16 ?        00:00:00 /usr/sbin/postdrop -r
549       6088     1  0 Jul16 ?        00:07:26 /usr/bin/perl -w /home/stakeadmin/ping_test.pl/power-switch -debug 0
root      6403  1113  0 Jul16 ?        00:00:09 CRON
549       6404  6403  0 Jul16 ?        00:00:00 [sh] 
549       6422  6403  0 Jul16 ?        00:00:00 /usr/sbin/sendmail -i -FCronDaemon -oem stakeadmin@nashuastake.dnsalias.org
549       6423  6422  0 Jul16 ?        00:00:00 /usr/sbin/postdrop -r
549       6434     1  0 Jul16 ?        00:09:17 /usr/bin/perl -w /home/stakeadmin/ping_test.pl/larsen-family.us -debug 0
postfix   6701  1237  0 11:09 ?        00:00:00 pickup -l -t fifo -u -c
root      9240   964  0 Aug03 ?        00:00:00 /usr/lib/gdm/gdm-session-worker
gdm      14001     1  0 Jul16 ?        00:01:05 /usr/bin/gnome-screensaver --no-daemon
549      17246  5010  0 11:35 ?        00:00:00 sleep 299
549      17307  3060  0 11:35 ?        00:00:00 [loader] 
549      18545  1925  0 11:39 ?        00:00:00 sleep 60
root     18589  1113  0 11:40 ?        00:00:00 CRON
jlarsen  18595 18589  0 11:40 ?        00:00:00 [sh] 
jlarsen  18898     1  0 11:40 ?        00:00:00 /usr/bin/perl -w /home/jlarsen/ssh_tunnel/screamer/ssh_tunnel.pl
jlarsen  18904 18898  0 11:40 ?        00:00:00 /bin/ps -edf
549      18921  1620  0 Jul20 ?        00:00:00 /usr/sbin/sendmail -i -FCronDaemon -oem stakeadmin@nashuastake.dnsalias.org
549      18922 18921  0 Jul20 ?        00:00:00 /usr/sbin/postdrop -r
root     25966  1476  0 07:53 ?        00:00:00 /bin/sh -c /usr/sbin/apache2splitlogfile
root     25967 25966  0 07:53 ?        00:00:00 /usr/bin/perl /usr/sbin/apache2splitlogfile
www-data 25971  1476  0 07:53 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 25972  1476  0 07:53 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 25973  1476  0 07:53 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 25974  1476  0 07:53 ?        00:00:00 /usr/sbin/apache2 -k start
www-data 25975  1476  0 07:53 ?        00:00:00 /usr/sbin/apache2 -k start
549      31230  3011  0 Jul17 ?        00:00:00 /usr/sbin/sendmail -i -FCronDaemon -oem stakeadmin@nashuastake.dnsalias.org
549      31235 31230  0 Jul17 ?        00:00:00 /usr/sbin/postdrop -r
549      31354     1  0 00:05 ?        00:00:00 /usr/bin/perl -w /home/stakeadmin/ssh_tunnel/tunnels/tunnel -d 0 -st 296 -e stakeadmin@nashuastake.dnsalias.org
549      31923     1  0 00:05 ?        00:00:02 /usr/bin/ssh -F /home/stakeadmin/ssh_tunnel/tunnels/tunnel.conf -n tunnel /home/stakeadmin/ssh_tunnel/fhc-beast/pulse -d 0 -st 296 -e stakeadmin@nashuastake.dnsalias.org

Current netstat

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 fhc-beast:57123         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57122         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57134         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57131         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57136         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:56025         173-14-166-5-NewE:22022 ESTABLISHED
tcp        0      0 fhc-beast:54637         merrimack:microsoft-ds  ESTABLISHED
tcp        0      0 fhc-beast:57138         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57125         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:microsoft-ds  fhc-beast:44412         ESTABLISHED
tcp        0      0 fhc-beast:57133         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57126         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57121         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57117         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:45117         nashua1:microsoft-ds    ESTABLISHED
tcp        0      0 fhc-beast:57130         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57113         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57128         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57118         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57124         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57132         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57115         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57119         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:45108         stakeclerk:netbios-ssn  ESTABLISHED
tcp        0      0 fhc-beast:44412         fhc-beast:microsoft-ds  ESTABLISHED
tcp        0      0 fhc-beast:57120         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57144         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57135         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57116         173-14-166-5-NewEng:ssh TIME_WAIT  
tcp        0      0 fhc-beast:57127         173-14-166-5-NewEng:ssh TIME_WAIT  

crontab file

# Send me email when cron jobs have output
#MAILTO=john@larsen-family.us
#MAILTO=theClaw56@gmail.com
MAILTO=stakeadmin@nashuastake.dnsalias.org
# Testing cron function
#* * * * * echo "`date` cron test"; echo "`date` cront test" > /tmp/crontest.txt
#
# Maintain ssh tunnels ----------------------------------------------
0,10,20,30,40,50 * * * * /home/jlarsen/ssh_tunnel/screamer/ssh_tunnel.pl
#0,10,22,30,40,50 * * * * /home/jlarsen/ssh_tunnel/old-beast/ssh_tunnel.pl
#
#
# Ping tests
#2,17,32,47 * * * * /home/jlarsen/ping_test/pt 10.249.191.1             -r 60 -t 5 -c -tto 60 -e theclaw56@gmail.com
#3,18,33,48 * * * * /home/jlarsen/ping_test.pl/pt.pl merrimack
#4,19,29,49 * * * * /home/jlarsen/ping_test.pl/pt.pl nashua1
#5,20,35,50 * * * * /home/jlarsen/ping_test.pl/pt.pl client1
#6,21,36,51 * * * * /home/jlarsen/ping_test/pt client2      -r 300 -t 2 -c -tto 60 -e theclaw56@gmail.com
#7,22,37,52 * * * * /home/jlarsen/ping_test/pt client3      -r 300 -t 2 -c -tto 60 -e theclaw56@gmail.com
#14,23,38,53 * * * * /home/jlarsen/ping_test.pl/pt.pl client4
##8,23,38,53 * * * * /home/jlarsen/ping_test/pt client4      -r 300 -t 2 -c -tto 60 -e theclaw56@gmail.com
#9,24,39,54 * * * * /home/jlarsen/ping_test.pl/pt.pl nashua2
#10,25,40,55 * * * * /home/jlarsen/ping_test/pt stakeclerk  -r 300 -t 2 -c -tto 60 -e theclaw56@gmail.com
##11,26,41,56 * * * * /home/jlarsen/ping_test.pl/pt.pl NashuaStake3
#12,27,42,57 * * * * /home/jlarsen/ping_test.pl/pt.pl power-switch
#13,28,43,58 * * * * /home/jlarsen/ping_test.pl/pt.pl NashuaStake4

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      fhc-beast
# SSH_CLIENT_DIR  /home/jlarsen/ssh_tunnel/screamer
# SSH_SERVER      screamer
# SSH_SERVER_DIR  /home/tunnels/ssh_tunnel/fhc-beast
#
########################################################################
# 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 sml.dnsalias.org
Port = 22
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/screamer/id_rsa.fhc-beast

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        296
#
#
################################################################################
# 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 sml.dnsalias.org
Port = 22
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/screamer/id_rsa.fhc-beast
Compression = yes
RemoteForward = 15905 server:5905
RemoteForward = 15902 client2:5902
RemoteForward = 15903 client3:5903
RemoteForward = 10023 client3:22
RemoteForward = 15904 client4:5904
RemoteForward = 15907 stakeclerk:5907
RemoteForward = 10027 stakeclerk:22
RemoteForward = 15908 nashua2:5908
RemoteForward = 15909 nashua1:5909
RemoteForward = 15910 merrimack:5910
RemoteForward = 15025 localhost:25
RemoteForward = 15058 power-switch:80
RemoteForward = 15080 localhost:80
RemoteForward = 15143 localhost:143
RemoteForward = 10022 localhost:22
LocalForward = 10022 localhost:22

################################################################################
Host heartbeat
HostName localhost
Port = 10022
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/screamer/id_rsa.fhc-beast

################################################################################
Host pulse
HostName localhost
Port = 10022
UserKnownHostsFile = /home/tunnels/ssh_tunnel/fhc-beast/known_hosts
User = jlarsen
IdentityFile = /home/tunnels/ssh_tunnel/fhc-beast/id_rsa.fhc-beast

################################################################################
# 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  /var/www/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 sml.dnsalias.org
Port = 22
UserKnownHostsFile = /home/jlarsen/ssh_tunnel/screamer/known_hosts
User = tunnels
IdentityFile = /home/jlarsen/ssh_tunnel/screamer/id_rsa.fhc-beast