rapiz1 / rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Apache License 2.0
9.8k stars 488 forks source link

获取真实IP #150

Closed ghost closed 2 years ago

ghost commented 2 years ago

你好,偿试从 frp 迁移 rathole 过程中,遇到问题,向作者请教:

类似 frpc.ini 中配置参数 proxy_protocol_version = v2

rapiz1 commented 2 years ago

Server前放一个nginx,设置xforwardedfor

---原始邮件--- 发件人: @.> 发送时间: 2022年4月8日(周五) 晚上7:55 收件人: @.>; 抄送: @.***>; 主题: [rapiz1/rathole] 获取真实IP (Issue #150)

你好,偿试从 frp 迁移 rathole 过程中,遇到问题,向作者请教:

rathole-server(80,443) ↓ rathole-client ↓ nginx(X-Real-IP,X-Forwarded-For) ← 是否有机制,以便获取用户真实IP

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>