V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
tom82232
V2EX  ›  问与答

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

  •  
  •   tom82232 · Jun 26, 2019 · 2035 views
    This topic created in 2497 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
        1
    bearice  
       Jun 26, 2019
    proxy_bind
    tom82232
        2
    tom82232  
    OP
       Jun 27, 2019
    @bearice 谢谢,还有 proxy_bind 可以是 不是本机的 IP 地址么
    bearice
        3
    bearice  
       Jun 27, 2019
    不可以,除非使用 TRANSPARENT_PROXY
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1368 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 23:50 · PVG 07:50 · LAX 16:50 · JFK 19:50
    ♥ Do have faith in what you're doing.