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

2017-07-26 17:22:22 +08:00
 jtsai

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

1460 次点击
所在节点    问与答
5 条回复
jugelizi
2017-07-26 17:29:24 +08:00
转发是用户请求 A 地址 但服务器实际上返回 B 地址
重定向 是用户访问 A 地址后浏览器地址跳转 B 地址
jtsai
2017-07-26 17:35:05 +08:00
@jugelizi 常常说的 端口映射 跟 端口转发 有区别吗?
wafm
2017-07-26 17:52:29 +08:00
@jtsai 应该是一个意思 都是作用于 转发数据
julyclyde
2017-07-26 20:53:00 +08:00
映射是一个关系
转发是一个动作
重定向是让请求方自己去做动作
zingl
2017-07-26 22:19:57 +08:00
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.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/378149

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX