OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: spottaaja1 on March 27, 2020, 10:18:01 AM

Title: Multi-wan, default gw, traffic from this firewall
Post by: spottaaja1 on March 27, 2020, 10:18:01 AM
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?
Title: Re: Multi-wan, default gw, traffic from this firewall
Post by: mimugmail on March 27, 2020, 04:39:33 PM
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
Title: Re: Multi-wan, default gw, traffic from this firewall
Post by: klontje on March 29, 2020, 12:45:54 PM
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.