OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Dual WAN Loadbalancer: cannot resolve DNS
« previous next »
  • Print
Pages: [1]

Author Topic: Dual WAN Loadbalancer: cannot resolve DNS  (Read 4317 times)

Gatto

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Dual WAN Loadbalancer: cannot resolve DNS
« on: March 08, 2019, 03:04:11 pm »
Hello,
my configuration consists of:

1 DNSMasq
2 WAN (coming from: 192.168.1.254 and 192.168.4.1) ->
1 LoadBalancer gateway (attachment 2) ->
Firewall rules to route the traffic inside my LAN (IP: 192.168.3.1) + DNS Firewall rule (attachment 1)

When I activate the rule (LAN -> LoadBalancer) to the whole LAN Network, the system stops resolving DNS.
If I activate the same rule only to my computer IP address everything works smoothly.

I tried to log things but I can't see anything strange, probably because I am just ignorant.
If it helps this is my machine: https://www.applianceshop.eu/dec2630-opnsense-a10-quad-core-ssd-rack-gen2.html
Logged

Gatto

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #1 on: March 08, 2019, 03:11:46 pm »
This system status (attachment) will help too I suppose
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #2 on: March 08, 2019, 03:12:06 pm »
What are your DNS server settings under System: Settings: General?


Cheers,
Franco
Logged

Gatto

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #3 on: March 08, 2019, 03:14:11 pm »
Quote from: franco on March 08, 2019, 03:12:06 pm
What are your DNS server settings under System: Settings: General?


Cheers,
Franco

You can see my attachment
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #4 on: March 08, 2019, 03:21:31 pm »
Yes, here we are: you cannot use the same DNS IP for more than one gateway.


Cheers,
Franco
Logged

Gatto

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #5 on: March 08, 2019, 03:50:49 pm »
Quote from: franco on March 08, 2019, 03:21:31 pm
Yes, here we are: you cannot use the same DNS IP for more than one gateway.


Cheers,
Franco

Okay, you can see by my attachment that I have changed DNS.
This seems to work, it took 10 minutes to propagate but it's working now.
I will reply again if something breaks.
Thank you! Get your karma!
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #6 on: March 08, 2019, 04:16:45 pm »
Likewise, happy it works. :)
Logged

Gatto

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #7 on: March 08, 2019, 04:21:29 pm »
Okay, this is not working.
I can't really explain what is the pattern but the connection comes and goes in an apparently random way.
Logs are green.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 17706
  • Karma: 1618
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #8 on: March 08, 2019, 04:29:22 pm »
Can you please elaborate? I think the DNS is indeed fixed persistently so we're on to the next one...
Logged

Gatto

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #9 on: March 08, 2019, 04:44:40 pm »
The connection stays alive for like 5 to 10 minutes then it drops for 2-3 minutes then it comes back.
The gateways are stable, this is not a ISP problem.
Logged

Gatto

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #10 on: March 11, 2019, 02:43:50 pm »
I think it is a DNS problem.
If I apply the loadbalancer rule just to my pc everything works fine.
I think it is probably related to the rule that catches any traffic from LAN net (even my opnsense traffic I suppose)
Logged

Gatto

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
    • View Profile
Re: Dual WAN Loadbalancer: cannot resolve DNS
« Reply #11 on: March 11, 2019, 03:01:30 pm »
Yep, I confirm it.
I left a ping console pinging 8.8.8.8 and another console curling amazon.com.
The ping never stops, the amazon.com curl resolves for some time then stops then start resolving again.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Dual WAN Loadbalancer: cannot resolve DNS
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2