dreamweaver
V2EX  ›  问与答

iptables 将 docker 出来的所有流量转发到内网另一台机器上

  •  
  •   dreamweaver · Jun 25, 2019 · 2475 views
    This topic created in 2542 days ago, the information mentioned may be changed or developed.

    现在内网有两台机器 192.168.0.1 和 192.168.0.2,192.168.0.1 的机器上的 docker 跑了一项服务用以处理用户数据,现在希望 docker 出来的所有流量都转发到 0.2 这台机器上,请问用 iptables 有啥办法配置吗?

    1 replies    2019-06-25 13:18:46 +08:00
    precisi0nux
        1
    precisi0nux  
       Jun 25, 2019 via Android
    做 reverse proxy 不行吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5383 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 07:14 · PVG 15:14 · LAX 00:14 · JFK 03:14
    ♥ Do have faith in what you're doing.