<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Haproxy - SNI + offloading backends from tutorial but it is not working]]></title><description><![CDATA[<p dir="auto">Hi, I implemented the HAproxy tutorial found at https://github.com/PiBa-NL/pfsense-haproxy-package-doc/wiki/pfsense_2_3_haproxy_sni_plus_offloading_backends with some modifications to get it working but I'm still not able to get the offloading section working.  Some help would be appreciated.</p>
<p dir="auto">Created the three front ends and associated backend but to make it work I had to forward (nat) port 80 and 443 to port 8080 and 4443. So instead of using the wan address I use the localhost port.  Both the HTTP and SNI frontend work perfectly.  The issue is when I get to the Offloading.  I have created 2 let's encrypt certificates for the two domains I need to offload.  Both certificates host several host names.  The backend for the offloading points to a http server (not https).  From my reading I do not think that I have to point it to a https server if I have the offloading properly configured.</p>
<p dir="auto">Below is part of my configuration, if somebody can tell me what i'm doing wrong it would be appreciated.</p>
<p dir="auto">frontend SecureServers-SNI-2<br />
bind 127.0.0.1:4443 name 127.0.0.1:4443 <br />
mode tcp<br />
log global<br />
option socket-stats<br />
option log-separate-errors<br />
option tcplog<br />
timeout client 30000<br />
tcp-request inspect-delay 5s<br />
acl ftpweb_acl req.ssl_sni -i ftpweb34.accra.ca<br />
acl dragonNAS_acl req.ssl_sni -i dragon.accra.ca<br />
acl secure2345_acl req.ssl_sni -i secure2345.accra.ca<br />
tcp-request content accept if { req.ssl_hello_type 1 }</p>
<p dir="auto">use_backend SecureFTPWEB34_https_ipvANY  if  ftpweb_acl<br />
use_backend SecureNAS4_https_ipvANY  if  dragonNAS_acl<br />
use_backend Secure16_https_ipvANY  if  secure2345_acl<br />
default_backend frontend3-offloading_https_ipvANY</p>
<p dir="auto">frontend Secure-offloading-3<br />
bind 127.0.0.1:1443 name 127.0.0.1:1443 ssl  crt /var/etc/haproxy/Secure-offloading-3.pem crt /var/etc/haproxy/Secure-offloading-3 ca-file /var/etc/haproxy/clientca_Secure-offloading-3.pem verify required <br />
bind /tmp/haproxy_chroot/Secure-offloading-3.socket name unixsocket uid 80 accept-proxy ssl  crt /var/etc/haproxy/Secure-offloading-3.pem crt /var/etc/haproxy/Secure-offloading-3 ca-file /var/etc/haproxy/clientca_Secure-offloading-3.pem verify required<br />
mode http<br />
log global<br />
option http-keep-alive<br />
timeout client 30000<br />
acl filoptoreg hdr(host) -i reg.filopto.com<br />
acl remotehelp hdr(host) -i remotehelp.accra.ca<br />
acl aclcrt_Secure-offloading-3 hdr_reg(host) -i ^accra.ca(:([0-9]){1,5})?$<br />
acl aclcrt_Secure-offloading-3 hdr_reg(host) -i ^famille.accra.ca(:([0-9]){1,5})?$<br />
acl aclcrt_Secure-offloading-3 hdr_reg(host) -i ^ftpweb.accra.ca(:([0-9]){1,5})?$<br />
acl aclcrt_Secure-offloading-3 hdr_reg(host) -i ^remotehelp.accra.ca(:([0-9]){1,5})?$<br />
acl aclcrt_Secure-offloading-3 hdr_reg(host) -i ^secure.accra.ca(:([0-9]){1,5})?$<br />
acl aclcrt_Secure-offloading-3 hdr_reg(host) -i ^filopto.com(:([0-9]){1,5})?$<br />
acl aclcrt_Secure-offloading-3 hdr_reg(host) -i ^reg.filopto.com(:([0-9]){1,5})?$<br />
acl aclcrt_Secure-offloading-3 hdr_reg(host) -i ^www.filopto.com(:([0-9]){1,5})?$<br />
use_backend WebServer214_http_ipvANY  if  filoptoreg aclcrt_Secure-offloading-3<br />
use_backend RemoteHelp25_http_ipvANY  if  remotehelp aclcrt_Secure-offloading-3<br />
use_backend WEBServer14_http_ipvANY  if  aclcrt_Secure-offloading-3</p>
<p dir="auto">backend WebServer214_http_ipvANY<br />
mode http<br />
log global</p>
<h1><a class="anchor-offset" name="use-mailers"></a>use mailers</h1>
<h1><a class="anchor-offset" name="level-alert"></a>level  alert</h1>
<p dir="auto">timeout connect 30000<br />
timeout server 30000<br />
retries 3<br />
option httpchk OPTIONS /<br />
server WebServer214 192.168.120.214:80 check inter 1000</p>
<p dir="auto">backend frontend3-offloading_https_ipvANY<br />
mode tcp<br />
log global</p>
<h1><a class="anchor-offset" name="use-mailers"></a>use mailers</h1>
<h1><a class="anchor-offset" name="level-alert"></a>level  alert</h1>
<p dir="auto">timeout connect 30000<br />
timeout server 30000<br />
retries 3<br />
server frontend3-srv /Secure-offloading-3.socket send-proxy-v2-ssl-cn check inter 5000</p>
]]></description><link>https://forum.netgate.com/topic/117557/haproxy-sni-offloading-backends-from-tutorial-but-it-is-not-working</link><generator>RSS for Node</generator><lastBuildDate>Wed, 20 May 2026 08:14:55 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/117557.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 30 Jun 2017 15:03:15 GMT</pubDate><ttl>60</ttl></channel></rss>