Chion82 / netfilter-full-cone-nat

A kernel module to turn MASQUERADE into full cone SNAT
GNU General Public License v2.0
427 stars 121 forks source link

centos 7.6 insmod报Unknown symbol in module #25

Closed PHCSJC closed 5 years ago

PHCSJC commented 5 years ago

环境:centos 7 x86_64 内核:Linux localhost.localdomain 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

编译没有报错,insmod时报错: insmod xt_FULLCONENAT.ko insmod: ERROR: could not insert module xt_FULLCONENAT.ko: Unknown symbol in module

dmesg里显示: [ 2290.786104] xt_FULLCONENAT: Unknown symbol nf_conntrack_find_get (err 0) [ 2290.786126] xt_FULLCONENAT: Unknown symbol nf_conntrack_register_notifier (err 0) [ 2290.786187] xt_FULLCONENAT: Unknown symbol nf_conntrack_unregister_notifier (err 0) [ 2290.786212] xt_FULLCONENAT: Unknown symbol nf_nat_setup_info (err 0)

大佬看看是什么原因呢?

Chion82 commented 5 years ago

This full-cone-nat module depends on NAT and other basic netfilter modules. Try to load dependencies with modprobe nf_nat before running insmod.

PHCSJC commented 5 years ago

good, it is ok , FullCone NAT can normal work. Thanks! Thumb up for you!

PHCSJC commented 5 years ago

Hi,fullcone nat can be used in single-arm routing? yesterday,I success compiler and install fullcone nat in Centos7,It's very surprise. and today,I continue test in my N1(armbian aarch64 kernel 5.0.2), and I have comiler model and iptables,and I can use iptables with FULLCONENAT,but I test nat also is PortRestrictedCone. so I think this reason maybe my n1 is a single-arm routing so fullcone nat whether support single-arm routing? thanks!