Proxy Protocol: TLVs not set?

I am using Nginx 1.25.3 to proxy FTP traffic (as TCP stream) to the correct server according to the target host (subdomain) set by the FTP client. With proxy_protocol this should be possible by using the $proxy_protocol_tlv_authority nginx variable. But unfortunately, the variable is not set when the requests hit my Nginx gateway.

I logged the proxy_protocol nginx variables with a test request sent with filezilla:

proxy_protocol_tlv_alpn: nil
proxy_protocol_tlv_authority: nil
proxy_protocol_tlv_unique_id: nil
proxy_protocol_tlv_netns: nil
proxy_protocol_server_addr: xxxx:xxxx:x::xx:xxxx
proxy_protocol_server_port: 2121
proxy_protocol_addr: xxxx:xx:xxxx:xxxx::xxx
proxy_protocol_port: 59276
# fly.toml for the Nginx gateway
  internal_port = 80
  force_https = true
  min_machines_running = 1

# FTP active mode port
  internal_port = 2121
  protocol = "tcp"
    port = 2121
    handlers = ["proxy_proto"]

I also tried with proxy_proto_options = { version = "v2" } but with no different outcome.

It looks like the TLVs are missing or not forwarded by the fly proxy, but as I read in other threads, they should be… Am I missing something here?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.