Issues using HAProxy and Unbound at the same time

Started by hv-tech, August 12, 2021, 06:40:57 PM

Previous topic - Next topic
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,

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?

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!

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)