我正在从容器发送一个数据包,目标 IP 为 node-ip。当数据包到达节点/主机时,它会通过已编程的 nftable 列表。
我希望数据包跳转到 xyz 链。但我没有看到这种情况正在发生。
hook_nat_prerouting 有什么问题?
chain hook_nat_prerouting { # handle 12
type nat hook prerouting priority filter; policy accept;
fib daddr . iif type local jump xyz # handle 48
jump z_dnat_all # handle 49
}
chain xyz{ # handle 13
tcp dport 32458 counter packets 0 bytes 0 dnat to 192.168.212.71:8000 # handle 44
tcp dport 30723 counter packets 0 bytes 0 dnat to 192.168.212.71:8001 # handle 45
}