系统篇:ubuntu 22.04 iptables 运行失败解决方法

一、现象
  • 可能出现如下类似错误
iptables/1.8.7 Failed to initialize nft: Protocol not supported
iptables v1.8.7 (nf_tables): CHAIN_ADD failed (No such file or directory)
二、原因
  • ubuntu 22.04默认使用nftables作为防火墙,而非iptables。
三、解决方法
sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部