OPNsense Forum

English Forums => General Discussion => Topic started by: dcol on December 19, 2022, 11:50:04 PM

Title: Muliple gateways
Post by: dcol on December 19, 2022, 11:50:04 PM
Hi,
I have 2 internet connections. One static and one dynamic. The static one is being used now and all internet traffic passes to my servers and LAN. I want to add a dynamic WAN and have all the LAN traffic and media servers use the dynamic interface and my email and web servers use the static interface. When I setup a second WAN interface, a new gateway appears and I lose all internet traffic.

What I want to do is have the faster dynamic WAN for my media servers and LAN and use the static WAN for my web and email servers. How do I separate them?

I do not want load balancing, I just want to control which devices uses which WAN. Is this even possible or do I need to run two firewalls?
Title: Re: Muliple gateways
Post by: Patrick M. Hausen on December 20, 2022, 06:48:03 AM
Perfectly possible. Create rules on LAN for each group of devices - distinguished somehow, e.g. by IP address - and set the desired gateway in that rule.