如何安装 Netfilter/启用 conntrack 事件?

如何安装 Netfilter/启用 conntrack 事件?

我遇到过这个回购协议并努力理解这些步骤。

我相信这是为了启用 Netfilter conntrack 事件,但我不确定。

我必须运行什么才能得到这些提示?

--------------------------------------------------------
2. The minimum requirements for the kernel configuration
--------------------------------------------------------

Kernel version >= 4.4

Networking support  --->
  Networking options  --->
  [*] Network packet filtering framework (Netfilter)  --->
        Core Netfilter Configuration  --->
          Netfilter connection tracking support (M/Y)
          Number of custom extend (1) (if patched kernel)
      "connlabel" match support (M)

Check your kernel configuration file.
For non-patched kernel there should be:

  CONFIG_NF_CONNTRACK=m or y
  CONFIG_NF_CONNTRACK_LABELS=y
  CONFIG_NETFILTER_XT_MATCH_CONNLABEL=m
  CONFIG_UNUSED_SYMBOLS=y

For patched kernel there should be:

  CONFIG_NF_CONNTRACK=m or y
  CONFIG_NF_CONNTRACK_CUSTOM=1
  CONFIG_UNUSED_SYMBOLS=y

更新:

apt install conntrack按照建议安装了。我不确定内核是否正确设置,这是我的主要问题。

但继续到第三部分,编译也失败了。我想知道这是存储库上的问题还是未满足最低要求。

admin@de-vpn-1:~/dd-wrt/src/router/ndpi-netfilter$ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, '.'.
libtoolize: copying file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:54: installing './compile'
configure.ac:6: installing './missing'
configure.ac:336: error: required file 'example/Makefile.in' not found
configure.ac:336: error: required file 'tests/Makefile.in' not found
configure.ac:336: error: required file 'tests/unit/Makefile.in' not found
configure.ac:336: error: required file 'tests/performance/Makefile.in' not found
configure.ac:336: error: required file 'tests/dga/Makefile.in' not found
configure.ac:336: error: required file 'rrdtool/Makefile.in' not found
configure.ac:336: error: required file 'influxdb/Makefile.in' not found
configure.ac:337: error: required file 'tests/do.sh.in' not found
Makefile.am:2: error: required directory ./tests does not exist

相关内容