[Netpass-devel] NetPass/install.d install-ipvs.sh,1.5,1.6 iptables-lvs.sh,1.4,1.5 ldirectord.cf,1.3,
Brought to you by:
jeffmurphy
From: jeff m. <jef...@us...> - 2006-01-05 21:02:47
|
Update of /cvsroot/netpass/NetPass/install.d In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32033/install.d Modified Files: install-ipvs.sh iptables-lvs.sh ldirectord.cf Log Message: various changes to reporting, nothing major Index: ldirectord.cf =================================================================== RCS file: /cvsroot/netpass/NetPass/install.d/ldirectord.cf,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- ldirectord.cf 16 Aug 2005 19:38:33 -0000 1.3 +++ ldirectord.cf 5 Jan 2006 21:02:35 -0000 1.4 @@ -58,7 +58,7 @@ real=%RS1%:162 gate real=%RS2%:162 gate scheduler=rr - #persistent=600 + persistent=600 protocol=udp checktype=negotiate checkport=80 Index: install-ipvs.sh =================================================================== RCS file: /cvsroot/netpass/NetPass/install.d/install-ipvs.sh,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- install-ipvs.sh 10 Aug 2005 19:52:15 -0000 1.5 +++ install-ipvs.sh 5 Jan 2006 21:02:35 -0000 1.6 @@ -1,6 +1,7 @@ #!/bin/sh R="http://foobar.cit.buffalo.edu/netpass/ttt/RHAS4"; +BD=`dirname "$0"` mkdir /tmp/npipvs.$$ cd /tmp/npipvs.$$ @@ -21,7 +22,7 @@ rpm -iv libnet-1.1.2.1-2.i386.rpm mkdir -p /var/cache/cpan/build /var/cache/cpan/sources unset DISPLAY -up2date --nox -i glib-devel openssl-devel libnet perl-CPAN +up2date --nox -i glib-devel openssl-devel libnet perl-CPAN gcc flex bison # 5.8.5 = RH4 cp Config.pm /usr/lib/perl5/5.8.5/CPAN/Config.pm cat <<EOF @@ -65,6 +66,14 @@ up2date --nox -i perl-Digest-HMAC +cat <<EOF >>/etc/syslog.conf +local0.* /var/log/ha.log +EOF + +cp /dev/null /var/log/ha.log +/etc/init.d/syslog restart +cp ${BD}/iptables-lvs.sh /etc/iptables.sh + cat <<EOF Edit /etc/modprobe.conf and adjust the hashsize line according to Index: iptables-lvs.sh =================================================================== RCS file: /cvsroot/netpass/NetPass/install.d/iptables-lvs.sh,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- iptables-lvs.sh 22 Dec 2005 18:31:02 -0000 1.4 +++ iptables-lvs.sh 5 Jan 2006 21:02:35 -0000 1.5 @@ -30,6 +30,7 @@ iptables -F FORWARD -t mangle iptables -A PREROUTING -t mangle -i eth0 -j RETURN +iptables -A PREROUTING -t mangle -i lo -j RETURN #iptables -A PREROUTING -t mangle -j LOG \ # --log-level 6 --log-prefix 'preroute-marked ' @@ -60,6 +61,10 @@ #iptables -A PREROUTING -t mangle -j MARK --set-mark 1 + +iptables -A INPUT -i lo -j ACCEPT +iptables -f -A INPUT -i lo -j ACCEPT + # local system rules here iptables -A INPUT -s 128.205.1.0/24 -j ACCEPT @@ -72,9 +77,6 @@ iptables -A INPUT -j DROP iptables -f -A INPUT -j DROP -iptables -A INPUT -i lo -j ACCEPT -iptables -f -A INPUT -i lo -j ACCEPT - iptables -A OUTPUT -s 0/0 -d 0/0 -j ACCEPT iptables -f -A OUTPUT -s 0/0 -d 0/0 -j ACCEPT |