tom82232
V2EX  ›  问与答

nginx 配置反向代理-能否配置指定的 localip-localport

  •  
  •   tom82232 · Jun 26, 2019 · 2509 views
    This topic created in 2693 days ago, the information mentioned may be changed or developed.

    client ------> proxy(nginx) ------> server clientIP proxyIP localIP serverIP

    如上,和 server 通信的 localIP 能够配置吗? 比如,把 localIP 配置如下 192.168.1.1:1000 ~ 192.168.1.1:5000 192.168.2.2:2000 ~ 192.168.2.2:6000 2.2.2.2:8000 ~ 2.2.2.2:12000

    3 replies  •  2019-06-27 13:42:54 +08:00
    bearice
    bearice
    Jun 26, 2019
    1
    proxy_bind
    tom82232
    tom82232
    OP
    Jun 27, 2019
    2
    @bearice 谢谢,还有 proxy_bind 可以是 不是本机的 IP 地址么
    bearice
    bearice
    Jun 27, 2019
    3
    不可以,除非使用 TRANSPARENT_PROXY
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2523 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 11:54 · PVG 19:54 · LAX 03:54 · JFK 06:54
    ♥ Do have faith in what you're doing.