我对以太网接口(eth/in、eth/out、eth/local)感到困惑

网络工程 路由器 局域网 界面 包路径
2022-02-24 17:42:28

我正在使用 Edgemax 路由器 (EdgeOs),即使在阅读了帖子并检查了互联网页面之后,我仍然对我的哪些以太网接口与什么通信感到非常困惑。

我的 LAN 在 eth2 上,我的 WAN 在 eth1 上。有人可以告诉我我对下一步的看法是否有误(因为我在网络教程上看到了很多相反的答案):

  • eth2/in 是我的接口的一部分,用于接收来自 LAN 的数据包,
  • eth2/out 处理来自 LAN 的数据包,这些数据包将进入 WAN 和
  • eth2/local 是来自 LAN 的数据包,它们通过 LAN “旅行”。是对的吗?
2个回答

以太网接口被命名为 eth0、eth1、eth2 等。

eth n /in 和 eth n /out 在防火墙规则中,分别标识通过物理接口 eth n的数据包的入口和出口点。

如果您的 LAN 在 eth2 上,而您的 WAN 在 eth1 上,则 eth2/in 接收来自 LAN 的数据包,而 eth2/out 处理发往 LAN 的数据包。

聚会迟到了,但希望这对其他人有所帮助。

/in Matches on established/related and invalid traffic that is passed through the router (WAN to LAN).

/local Matches on established/related and invalid traffic that is destined for the router itself (WAN to LOCAL).

/out Matches on established/related and invalid traffic that is passed through the router (LAN to WAN).(没有明确提及,但我认为是这种情况)

这里