Multi-wan, default gw, traffic from this firewall

Started by spottaaja1, March 27, 2020, 10:18:01 AM

Previous topic - Next topic
Hello!

I have multi-wan setup with igb0 and igb2 as the upstream interfaces. Default gw is automatically switched between these two and all traffic from igb1, igb3 and igb4 is load-balanced out via gateway group called internet.

As igb0 and igb2 both have dynamic IP addresses, I am trying to get dyndns to update them to my domain but it seems the curl request gets routed out via default gateway, regardless of --interface and --dns-interface parameters. My dyndns service expects the update request to originate from the ip address mentioned in the update request.

Any hints on how to fix this?

FreeBSD doesn't support PBR for local initiated connections.
There was a trick to use LAN interface as the source and then to PBR via firewall rules, but I heard somewhere it makes problems starting with 20.1 or 19.7

I guess what you could do, although it isn't the prettiest, is either use two different mDNS services - or see if your mDNS provider has multiple IP adresses that you could use, and add a static route for each IP tied to the interface that is using that service/IP endpoint.