OPNsense Forum

English Forums => General Discussion => Topic started by: mbc0 on June 22, 2024, 11:57:38 PM

Title: Possible to have an IP range using a different wan port?
Post by: mbc0 on June 22, 2024, 11:57:38 PM
Hi,

I am running OPNSense on a HP Microserver with a 4 port nic, all working well :-)

I am trying to split the internet load between two wan's

I have my dsl wan on one port, local lan on another and would like to add a 5G RUTX50 Router as another wan that only serves a certain IP range, is this possible or a different way to achieve certain lan connections to use this 5G lan rather than my main dsl?

Many thanks!
Title: Re: Possible to have an IP range using a different wan port?
Post by: FLguy on June 25, 2024, 05:08:10 PM
https://docs.opnsense.org/manual/multiwan.html
https://docs.opnsense.org/manual/how-tos/multiwan.html

Hello, have you read the opnsense manual on the topic?
Title: Re: Possible to have an IP range using a different wan port?
Post by: netnut on June 25, 2024, 11:21:54 PM
Quote from: mbc0 on June 22, 2024, 11:57:38 PM
...is this possible or a different way to achieve certain lan connections to use this 5G lan rather than my main dsl?

You certainly can, the simplest way would be using Policy Based Routing in your firewall rule(s): use the specific IP range as source and select the gateway you want to use in the "Gateway" drop-down while editing the rule. You already have multi-wan in place, so your gateways should already be there (in the drop-down).
Title: Re: Possible to have an IP range using a different wan port?
Post by: mbc0 on June 25, 2024, 11:55:18 PM
This is great! Thank you!

I am on holiday for a week and will try this when I get home, thanks again!