Open tuian opened 1 year ago
在很多云环境或者网络隔离的环境里,经常用 带上原始ip和端口等信息.
如 阿里云: 通过Proxy Protocol获取客户端真实IP(四层监听) 当然,haproxy / aws /azure /cloudflare 也都是支持的比较广泛的.
快速入门实践: https://seriousben.com/posts/2020-02-exploring-the-proxy-protocol/ Golang 相关库: https://github.com/mailgun/proxyproto RFC: https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt
收到,我们研究一下先,感谢反馈 ;)
在很多云环境或者网络隔离的环境里,经常用 带上原始ip和端口等信息.
如 阿里云: 通过Proxy Protocol获取客户端真实IP(四层监听) 当然,haproxy / aws /azure /cloudflare 也都是支持的比较广泛的.
快速入门实践: https://seriousben.com/posts/2020-02-exploring-the-proxy-protocol/ Golang 相关库: https://github.com/mailgun/proxyproto RFC: https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt