1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY libnftnl-download-http "https://netfilter.org/projects/libnftnl/files/libnftnl-&libnftnl-version;.tar.bz2">
|
---|
8 | <!ENTITY libnftnl-download-ftp " ">
|
---|
9 | <!ENTITY libnftnl-md5sum "a72ae260f7da9c223ad5d4fa036a8f84">
|
---|
10 | <!ENTITY libnftnl-size "368 KB">
|
---|
11 | <!ENTITY libnftnl-buildsize "8.7 MB">
|
---|
12 | <!ENTITY libnftnl-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="libnftnl" xreflabel="libnftnl-&libnftnl-version;">
|
---|
16 | <?dbhtml filename="libnftnl.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>libnftnl-&libnftnl-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="libnftnl">
|
---|
22 | <primary sortas="a-libnftnl">libnftnl</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to libnftnl</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>libnftnl</application> library provides a low-level
|
---|
30 | netlink programming interface (API) to the in-kernel nf_tables subsystem.
|
---|
31 | </para>
|
---|
32 |
|
---|
33 | &lfs91_checked;
|
---|
34 |
|
---|
35 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
36 | <itemizedlist spacing='compact'>
|
---|
37 | <listitem>
|
---|
38 | <para>
|
---|
39 | Download (HTTP): <ulink url="&libnftnl-download-http;"/>
|
---|
40 | </para>
|
---|
41 | </listitem>
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (FTP): <ulink url="&libnftnl-download-ftp;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download MD5 sum: &libnftnl-md5sum;
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download size: &libnftnl-size;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Estimated disk space required: &libnftnl-buildsize;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated build time: &libnftnl-time;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect3">libnftnl Dependencies</bridgehead>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
72 | <para role="required">
|
---|
73 | <xref linkend="libmnl"/>
|
---|
74 | </para>
|
---|
75 |
|
---|
76 | <para condition="html" role="usernotes">User Notes:
|
---|
77 | <ulink url="&blfs-wiki;/libnftnl"/>
|
---|
78 | </para>
|
---|
79 | </sect2>
|
---|
80 |
|
---|
81 | <sect2 role="kernel">
|
---|
82 | <title>Kernel Configuration</title>
|
---|
83 |
|
---|
84 | <para>
|
---|
85 | Enable the following options in the kernel configuration and recompile the
|
---|
86 | kernel if necessary:
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <screen><literal>[*] Networking support [CONFIG_NET] --->
|
---|
90 | Networking options --->
|
---|
91 | [*] Network packet filtering framework (Netfilter) [CONFIG_NETFILTER] --->
|
---|
92 | Core Netfilter Configuration --->
|
---|
93 | <*> Netfilter nf_tables support [CONFIG_NF_TABLES]</literal></screen>
|
---|
94 |
|
---|
95 | </sect2>
|
---|
96 |
|
---|
97 | <sect2 role="installation">
|
---|
98 | <title>Installation of libnftnl</title>
|
---|
99 |
|
---|
100 | <para>
|
---|
101 | Install <application>libnftnl</application> by running the following
|
---|
102 | commands:
|
---|
103 | </para>
|
---|
104 |
|
---|
105 | <screen><userinput>./configure --prefix=/usr &&
|
---|
106 | make</userinput></screen>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | This package does not come with a test suite.
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <para>
|
---|
113 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
114 | </para>
|
---|
115 |
|
---|
116 | <screen role="root"><userinput>make install &&
|
---|
117 | mv /usr/lib/libnftnl.so.* /lib &&
|
---|
118 | ln -sfv ../../lib/$(readlink /usr/lib/libnftnl.so) /usr/lib/libnftnl.so</userinput></screen>
|
---|
119 |
|
---|
120 | </sect2>
|
---|
121 |
|
---|
122 | <sect2 role="commands">
|
---|
123 | <title>Command Explanations</title>
|
---|
124 |
|
---|
125 | <para>
|
---|
126 | <command>mv -v /usr/lib/libnftnl.so.* ...</command>: Move shared
|
---|
127 | libraries into /lib so they are available before /usr is mounted.
|
---|
128 | </para>
|
---|
129 |
|
---|
130 | </sect2>
|
---|
131 |
|
---|
132 | <sect2 role="content">
|
---|
133 | <title>Contents</title>
|
---|
134 |
|
---|
135 | <segmentedlist>
|
---|
136 | <segtitle>Installed Programs</segtitle>
|
---|
137 | <segtitle>Installed Libraries</segtitle>
|
---|
138 | <segtitle>Installed Directories</segtitle>
|
---|
139 |
|
---|
140 | <seglistitem>
|
---|
141 | <seg>
|
---|
142 | None
|
---|
143 | </seg>
|
---|
144 | <seg>
|
---|
145 | libnftnl.so
|
---|
146 | </seg>
|
---|
147 | <seg>
|
---|
148 | None
|
---|
149 | </seg>
|
---|
150 | </seglistitem>
|
---|
151 | </segmentedlist>
|
---|
152 |
|
---|
153 | <variablelist>
|
---|
154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
155 | <?dbfo list-presentation="list"?>
|
---|
156 | <?dbhtml list-presentation="table"?>
|
---|
157 |
|
---|
158 | <varlistentry id="libnftnl-lib">
|
---|
159 | <term><filename class="libraryfile">libnftnl.so</filename></term>
|
---|
160 | <listitem>
|
---|
161 | <para>
|
---|
162 | provides a netlink interface to the in-kernel nf_tables subsystem.
|
---|
163 | </para>
|
---|
164 | <indexterm zone="libnftnl libnftnl-lib">
|
---|
165 | <primary sortas="c-libnftnl">libnftnl.so</primary>
|
---|
166 | </indexterm>
|
---|
167 | </listitem>
|
---|
168 | </varlistentry>
|
---|
169 |
|
---|
170 | </variablelist>
|
---|
171 |
|
---|
172 | </sect2>
|
---|
173 |
|
---|
174 | </sect1>
|
---|