如何使用PPPoE穿越NAT?

发布于 2024-09-29 23:01:57 字数 124 浏览 10 评论 0原文

我想创建一个路由服务器来代理一些客户端(它们可能不在同一个内网)访问互联网。我需要为客户端分配唯一的ip,并在数据包响应时获取ip,这样我就可以执行一些监视任务。我想知道如果我使用PPPoE服务器来处理这种情况,如何通过NAT?谢谢!

I want to create a route server to proxy some clients(they may not in the same intranet) to access internet. I need to assign unique ip to the client and get the ip when packets response,so I can do some monitor task. i want to know if I use PPPoE server to deal with this case, how to through NAT ? thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

故事与诗 2024-10-06 23:01:57

你不能。 NAT 在传输层中路由数据包,但 PPPoE 在数据链路层; NAT 甚至无法看到 PPPoE 数据包。

You can't. NAT routes packets in the Transport layer, but PPPoE operates in the Data Link layer; NAT can't even see PPPoE packets.

把回忆走一遍 2024-10-06 23:01:57

您所需要做的就是设置一个网关计算机,所有客户端都可以连接到该网关计算机,并在该计算机上简单地设置 NAT。要监控客户端是否很少,只需设置wireshark并记录流量,如果流量很大,请附加专用日志服务器并将网关服务器以太网以混杂模式连接到此服务器,记录流量并享受乐趣,

All you need is to setup a Gateway Machine with which all your clients connect and on that machine simply setup NAT. For monitoring if there are few clients, simply setup wireshark and log traffic, if it's big, attach dedicated logging server and put your gateway server ethernet connected to this sevrver in promiscous mode, log al traffic and have fun,

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