From b866962609cf9e6530933f6071eb39d9569e9ba6 Mon Sep 17 00:00:00 2001 From: kodlz Date: Fri, 14 Oct 2022 23:07:03 +0200 Subject: [PATCH] Create keepalived_backup_standby_config --- keepalived_backup_standby_config | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 keepalived_backup_standby_config diff --git a/keepalived_backup_standby_config b/keepalived_backup_standby_config new file mode 100644 index 0000000..008a8ae --- /dev/null +++ b/keepalived_backup_standby_config @@ -0,0 +1,37 @@ +global_defs { +router_id pihole-dns-02 +script_user root +enable_script_security +} + +vrrp_script chk_ftl { +script "/etc/scripts/chk_ftl" +interval 1 +weight -10 +} + +vrrp_instance PIHOLE { +state BACKUP +interface eth0 +virtual_router_id 55 +priority 145 +advert_int 1 +unicast_src_ip 192.168.1.12 +unicast_peer { +192.168.1.11 +} + +authentication { +auth_type PASS +auth_pass xxXXxxXX +} + +virtual_ipaddress { +192.168.1.20/24 +} + +track_script { +chk_ftl +} + +}