需要在Makefile里面添加一句 DEPENDS:=+kmod-nf-nat 思路:查看nf_nat.ko是哪个包编译出来的,然后把包名加到DEPENDS后面 find ./ -name nf_nat.ko