ha:keepalived
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ha:keepalived [2023/07/18 18:11] – [1. Install Trisul Network Analytics on both HA DR nodes.] veera | ha:keepalived [2023/07/18 18:40] (current) – [2. Configure keepalived on both MASTER and SLAVE] veera | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| - | ==== 1. Install Trisul Network Analytics | + | ==== 2. Configure keepalived |
| + | |||
| + | 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 DNAT rule | ||
| - | < | ||
| - | dnf install iptables iptables-services | ||
| - | </ | ||
| < | < | ||
| Line 45: | Line 53: | ||
| </ | </ | ||
| - | Make it persistent | + | Make it persistent |
| + | |||
| + | |||
| + | < | ||
| + | dnf install iptables iptables-services | ||
| + | </ | ||
| < | < | ||
| Line 54: | Line 67: | ||
| To list the NAT rule | To list the NAT rule | ||
| + | < | ||
| iptables -t nat -v -L -n --line-number | iptables -t nat -v -L -n --line-number | ||
| + | </ | ||
| - | to delete | + | To delete |
| + | < | ||
| iptables -t nat -D PREROUTING 1 | iptables -t nat -D PREROUTING 1 | ||
| + | </ | ||
ha/keepalived.1689684086.txt.gz · Last modified: 2023/07/18 18:11 by veera