nftables 规则语法在添加规则时出错

nftables 规则语法在添加规则时出错

我正在尝试添加此规则

nft insert rule ip nat PREROUTING iifname enp0s3 udp dport 9100 counter dnat to 192.168.150.2

我收到此错误

[root@ph3ro]# nft insert rule ip nat PREROUTING iifname enp0s3 udp dport 9100 counter dnat to 192.168.150.2
Error: Could not process rule: No such file or directory
insert rule ip nat PREROUTING iifname enp0s3 udp dport 9100 counter dnat to 192.168.150.2
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[root@ph3ro]#

在这种情况下有人可以帮我吗

相关内容