FATAL: Module iptable_nat not found解决办法

本文详细介绍了在Centos系统中遇到modprobe iptable_nat错误时,如何通过makemenuconfig添加NAT相关模块进行内核编译,解决系统无法识别iptables_nat的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当你在系统中执行modprobe iptable_nat,系统报错FATAL: Module iptable_nat not found时,说明你的内核中没有编译这个模块,你需要重新编译内核。这里介绍一下Centos下使用make menuconfig如何添加NAT相关模块。

1)依次进入Networking support -> Networking options -> Network packet filtering framework (Netfilter)

2)进入Core Netfilter Configuration选项下,为了保险起见,将Netfilter nf_tables support中的nat相关项设置为模块编译

3)进入IP: Netfilter Configuration选项下,设置IPv4 NAT和iptables NAT support所有子项都以模块的形式编译

4)保存config

5)重新编译内核make bzImage; make modules; make modules_install; make install

6)重启系统

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值