OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: fearz on October 17, 2024, 10:40:52 PM

Title: MultiWAN - Need help specifying the outgoing WAN IP for LAN clients
Post by: fearz on October 17, 2024, 10:40:52 PM
Hi,

As the title says, I have 2 WAN interfaces grouped in 1 group which I use as my gateway for my firewall rules & its fine.

It's just that sometimes my WAN IP is WAN1 and sometimes its WAN2.

How to make it that all LAN clients use the outgoing WAN1 IP while still retain the combination speed of both?

Thanks!
Title: Re: MultiWAN - Need help specifying the outgoing WAN IP for LAN clients
Post by: Patrick M. Hausen on October 17, 2024, 10:50:41 PM
Quote from: fearz on October 17, 2024, 10:40:52 PM
How to make it that all LAN clients use the outgoing WAN1 IP while still retain the combination speed of both?

That's not possible. Any connection using WAN1 IP must also go out WAN1 leaving WAN2 unused. The provider delivering WAN2 will not accept anything with a WAN1 source address.
Title: Re: MultiWAN - Need help specifying the outgoing WAN IP for LAN clients
Post by: fearz on October 19, 2024, 09:34:07 AM
Thanks for your reply..

But i'm using the WANGR  (group) combining both connections, wouldn't NAT 1:1 allow me to tell which LAN IP to use which WAN IP?
Title: Re: MultiWAN - Need help specifying the outgoing WAN IP for LAN clients
Post by: dseven on October 19, 2024, 09:48:57 AM
If you want some LAN hosts to prefer WAN1 whilst others prefer WAN2 (but still have backup in both cases, if one ISP goes down), perhaps you could create two gateway groups - one with WAN1 higher priority, and the other with WAN2 higher, and create some firewall rules that use one or the other based on source address (or some other criteria). This would be a rather manual form of load distribution, but....

... as Patrick said; you can't use WAN2's bandwidth with WAN1's IP address....
Title: Re: MultiWAN - Need help specifying the outgoing WAN IP for LAN clients
Post by: fearz on October 19, 2024, 10:25:03 AM
Can you please explain how to do so?

You mean by setting Tier 1 & 2?

When I set it up as Tier 1 & 2 bandwidth is not combined.

I have to set it up as Tier 1 & Tier 1.
Title: Re: MultiWAN - Need help specifying the outgoing WAN IP for LAN clients
Post by: dseven on October 19, 2024, 10:55:14 AM
Yes, with tiers - you'd create groups - you could name them something like "WAN1-then-WAN2" and "WAN2-then-WAN1".

There is no way to have one gateway group that uses both gateways simultaneously and have predictable public IP - traffic will always use the public IP associated with the pipe that it goes out through.