roychan
V2EX  ›  问与答

ssh -R 内网穿透如何获得访问者真实的 IP 地址?

  •  
  •   roychan · Aug 15, 2016 · 2445 views
    This topic created in 3734 days ago, the information mentioned may be changed or developed.
    用 autossh -R 把内网的一台机器的 80/443 端口映射到了一台外网的虚拟机上,访客访问外网机器的 80/443 的请求会被转发到内网的 nginx 里。但是这些访问的 IP 地址都是 127.0.0.1 。因为这些流量在 nginx 看来都是从本机来的…

    有办法获得真实的地址吗?
    3 replies  •  2016-08-15 19:24:51 +08:00
    fcicq
    fcicq
    Aug 15, 2016
    1
    proxy_protocol
    roychan
    roychan
    OP
    Aug 15, 2016
    2
    @fcicq 代理服务器上没有 nginx …
    fcicq
    fcicq
    Aug 15, 2016
    3
    @roychan 你必然要在连接上添加一条什么东西才能让后面解析到 IP. 你不想这么做就无解了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3821 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 05:31 · PVG 13:31 · LAX 21:31 · JFK 00:31
    ♥ Do have faith in what you're doing.