Linux

Linux kernel 3.x Compile Error (ipt_MASQUERADE, iptable_nat, nf_nat)

Gh0st_Sp1der 2013. 7. 12. 16:20

Linux 3.7 kernel compile 도중 

make moduiles_install 에서 아래와 같은 오류가 발생했다.


ERROR: modinfo: could not find module iptable_nat

ERROR: modinfo: could not find module nf_nat

ERROR: modinfo: could not find module ipt_MASQUERADE


이는 make menuconfig 에서


Networking support -->

Networking options -->

Networking packet filtering framework (Netfilter) -->

IP: Netfilter Congifuration -->


IPv4 NAT                                  

MASQUERADE target support       

NETMAP target support

REDIRECT target support

Basic CNMP-ALG support


5개를 M으로 체크하시면 해결된다.

(실제로 다 필요하지는 않을것 같음, 맨 위 2개 옵션만 체크해도 가능할 듯)


이후 make all 부터 다시 차례대로 하면 성공.


p.s : maks all이 시간이 많이 걸릴 경우 -j (core수) 옵션을 주면 더 빠르게 컴파일 된다.

ex ) make all -j 8   (8 core)