FATAL: Module iptable_nat not found解决办法

当你在系统中执行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)重启系统

 

转载于:https://blog.csdn.net/scaleqiao/article/details/46633011

你可能感兴趣的:(linux)