Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4746

HAProxy 2.0.12 send-proxy fails when used with server-template

$
0
0

@slick_nic wrote:

Hi there,

Im having a strange issue when trying to use “send-proxy” and “check” together along side a “server-template” entry (using SRV DNS to get the server addresses / ports).

When including send-proxy and check in the server-template line as shown below haproxy fails to start without any error reported.
If I remove the server-template line and specify the servers directly in the config “send-proxy check” works fine (commented out lines below).
If I remove send-proxy from the server-template line everything works (except I get no proxy protocol which I would like)

Im using version 2.0.12 on Ubuntu 18.04 from the PPA packages.

Have I uncovered a bug or is there something wrong with my config.

My frontend and backend config is below (with changed IPs / domains etc). No errors / warnings are displayed on the console when I run this config.

#Config below
resolvers mydns
nameserver dns1 10.0.0.1:53
nameserver dns2 10.0.0.2:53

frontend ft_test
bind 10.0.0.5:1234
mode tcp
no option http-server-close
timeout client 30s
log global
option tcplog
default_backend bk_test

backend bk_test
mode tcp
balance roundrobin
no option http-server-close
log global
timeout server 30s
timeout connect 5s
option tcp-check
server-template test 3 _myservice._tcp.subdomain.example.com resolvers mydns send-proxy check init-addr none
#server test1 10.0.0.11:1234 send-proxy check
#server test2 10.0.0.10:1234 send-proxy check
#End Config

Thanks in advance,
Nic.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4746


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>