Dear @TheHellSite,thanks for the great tutorial! It works well.Dear @sorano,thanks for your input. The hint with map file works well. However, I am unable to create a rule with multiple "OR" conditions for various sub-domains to match and check it with an "AND" condition to test if it is an internal IP. It shall cover your described rule.Currently I try to create a rule like:use map file 1 IF condition 1 "subdomain1" OR condition 2 "subdomain2"AND condition 3 "local IP (RFC1918)" is matchedHow did you solve this with the conditions and rules within OPNsense HAProxy plugin?thanks in advance for your help and reply.Saarko
I followed this, however, decided against using the LE and now not getting 100% A+. is there something I am missing...
20210730Added an explanation on how to configure local-access-only subdomains in HAProxy.
I was having issues connecting to my server due to handshake errors which I think got fixed after generating new ciphers using the Mozilla SSL Config generator and changing the HAProxy and OpenSSL versions to match my setup.
After that, HAProxy seemed to refuse to redirect me to my Vaultwarden server, unless I turned off the SSL option in my Real Server setting. It still shows that I'm secured with the proper (wildcard cert from Let's Encrypt).Do I need the SSL option enabled? The SSL test still gave me an A+...
Are you on the latest version of OPNsense and are the installed plugins up to date?Just out of interest, which versions of OPNsense, HAProxy and Let's Encrypt are you running?
The reason you couldn't connect was due to a misconfiguration in your real server, as you figured out yourself.You enabled the "SSL - Enable or disable SSL communication with this server. " checkbox in your real server for Vaultwarden even though the port used to connect doesn't offer SSL encryption.https://github.com/dani-garcia/vaultwarden/wiki/Enabling-HTTPShttps://github.com/dani-garcia/vaultwarden/wiki/Private-CA-and-self-signed-certs-that-work-with-Chrome
HiIf you have a fixed IP, does the DynDNS Configuration step need to be done? if skipped is there other settings i should put in?
If it is a must when we signup, there are 2 options :configure your own domainorregister under dyn.ioi have my own domain names about 10. Do i add each one to there system to get certs then duplicate the process to reverse proxy and cert the other domains?update: i used my domain name. i think that was wrong.