参考官方教程修改了一下 https://openwrt.org/docs/guide-user/firewall/firewall_configuration
# /etc/config/firewall
config include
option type 'nftables'
option path '/etc/my_custom_firewall_rule.nft'
option position 'chain-post'
option chain 'prerouting'
# /etc/my_custom_firewall_rule.nft
tcp dport 0-1023 log prefix "Inbound WAN connection attempt to low TCP port: "
想在 prerouting 链中再增加一些自定义的规则,但是完全没有生效,加到 mangle_prerouting 链倒是没有问题
系统版本是 23.05.5