Page MenuHomeVyOS Platform

Support listen PROXY protocol for haproxy
Closed, ResolvedPublic

Description

Support listen PROXY protocol for haproxy

Details

Version
-
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

nobiit created this object in space S1 VyOS Public.
Viacheslav changed the task status from Open to Needs testing.Jul 15 2025, 7:56 AM

@nobiit, could you confirm that all works as expected after merging?

Hi @Viacheslav, I confirm it is possible to use PROXY as listen in haproxy after merge

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
Viacheslav changed the task status from Needs testing to Confirmed.Jul 20 2025, 10:12 AM
dmbaturin moved this task from Need Triage to Completed on the VyOS Rolling board.