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

哪些协议可以发送 proxy protocol #430

Open
ichenhe opened this issue Mar 21, 2024 · 1 comment
Open

哪些协议可以发送 proxy protocol #430

ichenhe opened this issue Mar 21, 2024 · 1 comment

Comments

@ichenhe
Copy link

ichenhe commented Mar 21, 2024

当前使用 Gost 做 tcp 端口转发:

./gost -L tcp://:22000/example.com:22000?proxyProtocol=2

目标主机 example.com:22000 运行 traefik,已启用 proxy protocol:

# traefik
entryPoints:
  websecure:
    address: :443
    proxyProtocol:
      insecure: true

但是并没有获取到真实客户 IP。

#238 提到 rtcp 已支持发送 proxy protocol,请问是 tcp 不支持吗?

@ginuerzh
Copy link
Member

目前仅服务可以接收客户端发过来的proxy protocol。
你的这个例子中直接透传就可以了,不需要在转发服务上解析proxy protocol。

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

2 participants