OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: maxcomgr on November 22, 2018, 03:11:32 pm

Title: Multi Wan Policy Based Routing not working on second gateway (No DNS resolve)
Post by: maxcomgr on November 22, 2018, 03:11:32 pm
Hi everybody.

I have a problem with a multi wan setup.

I have a network with two routers and until yesterday i used pfsense with no problem.(Now I am trying to clone my pfsense setting to opnsense).

I clean installed OPNsense with 3 interfaces  LAN, WAN and OPT. Also i have two gateways GW1 (default) and GW2.
GW1 - Connected to WAN
GW2 - Connected to OPT

I added dns servers for each gateway to http://opnsense.box/system_general.php.

Also i have not add any Gateway Groups.

Next i add to firewall rules to assign different gateway to each users ip.

If i select in each rule the GW1 which is the default everything works fine.
If i select in some rule the GW2 the user is routed corrected via GW2 but i don have dns resolve for this user.

Is there any guide to help me , please not the classic opnsense guide with multi wan auto setup.

Thank you in advance.




Title: Re: Multi Wan Policy Based Routing not working on second gateway (No DNS resolve)
Post by: mimugmail on November 22, 2018, 03:14:59 pm
User should use firewall as DNS and this rule must be on top without any gateway
Title: Re: Multi Wan Policy Based Routing not working on second gateway (No DNS resolve)
Post by: maxcomgr on November 22, 2018, 03:18:05 pm
Thank you for your answer. All users have the firewall as dns server e.g. 192.168.1.254 (LAN iface of opnsense).

But i do not understand this firewall rule for dns. Can you explain please?
Title: Re: Multi Wan Policy Based Routing not working on second gateway (No DNS resolve)
Post by: maxcomgr on November 22, 2018, 03:20:11 pm
I the attachment are my roules.
Title: Re: Multi Wan Policy Based Routing not working on second gateway (No DNS resolve)
Post by: mimugmail on November 22, 2018, 04:06:26 pm
Doesnt make sense .. have you checked Docs for Multi WAN?