使用 Window 的主机文件转发流量?
很久以前,我发现了一些指南,展示了如何使用 Windows 主机文件将流量转发到另一个 IP/端口。我们在一个 IP/端口上设置了一个客户端服务器,他们希望将其更改为同一台计算机上的另一个 IP/端口,但现在要求我们也将 UDP/TCP 流量转发给它。
我很确定这是可行的,但在谷歌搜索了一段时间后,我一生都无法弄清楚如何做到这一点。
A long time ago I found some guide that showed how to use the Windows Hosts file to forward traffic to another IP/Port. We setup a clients server on one IP/Port, and they wanted it changed to another IP/Port on the same machine, but are now asking that we forward UDP/TCP traffic to it as well.
I am pretty sure this is doable but I cannot for the life of me figure out how to do it now after Google searching for a while.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可能记错了。
/etc/hosts
唯一控制的是本地 DNS 查找——您不能使用它来交换端口或转发从其他计算机发送的数据。您可以使用防火墙包或路由器转发连接。
You're probably remembering incorrectly. The only thing that
/etc/hosts
controls is local DNS lookups -- you can't use it to swap ports around or forward data sent from other machines.You may be able to forward connections using a firewall package or router.