! Configuration File for keepalived global_defs { notification_email { OBSCURED_EMAIL } smtp_server OBSCURED_SMTP_SERVER_IP smtp_connect_timeout 30 router_id logindrtest } vrrp_instance VI_1 { state BACKUP interface eth0 virtual_router_id 20 priority 100 advert_int 1 authentication { auth_type PASS auth_pass OBSCURED_AUTH_PASSWORD } virtual_ipaddress { 192.168.25.8 192.168.25.12 } smtp_alert nopreempt #debug lvs_sync_daemon_interface eth0 } ##virtual_server 192.168.25.8 22 { #virtual_server fwmark 120 { # delay_loop 30 # lb_algo rr # lb_kind DR # protocol TCP # real_server 192.168.25.9 22 { # weight 1 # MISC_CHECK { # misc_path "/usr/local/sbin/sshcheck.pl 192.168.25.9" # misc_dynamic # } # } # real_server 192.168.25.10 22 { # weight 1 # MISC_CHECK { # misc_path "/usr/local/sbin/sshcheck.pl 192.168.25.10" # misc_dynamic # } # } # #} # virtual_server 192.168.25.12 22 { delay_loop 30 lb_algo rr lb_kind DR protocol TCP real_server 192.168.25.11 22 { weight 1 MISC_CHECK { misc_path "/usr/local/sbin/sshcheck.pl 192.168.25.11" misc_dynamic } } }