I’m not sure why have 3 addresses for VRRP. So what are you trying to do?
Assuming you have one ISP with a /29… In theory, each router gets one public, and the VRRP WAN get one… so 3 publics needed. And you need a src-nat rule to use VRRP address as src-address.
(In theory you should be able to use pref-src= on an IP route but that doesn’t work for a /32 VRRP address for some unknown reasons… but even if it did…you need a script on the VRRP interface to change routing if not master.)
Something to consider is you might be able to use VRRP connection tracking sync… In that case, you’d need a route to the “brother” router’s WAN IP with a higher distance= and disable the /ip/route to the WAN gateway on the /29 in the VRRP on-backup/on-master script as well (e.g. so WAN traffic flows out the router that’s the VRRP WAN master, thus connections sync’ed will continue to work. But like to understand the use case before getting the more complex connection syncing…
Also if you’re doing VRRP on WAN, you likely should also do on the LAN/VLAN side, so that they can actually take advantage of the multiple routers.
Yes, it’s a single ISP with a /29 handoff. I have 3 IPs on VRRP because I have each IP dedicated to an app on my LAN, and I have dst nat rules on each of those IPs as well. Is it not possible to utilize multiple IPs?
Same deal, you need to handle the app-specific usage of the public IP in a multiple/different “/ip/firewall/nat action=src-nat to-address= comment=“if master”…” (e.g. with NAT rule having filters based on outbound IP/port to determine the VRRP address to use – otherwise the first will win if all same).
The other approach be use routing rules/tables with a /ip/route/… pref-src= in different route tables — but I’m pretty sure pref-src is broken in V7. So the NAT approach is like the best right now.
Also…VRRP may support multiple homing IP address…But I think you need three VRRP interfaces (each with different ID) and set the “group master” on two of the VRRP interface so the same one (that has none as the group master).
Good luck. Basic trick is to src-nat to the VRRP address and disable via the on-master/on-backup VRRP scripts. With 3, it’s have to be the destination that determines which of the 3 WAN VRRP addresses to use – otherwise you can’t create a matching filter in /ip/firewall/nat…
If you have multiple IP on one VRRP, that very well may work…but if you run into trouble, create one vrrp interface per IP as suggested above.
FWIW, this doesn’t work since traffic doesn’t actually use the WAN-VRRP interface, it going out the /29 WAN interface (e.g. parent of the VRRP interface). The gateway isn’t in the VRRP /32 …