使用预装的iptables-translate
程序即可,例如:
# iptables-translate -A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT nft add rule ip filter INPUT icmp type time-exceeded counter accept
nftables
默认没有内置的链,可以自己新增
nft flush ruleset nft add table ip filter nft flush chain ip filter INPUT nft add chain ip filter INPUT "{type filter hook input priority 0; policy drop; }" nft add chain ip filter OUTPUT "{type filter hook output priority 0; policy accept; }" nft add chain ip filter FORWARD "{type filter hook forward priority 0; policy accept; }" nft list ruleset
参考
版权声明:
本文来源网络,所有图片文章版权属于原作者,如有侵权,联系删除。
本文网址:https://www.mushiming.com/mjsbk/550.html