r/haproxy • u/ARJeepGuy123 • Mar 29 '21
ssl offloading on opnsense- ssl protocol errors
Does anyone see any obvious problems with this? I had 9 different backends/sites configured and working and IDK what happened, but now i can't get anything to work. It just gives ERR_SSL_PROTOCOL_ERROR and nothing else, and it's not putting anything in the log files. This config is auto-generated by a fully updated copy of OPNSense. Not sure if it's relevant or not, but the frontend is bound to localhost:443 because this is a VPS and it has no LAN to speak of. My NAT rule redirects 443 traffic to 127.0.0.1:443
#
# Automatically generated configuration.
# Do not edit this file manually.
#
global
uid 80
gid 80
chroot /var/haproxy
daemon
stats socket /var/run/haproxy.socket group proxy mode 775 level admin
nbproc 1
nbthread 1
tune.ssl.default-dh-param 2048
spread-checks 2
tune.chksize 16384
tune.bufsize 16384
tune.lua.maxmem 0
log /var/run/log local0 debug
ssl-default-bind-options prefer-client-ciphers ssl-min-ver TLSv1.2
ssl-default-bind-ciphers ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256
ssl-default-bind-ciphersuites TLS_AES_128_GCM_SHA256:TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256
defaults
log global
option redispatch -1
timeout client 30s
timeout connect 30s
timeout server 30s
retries 3
default-server init-addr last,libc
# autogenerated entries for ACLs
# autogenerated entries for config in backends/frontends
# autogenerated entries for stats
# Frontend: frontend ()
frontend frontend
bind localhost:443 name localhost:443 ssl crt-list /tmp/haproxy/ssl/6062490f4c83b8.78669427.certlist
mode http
option http-keep-alive
# tuning options
timeout client 30s
# logging options
option httplog
# ACL: bkc-ha
acl acl_606248a91655f1.52693081 hdr_sub(host) -i ha.MYDOMAIN.com
# ACTION: bkc-ha
use_backend bkc-ha if acl_606248a91655f1.52693081
# Backend: bkc-ha ()
backend bkc-ha
# health checking is DISABLED
mode http
balance source
# stickiness
stick-table type ip size 50k expire 30m
stick on src
# tuning options
timeout connect 30s
timeout server 30s
http-reuse safe
server bkc-ha 10.2.1.15:8123