Create keepalived_master_active_config
This commit is contained in:
parent
2502228069
commit
eb644b7fe9
1 changed files with 37 additions and 0 deletions
37
keepalived_master_active_config
Normal file
37
keepalived_master_active_config
Normal file
|
@ -0,0 +1,37 @@
|
|||
global_defs {
|
||||
router_id pihole-dns-01
|
||||
script_user root
|
||||
enable_script_security
|
||||
}
|
||||
|
||||
vrrp_script chk_ftl {
|
||||
script "/etc/scripts/chk_ftl"
|
||||
interval 1
|
||||
weight -10
|
||||
}
|
||||
|
||||
vrrp_instance PIHOLE {
|
||||
state MASTER
|
||||
interface eth0
|
||||
virtual_router_id 55
|
||||
priority 150
|
||||
advert_int 1
|
||||
unicast_src_ip 192.168.1.11
|
||||
unicast_peer {
|
||||
192.168.1.12
|
||||
}
|
||||
|
||||
authentication {
|
||||
auth_type PASS
|
||||
auth_pass xxXXxxXX
|
||||
}
|
||||
|
||||
virtual_ipaddress {
|
||||
192.168.1.20/24
|
||||
}
|
||||
|
||||
track_script {
|
||||
chk_ftl
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue