使用 Window 的主机文件转发流量?

发布于 2024-11-19 05:16:12 字数 182 浏览 4 评论 0原文

很久以前,我发现了一些指南,展示了如何使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

新一帅帅 2024-11-26 05:16:12

你可能记错了。 /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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文