1
Tutorials and FAQs / Re: Tutorial: OPNsense, HAProxy, Let's Encrypt, Wildcard Certs, 100% A+ SSLLabs
« on: August 26, 2023, 11:21:50 pm »1. You dont need to use virtual IP's.
2. Use map files {Advanced --> Map files}
1. You dont need to use virtual IP's.
I totally get your point! This makes indeed sense but I think only if you have a static WAN IP.
As it would break the access from internal networks to the external URLs "service.subdomain.mydomain.tld" if one enabled that access using DNS rewrite rules. I am not aware of a way to rewrite DNS entries in Unbound to the WAN interface address.
With NAT reflection your way of setting this up can of course work.
2. Use map files {Advanced --> Map files}
I haven't used those yet but looks very promising!
This really makes sense in a big environment with lots of subdomains.
Thank you for pointing this out! I will add it to the FAQ.
Hey there and thank you so, so much for this great tutorial! It gave me exactly what I needed!
Yet there is a reason why I'm quoting this particular post.
Configuration made basing on your tutorial was working flawlessly on version 23.7.1 (os-haproxy 4.0, haproxy26 2.6.14), but after update to 23.7.2 and haproxy26 2.6.15 HAProxy service was failing to start.
I followed sorano's suggestion to not use virtual ip and bingo! That was it (it took me hours to find out where the issue is, as there were no message in logs - just a startup failure of HAProxy).
Maybe it would be good to add adnotation or a second way to configure HTTPS_frontend?
I can confirm that it works flawlessly with dynamic WAN ip.
Once again thank you very much and @sorano too
Cheers
Paweł