OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: iamjedini on October 26, 2018, 12:17:19 pm

Title: How to set 1 LAN client to use not default gw
Post by: iamjedini on October 26, 2018, 12:17:19 pm
Hello OPNSense Mates,

I`m new here and i have a Question where i  could not find an answer in this forum:
 
How can i setup opnsense, so that 1 client of the lan use the second wan/gateway for Internet connection, not the first (default) one?

Here my setup: Opnsense 18.7 (from 27.3.2018)
Interfaces:
1x LAN (192.168.3.0/24)
1x WAN1 (default, static ip, gw1)
1x WAN2 (static ip, gw2)

All Lan Clients are using the WAN1 for Internet, because its the Default WAN Interface, thats ok :).

One LAN Client  (192.168.3.20) should use the WAN2 connection for Internet
(its the Phone Server, a Mitel 470, and the SIP Accounts are binded to this  WAN Interface, the sip account only works over this Interface)

Is this possible to tell Opnsense ? If yes, how?

Thanks for any suggest/answer and happy weekend 2all ;)
Title: Re: How to set 1 LAN client to use not default gw
Post by: MrB on October 27, 2018, 07:48:41 pm
Should be easy to accomplish with a new firewall rule on LAN, set the source to "Single host or network"  and enter the IP address (192.168.3.20), scroll down and and set the desired gateway for this rule (last drop down menu on page) -> Save
If you have a default "Allow LAN to any" rule (that normally uses the default gateway), just move the new rule above this one and it should work after the changes have been applied.