jtsai
V2EX  ›  问与答

帮忙解答:[映射/转发/重定向] 有什么区别

  •  
  •   jtsai · Jul 26, 2017 · 1956 views
    This topic created in 3298 days ago, the information mentioned may be changed or developed.

    在弄 iptables,对 [映射 /转发 /重定向] 不是很理解。

    5 replies    2017-07-26 22:19:57 +08:00
    jugelizi
        1
    jugelizi  
       Jul 26, 2017   ❤️ 1
    转发是用户请求 A 地址 但服务器实际上返回 B 地址
    重定向 是用户访问 A 地址后浏览器地址跳转 B 地址
    jtsai
        2
    jtsai  
    OP
       Jul 26, 2017
    @jugelizi 常常说的 端口映射 跟 端口转发 有区别吗?
    wafm
        3
    wafm  
       Jul 26, 2017
    @jtsai 应该是一个意思 都是作用于 转发数据
    julyclyde
        4
    julyclyde  
       Jul 26, 2017
    映射是一个关系
    转发是一个动作
    重定向是让请求方自己去做动作
    zingl
        5
    zingl  
       Jul 26, 2017
    Wikipedia:

    In computer networking, port forwarding or port mapping is an application of network address translation (NAT) that redirects a communication request from one address and port number combination to another while the packets are traversing a network gateway, such as a router or firewall.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3470 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 04:58 · PVG 12:58 · LAX 21:58 · JFK 00:58
    ♥ Do have faith in what you're doing.