1 Installation instructions for nftables
2 ======================================
7 - build tooling: glibc headers, gcc, autotools, automake, libtool, pkg-config.
9 - libmnl: git://git.netfilter.org/libmnl.git
11 - libnftnl: git://git.netfilter.org/libnftnl.git
17 - libgmp: alternatively, see mini-gmp support below.
19 - libreadline or libedit or linenoise: required by interactive command line
21 - optional: libxtables: required to interact with iptables-compat
23 - optional: libjansson: required to build JSON support
25 - optional: asciidoc: required for building man-page
27 Configuring and compiling
28 =========================
30 Run "sh autogen.sh" to generate the configure script, then:
32 sh configure [options]
36 The prefix to put all installed files under. It defaults to
37 /usr/local, so the binaries will go into /usr/local/bin, sbin,
38 manpages into /usr/local/share/man, etc.
42 The base directory for arch-independent files. Defaults to
51 Use builtin mini-gmp instead of linking with a shared libgmp.
52 This is useful for embedded platforms optimizing for size and
53 having no other use for libgmp.
54 Note: This decreases the debugging verbosity in some files.
58 For libxtables support to interact with the iptables-compat
63 To disable interactive command line support, ie. -i/--interactive.
67 To enable interactive command line support with libreadline.
71 To enable interactive command line support with linenoise.
75 To enable interactive command line support with libedit.
79 To enable JSON support, this requires libjansson.
81 Run "make" to compile nftables, "make install" to install it in the
87 CPython bindings are available for nftables under the py/ folder. They can be
90 python -m pip install py/
92 A legacy setup.py script can also be used:
94 ( cd py && python setup.py install )
96 However, this method is deprecated.
101 Netfilter's Linux kernel tree can be found at:
103 git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git/
104 https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git
106 The latest version of this code can be found at:
108 git://git.netfilter.org/nftables.git