Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
HAProxy, loopback to frontend using unix socket
« previous
next »
Print
Pages: [
1
]
Author
Topic: HAProxy, loopback to frontend using unix socket (Read 1702 times)
doodeepawla03
Newbie
Posts: 1
Karma: 0
HAProxy, loopback to frontend using unix socket
«
on:
October 05, 2022, 07:11:18 am »
Hello, i have two registered domains (both pointing to one ip address), lets say domain-a and domain-b.
Both domains access via https on the default port 443 and i don't want to change it.
But, to access domain-b i want the users to identify themselves via a client-certificate i handed them out.
Domain-a should be accessable by the public without certificates, but of course via https.
To do this, i created a tcp-frontend that uses a rule to decide which backend should be used (the rule uses sni to identify if the request is coming from domain-a or domain-b).
I also created two other frontends (this time in http-mode). The listening addresses are now unix sockets (unix@sock-a for domain-a and unix@sock-b for domain-b).
Because i created two frontends with unix sockets i can now create real-servers that use those sockets.
The backends (backend-a and backend-b) are linked to the real-servers (sock-a or sock-b) and get requests from the tcp frontend.
My problem is that when im accessing the frontend i get an empty reply (code 52).
Do i miss something when using unix-sockets?
สมัครpg slot
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: HAProxy, loopback to frontend using unix socket
«
Reply #1 on:
October 05, 2022, 03:02:03 pm »
hi
https://forum.opnsense.org/index.php?topic=28007.0
duplicate?
https://github.com/opnsense/plugins/pull/3093
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.1 Legacy Series
»
HAProxy, loopback to frontend using unix socket