ha:keepalived
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ha:keepalived [2023/07/18 18:09] – [Keepalived] veera | ha:keepalived [2023/07/18 18:39] – [3. Use IPTABLES on MASTER] veera | ||
---|---|---|---|
Line 24: | Line 24: | ||
- | ==== 1. Install Trisul Network Analytics | + | ==== 2. Configure keepalived |
+ | |||
+ | Follow instructions in [[admin: | ||
+ | ==== 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 | ||
Line 34: | Line 41: | ||
< | < | ||
- | iptables -t nat -A PREROUTING -p udp -m udp --dport 2055 -j DNAT --to-destination 10.10.100.116 | + | iptables -t nat -A PREROUTING |
+ | | ||
+ | | ||
systemctl start iptables | systemctl start iptables | ||
Line 48: | Line 57: | ||
iptables-save > / | 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.txt · Last modified: 2023/07/18 18:40 by veera