Panja0

pihole-keepalived-backup-v2

Sep 16th, 2019
5,808
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. global_defs {
  2. router_id pihole-dns-02
  3. script_user root
  4. enable_script_security
  5. }
  6.  
  7. vrrp_script chk_ftl {
  8. script "/etc/scripts/chk_ftl"
  9. interval 1
  10. weight -10
  11. }
  12.  
  13. vrrp_instance PIHOLE {
  14. state BACKUP
  15. interface eth0
  16. virtual_router_id 55
  17. priority 145
  18. advert_int 1
  19. unicast_src_ip 192.168.1.12
  20. unicast_peer {
  21. 192.168.1.11
  22. }
  23.  
  24. authentication {
  25. auth_type PASS
  26. auth_pass xxXXxxXX
  27. }
  28.  
  29. virtual_ipaddress {
  30. 192.168.1.20/24
  31. }
  32.  
  33. track_script {
  34. chk_ftl
  35. }
  36.  
  37. }
Add Comment
Please, Sign In to add comment