OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • Issues using HAProxy and Unbound at the same time
« previous next »
  • Print
Pages: [1]

Author Topic: Issues using HAProxy and Unbound at the same time  (Read 2065 times)

hv-tech

  • Newbie
  • *
  • Posts: 29
  • Karma: 1
    • View Profile
Issues using HAProxy and Unbound at the same time
« on: August 12, 2021, 06:40:57 pm »
Good afternoon,

I have a general question, when I use HAProxy and have Unbound running at the same time, it forces the service of HAProxy to fail. I have "overrides" DNS entries for the stuff I have hosted in HAProxy, but I fail to see how this will affect what is running on HAProxy but it does. As soon as I disable Unbound and restart HAProxy, HAProxy works again.   

Would anyone have any advise of something I need to set or do? Or if this is normal and I can't run both of those services at the same time?

Thanks,
Logged

hv-tech

  • Newbie
  • *
  • Posts: 29
  • Karma: 1
    • View Profile
Re: Issues using HAProxy and Unbound at the same time
« Reply #1 on: August 18, 2021, 05:34:27 pm »
Does anyone have any ideas? I tried to use Dnsmasq which worked for a few hours, but after rebooting the system, it acts the same as Unbound. I've looked at the system logs which do not provide much. HAProxy just provides when a system was started or stopped. My question is, is this normal behavior while trying to run these two types of services, or is this a bug?
Logged

ad1m

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
    • View Profile
Re: Issues using HAProxy and Unbound at the same time
« Reply #2 on: August 19, 2021, 12:45:28 am »
Hello,

I'm running both HAproxy and Unbound without any issues at the moment. I experienced something like what you are describing a while back and the trick was to bind haproxy to LAN and do a portforward from WAN for the service. Ever since I haven't had any issues.
Hope it helps!
Logged

hv-tech

  • Newbie
  • *
  • Posts: 29
  • Karma: 1
    • View Profile
Re: Issues using HAProxy and Unbound at the same time
« Reply #3 on: August 27, 2021, 04:36:58 pm »
Um that might be a little tough for me if I understand your workaround correctly. I am using DDNS to generate records on the internet with Cloudflare and Lets Encrypt for the SSL certificates. When I am pointing stuff to the Public side, its the DNS address that's pointing from Cloudflare, but also this is the same hostname of the internal resource that I am pointing to the internet.

I will look into binding the HAProxy service to the internal IP address (I think its on 127.0.0.1 currently, but I would have to check) 
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 21.7 Legacy Series »
  • Issues using HAProxy and Unbound at the same time
 

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