Index: /lvs/debian/config/etc/apt/sources.list
===================================================================
--- /lvs/debian/config/etc/apt/sources.list	(revision 210)
+++ /lvs/debian/config/etc/apt/sources.list	(revision 210)
@@ -0,0 +1,7 @@
+deb http://debian.lcs.mit.edu/debian/ stable main
+deb-src http://debian.lcs.mit.edu/debian/ stable main
+
+deb http://security.debian.org/ stable/updates main
+
+deb http://www.ultramonkey.org/download/3/ sarge main
+deb-src http://www.ultramonkey.org/download/3 sarge main
Index: /lvs/debian/config/etc/ha.d/ha.cf
===================================================================
--- /lvs/debian/config/etc/ha.d/ha.cf	(revision 210)
+++ /lvs/debian/config/etc/ha.d/ha.cf	(revision 210)
@@ -0,0 +1,8 @@
+logfacility        local0
+bcast        eth0                # Linux
+mcast eth0 225.0.0.1 694 1 0
+auto_failback off
+node        not-forward
+node        not-backward
+respawn hacluster /usr/lib/heartbeat/ipfail
+apiauth ipfail gid=haclient uid=hacluster
Index: /lvs/debian/config/etc/ha.d/haresources
===================================================================
--- /lvs/debian/config/etc/ha.d/haresources	(revision 210)
+++ /lvs/debian/config/etc/ha.d/haresources	(revision 210)
@@ -0,0 +1,5 @@
+not-forward        \
+        ldirectord::ldirectord.cf \
+        LVSSyncDaemonSwap::master \
+        IPaddr2::18.181.0.46/16/eth0/18.181.255.255 \
+        IPaddr2::18.181.0.50/16/eth0/18.181.255.255
Index: /lvs/debian/config/etc/ha.d/ldirectord.cf
===================================================================
--- /lvs/debian/config/etc/ha.d/ldirectord.cf	(revision 210)
+++ /lvs/debian/config/etc/ha.d/ldirectord.cf	(revision 210)
@@ -0,0 +1,69 @@
+checktimeout=20
+checkinterval=1
+autoreload=yes
+logfile="/var/log/ldirectord.log"
+quiescent=yes
+
+virtual=18.181.0.46:25
+        real=18.181.0.53:25 gate
+        real=18.181.0.57:25 gate
+        fallback=18.187.1.128:25 gate
+        service=smtp
+        request="heartbeat/smtp"
+        receive="1"
+        scheduler=wlc
+        protocol=tcp
+        checktype=connect
+
+virtual=18.181.0.46:80
+        real=18.181.0.53:80 gate
+        real=18.181.0.57:80 gate
+        fallback=18.187.1.128:80 gate
+        service=http
+        request="heartbeat/http"
+        receive="1"
+        scheduler=wlc
+        protocol=tcp
+        checktype=negotiate
+
+virtual=18.181.0.46:443
+        real=18.181.0.53:443 gate
+        real=18.181.0.57:443 gate
+        fallback=18.187.1.128:443 gate
+        service=https
+        request="heartbeat/https"
+        receive="1"
+        scheduler=wlc
+        protocol=tcp
+        checktype=connect
+
+virtual=18.181.0.50:80
+        real=18.181.0.53:80 gate
+        real=18.181.0.57:80 gate
+        fallback=18.187.1.128:80 gate
+        service=http
+        request="heartbeat/http"
+        receive="1"
+        scheduler=wlc
+        protocol=tcp
+        checktype=negotiate
+
+virtual=18.181.0.50:443
+        real=18.181.0.53:443 gate
+        real=18.181.0.57:443 gate
+        fallback=18.187.1.128:443 gate
+        service=https
+        request="heartbeat/https"
+        receive="1"
+        scheduler=wlc
+        protocol=tcp
+        checktype=connect
+
+virtual=1
+        real=18.181.0.53 gate "heartbeat/services", "1"
+        real=18.181.0.57 gate "heartbeat/services", "2"
+	service=http
+        scheduler=wrr
+        protocol=fwm
+        checktype=negotiate
+	checkport=80
Index: /lvs/debian/config/etc/modules
===================================================================
--- /lvs/debian/config/etc/modules	(revision 210)
+++ /lvs/debian/config/etc/modules	(revision 210)
@@ -0,0 +1,22 @@
+# /etc/modules: kernel modules to load at boot time.
+#
+# This file should contain the names of kernel modules that are
+# to be loaded at boot time, one per line.  Comments begin with
+# a "#", and everything on the line after them are ignored.
+
+ide-cd
+ide-detect
+ide-disk
+psmouse
+ip_vs_dh
+ip_vs_ftp
+ip_vs
+ip_vs_lblc
+ip_vs_lblcr
+ip_vs_lc
+ip_vs_nq
+ip_vs_rr
+ip_vs_sed
+ip_vs_sh
+ip_vs_wlc
+ip_vs_wrr
Index: /lvs/debian/config/etc/nagios/nrpe.cfg
===================================================================
--- /lvs/debian/config/etc/nagios/nrpe.cfg	(revision 210)
+++ /lvs/debian/config/etc/nagios/nrpe.cfg	(revision 210)
@@ -0,0 +1,163 @@
+#############################################################################
+# Sample NRPE Config File 
+# Written by: Ethan Galstad (nagios@nagios.org)
+# 
+# Last Modified: 03-05-2003
+#
+# NOTES:
+# This is a sample configuration file for the NRPE daemon.  It needs to be
+# located on the remote host that is running the NRPE daemon, not the host
+# from which the check_nrpe client is being executed.
+#############################################################################
+
+
+
+# PORT NUMBER
+# Port number we should wait for connections on.
+# NOTE: This must be a non-priviledged port (i.e. > 1024).
+# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
+
+server_port=5666
+
+
+
+# SERVER ADDRESS
+# Address that nrpe should bind to in case there are more than one interface
+# and you do not want nrpe to bind on all interfaces.
+# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
+
+#server_address=192.168.1.1
+
+
+
+# ALLOWED HOST ADDRESSES
+# This is a comma-delimited list of IP address of hosts that are allowed
+# to talk to the NRPE daemon.
+#
+# NOTE: The daemon only does rudimentary checking of the client's IP
+#       address.  I would highly recommend adding entries in your
+#	/etc/hosts.allow file to allow only the specified host to connect
+#	to the port you are running this daemon on.
+#
+# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
+
+allowed_hosts=18.187.1.128
+
+
+
+# NRPE USER
+# This determines the effective user that the NRPE daemon should run as.  
+# You can either supply a username or a UID.
+# 
+# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
+
+nrpe_user=nagios
+
+
+
+# NRPE GROUP
+# This determines the effective group that the NRPE daemon should run as.  
+# You can either supply a group name or a GID.
+# 
+# NOTE: This option is ignored if NRPE is running under either inetd or xinetd
+
+nrpe_group=nagios
+
+
+
+# COMMAND ARGUMENT PROCESSING
+# This option determines whether or not the NRPE daemon will allow clients
+# to specify arguments to commands that are executed.  This option only works
+# if the daemon was configured with the --enable-command-args configure script
+# option.  
+#
+# *** ENABLING THIS OPTION IS A SECURITY RISK! *** 
+# Read the SECURITY file for information on some of the security implications
+# of enabling this variable.
+#
+# Values: 0=do not allow arguments, 1=allow command arguments
+
+dont_blame_nrpe=1
+
+
+
+# DEBUGGING OPTION
+# This option determines whether or not debugging messages are logged to the
+# syslog facility.
+# Values: 0=debugging off, 1=debugging on
+
+debug=0
+
+
+
+# COMMAND TIMEOUT
+# This specifies the maximum number of seconds that the NRPE daemon will
+# allow plugins to finish executing before killing them off.
+
+command_timeout=60
+
+
+
+# INCLUDE CONFIG FILE
+# This directive allows you to include definitions from an external config file.
+
+#include=<somefile.cfg>
+
+
+
+# INCLUDE CONFIG DIRECTORY
+# This directive allows you to include definitions from config files (with a
+# .cfg extension) in one or more directories (with recursion).
+
+#include_dir=<somedirectory>
+#include_dir=<someotherdirectory>
+
+
+
+# COMMAND DEFINITIONS
+# Command definitions that this daemon will run.  Definitions
+# are in the following format:
+#
+# command[<command_name>]=<command_line>
+#
+# When the daemon receives a request to return the results of <command_name>
+# it will execute the command specified by the <command_line> argument.
+#
+# Unlike Nagios, the command line cannot contain macros - it must be
+# typed exactly as it should be executed.
+#
+# Note: Any plugins that are used in the command lines must reside
+# on the machine that this daemon is running on!  The examples below
+# assume that you have plugins installed in a /usr/local/nagios/libexec
+# directory.  Also note that you will have to modify the definitions below
+# to match the argument format the plugins expect.  Remember, these are
+# examples only!
+
+# The following examples use hardcoded command arguments...
+
+#command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
+#command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
+command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/hda1
+command[check_disk2]=/usr/lib/nagios/plugins/check_disk -w 20 -c 10 -p /dev/hdb1
+command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
+command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200 
+
+# The following examples allow user-supplied arguments and can
+# only be used if the NRPE daemon was compiled with support for 
+# command arguments *AND* the dont_blame_nrpe directive in this
+# config file is set to '1'...
+
+command[check_users]=/usr/lib/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
+command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
+command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$
+command[check_disk_p]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
+command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$
+command[check_procs_C]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -C $ARG3$
+command[check_procs_P]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -P $ARG3$
+command[check_procs_m]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -m $ARG3$
+command[check_procs_s]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
+command[check_procs_u]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -u $ARG3$
+command[check_procs_z]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -z $ARG3$
+
+
+include=/etc/nagios/nrpe_local.cfg
Index: /lvs/debian/config/etc/network/if-up.d/iptables
===================================================================
--- /lvs/debian/config/etc/network/if-up.d/iptables	(revision 210)
+++ /lvs/debian/config/etc/network/if-up.d/iptables	(revision 210)
@@ -0,0 +1,13 @@
+#!/bin/sh
+## Joe Presbrey <presbrey@mit.edu>
+## SIPB Scripts LVS Firewall marks
+
+iptables -F -t mangle
+
+# scripts.mit.edu
+iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.46/31 --dports 25,80,443 -j MARK --set-mark 2
+iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.46/31 -j MARK --set-mark 1
+
+# scripts-cert.mit.edu
+iptables -A PREROUTING -t mangle -m tcp -m multiport -p tcp -d 18.181.0.50/31 --dports 25,80,443 -j MARK --set-mark 2
+iptables -A PREROUTING -t mangle -m mark --mark 0 -d 18.181.0.50/31 -j MARK --set-mark 1
Index: /lvs/debian/config/etc/sysctl.conf
===================================================================
--- /lvs/debian/config/etc/sysctl.conf	(revision 210)
+++ /lvs/debian/config/etc/sysctl.conf	(revision 210)
@@ -0,0 +1,1 @@
+net.ipv4.ip_forward = 1
