ha:keepalived
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ha:keepalived [2023/07/18 17:38] – created veera | ha:keepalived [2023/07/18 18:40] (current) – [2. Configure keepalived on both MASTER and SLAVE] veera | ||
---|---|---|---|
Line 7: | Line 7: | ||
It is a Linux implementation of the VRRP Protocol which allows for establishing a Virtual IP. We will be using HA based on VRRP protocol in this article. | It is a Linux implementation of the VRRP Protocol which allows for establishing a Virtual IP. We will be using HA based on VRRP protocol in this article. | ||
+ | |||
+ | |||
+ | |||
+ | ===== Architecture ===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Steps ===== | ||
+ | |||
+ | |||
+ | |||
+ | ==== 1. Install Trisul Network Analytics on both HA DR nodes. ==== | ||
+ | |||
+ | |||
+ | <note important> | ||
+ | |||
+ | |||
+ | ==== 2. Configure keepalived on both MASTER and SLAVE ==== | ||
+ | |||
+ | Follow instructions in [[admin: | ||
+ | |||
+ | Ensure the PRIORITY of MASTER is atleast 50 higher than the priority specified in the SLAVE node. | ||
+ | |||
+ | |||
+ | ==== 3. Use IPTABLES on MASTER ==== | ||
+ | |||
+ | |||
+ | During normal operation both nodes will be in active-active mode. The NETFLOW sent to the MASTER node will be mirrored to the SLAVE node using IPTABLES rule. You can also use the [[https:// | ||
+ | |||
+ | |||
+ | iptables DNAT rule | ||
+ | |||
+ | |||
+ | |||
+ | < | ||
+ | iptables -t nat -A PREROUTING \ | ||
+ | -p udp -m udp --dport 2055 -j DNAT \ | ||
+ | --to-destination 10.10.100.116 | ||
+ | |||
+ | systemctl start iptables | ||
+ | |||
+ | systemctl enable iptables | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | Make it persistent using the iptables-services package | ||
+ | |||
+ | |||
+ | < | ||
+ | dnf install iptables iptables-services | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | iptables-save > / | ||
+ | </ | ||
+ | |||
+ | |||
+ | To list the NAT rule | ||
+ | |||
+ | < | ||
+ | iptables -t nat -v -L -n --line-number | ||
+ | </ | ||
+ | |||
+ | |||
+ | To delete (for testing) | ||
+ | |||
+ | < | ||
+ | iptables -t nat -D PREROUTING 1 | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
ha/keepalived.1689682093.txt.gz · Last modified: 2023/07/18 17:38 by veera