N
N
Nikolay Baranenko2018-12-06 17:01:59
CentOS
Nikolay Baranenko, 2018-12-06 17:01:59

Keepalive how to register a list of ports?

Hello.
Setting up for the first time keeplive
started such a config

vrrp_script chk_haproxy {
  script "killall -0 haproxy" # check the haproxy process
  interval 2 # every 2 seconds
  weight 2 # add 2 points if OK
}

vrrp_instance VI_1 {
  interface eth0 # interface to monitor
  state MASTER # MASTER on haproxy, BACKUP on haproxy2
  virtual_router_id 51
  priority 101 # 101 on haproxy, 100 on haproxy2
  virtual_ipaddress {
    217.10.10.10 # virtual ip address
  }
  track_script {
    chk_haproxy
  }
}

it worked, BUT it only allows port 80 to pass.
How to make changes so that 443 and other ports work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2018-12-06
@drno-reg

I haven't worked with keepalived , but isn't "passing 80 and 443 and other ports" a haproxy task in your example?
keepalived just controls who is the master..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question