36 lines
632 B
Plaintext
36 lines
632 B
Plaintext
|
|
! Configuration File for keepalived
|
||
|
|
! Firewall:
|
||
|
|
! firewall-cmd --add-rich-rule='rule protocol value="vrrp" accept' --permanent
|
||
|
|
|
||
|
|
global_defs {
|
||
|
|
notification_email {
|
||
|
|
acassen@firewall.loc
|
||
|
|
failover@firewall.loc
|
||
|
|
sysadmin@firewall.loc
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
vrrp_script chk_dns {
|
||
|
|
script "/usr/bin/nc -z -u 127.0.0.1 53"
|
||
|
|
interval 5
|
||
|
|
weight -60
|
||
|
|
}
|
||
|
|
|
||
|
|
vrrp_instance VI_1 {
|
||
|
|
state MASTER
|
||
|
|
interface enp6s18
|
||
|
|
virtual_router_id 51
|
||
|
|
priority 100
|
||
|
|
advert_int 1
|
||
|
|
authentication {
|
||
|
|
auth_type PASS
|
||
|
|
auth_pass 1111
|
||
|
|
}
|
||
|
|
virtual_ipaddress {
|
||
|
|
192.168.10.1
|
||
|
|
}
|
||
|
|
track_script {
|
||
|
|
chk_dns
|
||
|
|
}
|
||
|
|
}
|