Proxy protocol v2

I’m implementing the v2 protocol for a customer, however, I had some questions.

  1. What is the signature for? What does it represent?
  2. Is the struct only sent once or it appends on each time the TCP stream is written?


I believe this may answer your second question.

When TCP applications are configured to use ‘PROXY Protocol v2’, Cloudflare will prepend each inbound TCP connection with the PROXY Protocol binary header.

1 Like

In regards to your first question I believe this may help.

“The binary header format starts with a constant 12 bytes block containing the
protocol signature :”

1 Like

This summarizes it well, I found the solution after reading some documentation but I’ll mark it as solved in case anybody faces the same challenge.

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