Support listen PROXY protocol for haproxy
Description
Description
Details
Details
- Version
- -
- Is it a breaking change?
- Unspecified (possibly destroys the router)
- Issue type
- Unspecified (please specify)
Related Objects
Related Objects
Event Timeline
Comment Actions
Hi @Viacheslav, I confirm it is possible to use PROXY as listen in haproxy after merge
Comment Actions
I attached the config used during testing.
nginx.conf:
http {
server {
listen 18888;
return 200 OK;
}
server {
listen 18889 proxy_protocol;
return 200 OK;
}
}VyOS:
set load-balancing haproxy service lb-http listen-address 10.199.0.110 accept-proxy set load-balancing haproxy service lb-http port 80 set load-balancing haproxy service lb-http mode tcp set load-balancing haproxy service lb-http backend lb-http set load-balancing haproxy backend lb-http mode tcp set load-balancing haproxy backend lb-http server s1 address 10.199.0.11 set load-balancing haproxy backend lb-http server s1 port 18888
I confirm:
- Without accept-proxy, it acts as a forwarding server
- With accept-proxy, it acts as a proxy protocol acceptor server
- It is possible to run proxy mode on 1 listen address and another non-proxy address at the same time