vrrp: backup processes priority 255 advertisement 63/27563/3
authorMatthew Smith <mgsmith@netgate.com>
Mon, 15 Jun 2020 15:58:23 +0000 (10:58 -0500)
committerDamjan Marion <dmarion@me.com>
Sat, 27 Jun 2020 10:23:04 +0000 (10:23 +0000)
commitd352bf8276f33f33e4af5e8a7b85dad8187f531d
tree6823fffc02ffcecd5c24a03cd145b6f2d8792c01
parenta4611b85b58155fc3abbe2a7f16bd98e1a3dc39d
vrrp: backup processes priority 255 advertisement

Type: fix

When accept mode is enabled, a backup VR will configure the VR virtual
addresses locally and respond to packets sent to those addresses. This
did not work when the primary VR is the address owner and sends
advertisements using the virtual address as the source address. It
also did not work when NAT was configured on the interface with the
virtual address as the NAT pool address. In both cases, advertisements
from other VRs would arrive and be dropped because they appeared to
be spoofed - the source address would be an address that is
configured as an interface address on the instance receiving it.

When accept mode is enabled for a VR and the VR enters the master state,
add an input feature on ip[46]-multicast for the interface which looks
for VRRP advertisements, figures out whether they are for a VR which
is configured with accept mode and is in the master state  and kicks
them straight to the VRRP nodes to avoid dropping them.

Change-Id: I240ba1ee0b3fd6d693de729698c1181dc71bb08b
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
src/plugins/vrrp/node.c
src/plugins/vrrp/vrrp.c