|
|
|
|
|
|
|
|
|
|
|
|
debugfile /var/log/ha-debug logfile /var/log/ha-log logfacility local0 keepalive 2 deadtime 10 serial /dev/ttyS0 baud 19200 udpport 694 udp eth0 nice_failback on node lvs1.cula.net node lvs2.cula.net |
# Global Directives
checktimeout=3
checkinterval=1
fallback=127.0.0.1:80
#remove down server from cluster
quiescent=no
# A sample virtual with a fallback that will override the goble setting
# the real must start at least 4 spaces from left margin
#your "index.html" file must contain the string "happy"
virtual=192.168.1.176:443
real=192.168.1.180:443 ipip 6
real=192.168.1.181:443 ipip 6
fallback=127.0.0.1:443
service=https
request="index.html"
receive="happy"
scheduler=wlc
persistent=120
netmask=255.255.255.224
protocol=tcp
virtual=192.168.1.176:80
real=192.168.1.180:80 ipip 6
real=192.168.1.181:80 ipip 6
fallback=127.0.0.1:80
service=http
request="index.html"
receive="happy"
scheduler=wlc
persistent=120
netmask=255.255.255.0
protocol=tcp
#!/bin/sh echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/modprobe ipip /sbin/ifconfig tunl0 0.0.0.0 up echo 1 > /proc/sys/net/ipv4/conf/all/hidden echo 1 > /proc/sys/net/ipv4/conf/tunl0/hidden /sbin/ifconfig tunl0 192.168.1.176 netmask 255.255.255.255 broadcast 192.168.1.176 up
IP Virtual Server version 1.0.7 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn TCP lvs1.cula.net:https wlc persistent 120 mask 255.255.255.224 -> custer1.cula.net:https Tunnel 6 0 0 -> custer2.cula.net:https Tunnel 6 0 0 TCP lvs1.cula.net:http wlc persistent 120 mask 255.255.255.224 -> custer1.cula.net:http Tunnel 6 0 0 -> custer2.cula.net:http Tunnel 6 0 0