Skip to content

Commit f8deeea

Browse files
committed
firewall: Add nf_nat_oif_changed quirk
1 parent 51dd001 commit f8deeea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/ops/network/firewall.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ Conntrack 除了记录连接的五元组(四层协议、源地址、目的地
163163

164164
[^nf_nat_manip_pkt]: [`nf_nat_manip_pkt`](https://elixir.bootlin.com/linux/v6.17.8/source/net/netfilter/nf_nat_proto.c#L383)
165165

166+
对于经过 NAT 的连接,Linux 要求属于该连接的所有数据包都由相同的网卡发出(区分正反方向),否则会停止记录连接信息并丢掉即将发往不同网卡的数据包[^nf_nat_oif_changed]
167+
168+
[^nf_nat_oif_changed]: [`nf_nat_inet_fn`](https://elixir.bootlin.com/linux/v6.17.8/source/net/netfilter/nf_nat_core.c#L978)
169+
166170
#### conntrack 命令 {#conntrack-command}
167171

168172
[`conntrack(8)`][conntrack.8] 可以查看和管理内核中的 conntrack 表,其记录了所有经过主机的数据包的连接状态信息。

0 commit comments

Comments
 (0)