Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new test: proxy protocol and x-forward-proto #29

Open
NotBad4U opened this issue Nov 12, 2018 · 0 comments
Open

new test: proxy protocol and x-forward-proto #29

NotBad4U opened this issue Nov 12, 2018 · 0 comments

Comments

@NotBad4U
Copy link
Contributor

NotBad4U commented Nov 12, 2018

  • set up an application with:
    • one backend
    • a sozu in tcp mode with send_proxy=true
    • a sozu behind the send_proxy with expect_proxy=true and in http mode
  • the backend send back the forwarded headers present in the request.
  • the client sends a request (no keep-alive)
  • we check that we got a response from the backend with the forwarded headers expected. The headers should be:
    • X-Forwarded-Proto: http
    • X-Forwarded-For: <identifier>
    • X-Forwarded-Port: <port>
    • Forwarded: proto=http;for=<identifier>;by=<host>
  • check in the access log of sozu-tcp|http the client ip and the port is present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant