OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: CHW1979 on September 29, 2020, 10:54:20 AM

Title: Part I - Another HAPROXY request
Post by: CHW1979 on September 29, 2020, 10:54:20 AM
First off all - i'm a NOOB and I know there are already many threads about HAPROXY but I can't figure out a simple configuration  ::)

I'ved followed a thread but I can't find URL - it was on this forum

Goal
subdomain1.domain.be    server1:443
subdomain2.domain.be   server2:443

Already done
Certificates by Letsencrypt
(http://letsencrypt-1.png)

Real Servers
(http://haproxy-realservers.png)

Backend
(http://haproxy-backend.png)

When I use one real server the right certificate is picked up - when I want to server multiple subdomains the wrong certificate is issued - internal servers have the same name as certificate

Maybe I give to much inside information but it is only a labo ;)

If someone wants to login to OPNSense - be my guest  ;)

Nice added value - HTTP to HTTPS would be nice

Many thanks en apologies for opening another HAPROXY thread
Title: Part II - Another HAPROXY request
Post by: CHW1979 on September 29, 2020, 10:56:16 AM
Frontend
(http://haproxy-frontend-1.png)
(http://haproxy-frontend-2.png)

Condition
(http://haproxy-condition.png)

Rules
(http://haproxy-rule.png)
Title: Part III - Another HAPROXY request
Post by: CHW1979 on September 29, 2020, 10:57:25 AM
Map
(http://haproxy-map.png)

Error
(http://cert-esxi.png)
(http://cert-vmware.png)
Title: Part IV - Another HAPROXY request
Post by: CHW1979 on September 29, 2020, 01:50:15 PM
I've read that I need only 1 Public

No certifcates are 'OK' but all subdomains are pointing to the same server

https://router.haaas.be/
https://vmware.haaas.be/
https://esxi.haaas.be/

Something to do with rules ?
Title: Re: Part I - Another HAPROXY request
Post by: CHW1979 on October 02, 2020, 10:55:52 AM
Nevermind it is working