1
Web Proxy Filtering and Caching / Re: HaProxy SSL passthrough trouble with SNI_contains rule
« on: June 17, 2020, 10:32:13 pm »
Now I have played a bit with the configuration and haproxy is selecting the right backend (but I have no clue wich setting change did this effect ). One step ahead...
The backend server is getting connected now, but I get on my apache the error:
The client IP in the log 192.168.xx.xxx is the local IP of my opnSense, maybe this have to do something with the proxy settings in the haproxy backend?
EDIT:
To check this theory I have disabled the proxy in the backendpool and now it works
But one thing is an open question: Is it possible to make the request client IP transparent to the webserver, at the moment there is only the opnsense IP in the apache Logs for the request of all clients (thats pretty clear to me why this is the case, but is there a possibility for a work around?).
The backend server is getting connected now, but I get on my apache the error:
Code: [Select]
[ssl:info] [pid 23392] [client 192.168.xx.xxx:23800] AH01964: Connection to child 2 established (server localhost:443)
[ssl:info] [pid 23392] [client 192.168.xx.xxx:23800] AH02008: SSL library error 1 in handshake (server localhost:443)
[ssl:info] [pid 23392] SSL Library Error: error:1408F10B:SSL routines:ssl3_get_record:wrong version number
[ssl:info] [pid 23392] [client 192.168.xx.xxx:23800] AH01998: Connection closed to child 2 with abortive shutdown (server localhost:443)
The client IP in the log 192.168.xx.xxx is the local IP of my opnSense, maybe this have to do something with the proxy settings in the haproxy backend?
EDIT:
To check this theory I have disabled the proxy in the backendpool and now it works
But one thing is an open question: Is it possible to make the request client IP transparent to the webserver, at the moment there is only the opnsense IP in the apache Logs for the request of all clients (thats pretty clear to me why this is the case, but is there a possibility for a work around?).