网络流量操纵(虚拟 LAN)
我有兴趣了解更多有关操纵网络流量以通过互联网利用仅限 LAN 的程序(在本例中为游戏)的信息。
已经存在多个程序可以执行此操作(Hamachi、GArena),但我有兴趣了解他们如何处理这个问题以及如何从一开始就构建它。
显然你需要捕获流量 - 对于 Windows,我听说过 WinPCap 似乎能够满足我的需要,尽管我需要进一步研究它。
我正在寻找的是文章、常识,甚至是可以告诉我从哪里开始、做什么等的书籍。谢谢。
I am interested in learning more about manipulating network traffic to utilize LAN only programs (games in this case) over the internet.
There already exists several programs that does this (Hamachi, GArena), but I am interested in learning how they approach this and how to build this from the start up.
Obviously you need to capture the traffic - for Windows, I've heard mention of WinPCap which seems to be able to do what I need, though I need to study it further.
What I'm looking for are articles, general knowledge and even books that can show me where to start, what to do, etc. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您想通过广域网隧道传输现有的局域网协议。 这是虚拟专用网络的另一种说法。 我会尝试设置一个现有的,使用支持此类功能的路由器,或者将其设置在例如Linux机器上。
您只需找到一些有关 VPN/IP 隧道的材料即可。
它们的工作原理通常非常简单(但当您包含身份验证和加密时,会变得更加复杂。
基本原理很简单:
更长的故事有点长,您的软件必须充当透明路由器,和/或 LAN PC 必须配置特定的 IP 路由才能到达另一端。
您还可以使用许多其他技巧。 例如,编写一个设备驱动程序,伪装成网卡来完成上述几点,引诱它在本地 LAN 上发送的操作系统,但实际上设备驱动程序会封装数据包并将其发送到另一个 LAN 上的可到达的盒子。
It sounds like you'd want to tunnel an existing lan protocol over a wan. Which is another way of saying Virtual Private Network. I'd try to set up an existing one, using a router supporting such a feature, or setting it up on e.g. a linux box.
Simply you need to find some materials on VPNs/IP tunneling.
How they work is usually very simple(but more complex when you include authentication and encryption.
The basics are pretty much:
The longer story is a bit longer, your software would have to act as a transparent router, and/or the LAN PCs would have to be configured with a specific IP route to reach the other end.
And there's many other tricks you could do. E.g. write a device driver that poses as network card that does the above points, luring the OS that it's sending out on the local LAN, but in reality the device driver encapsulates the packets and sends it to a reachable box on another LAN.
以下是一些 WinPcap/libpcap 教程:
WinPcap 教程:使用分步指南WinPcap
使用 pcap 编程
Here is some WinPcap/libpcap tutorials:
WinPcap tutorial: a step by step guide to using WinPcap
Programming with pcap