source: postlfs/security/iptables.xml@ 8abd5653

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 8abd5653 was 2197589, checked in by Randy McMurchy <randy@…>, 20 years ago

Updated to iptables-1.2.11; added missing tags in various package instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@2403 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 5.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY iptables-download-http "http://www.iptables.org/files/iptables-&iptables-version;.tar.bz2">
8 <!ENTITY iptables-download-ftp "ftp://ftp.netfilter.org/pub/iptables/iptables-&iptables-version;.tar.bz2">
9 <!ENTITY iptables-size "157 KB">
10 <!ENTITY iptables-buildsize "4.4 MB">
11 <!ENTITY iptables-time "0.13 SBU">
12]>
13
14<sect1 id="postlfs-security-iptables">
15<?dbhtml filename="iptables.html"?>
16<title>iptables-&iptables-version;</title>
17
18<para>The next part of this chapter deals with firewalls. The principle
19firewall tool for Linux, as of the 2.4 kernel series, is
20<application>iptables</application>. It replaces
21<application>ipchains</application> from the 2.2 series and
22<application>ipfwadm</application> from the 2.0 series. You will need to
23install <application>iptables</application> if you intend on using any form of
24a firewall.</para>
25
26<sect2>
27<title>Introduction to <application>iptables</application></title>
28
29<para>To use a firewall, as well as installing
30<application>iptables</application>, you will need
31to configure the relevant options into your kernel. This is discussed
32in the next part of this chapter &ndash;
33<xref linkend="postlfs-security-fw-kernel"/>.</para>
34
35<para>If you intend to use <acronym>IP</acronym>v6 you might consider extending
36the kernel by running <command>make patch-o-matic</command> in the top-level
37source tree directory of <application>iptables</application>. If you are
38going to do this, on a freshly untarred kernel, you need to run
39<command>yes "" | make config &amp;&amp; make dep</command> first because
40otherwise the patch-o-matic command is likely to fail while setting up
41some dependencies.</para>
42
43<para>If you are going to patch the kernel, you need to do it before you
44compile <application>iptables</application>, because during the compilation,
45the kernel source tree is checked (if it is available at <filename
46class="directory">/usr/src/linux-<replaceable>[version]</replaceable>
47</filename>) to see which features are available. Support will only be compiled
48into <application>iptables</application> for the features recognized at
49compile-time. Applying a kernel patch may result in errors, often because the
50hooks for the patches have changed or because the <command>runme</command>
51script doesn't recognize that a patch has already been incorporated.</para>
52
53<para>Note that for most people, patching the kernel is unnecessary.
54With the later 2.4.x kernels, most functionality is already available
55and those who need to patch it are generally those who need a specific
56feature; if you don't know why you need to patch the kernel, you're
57unlikely to need to!</para>
58
59<sect3><title>Package information</title>
60<itemizedlist spacing='compact'>
61<listitem><para>Download (HTTP): <ulink
62url="&iptables-download-http;"/></para></listitem>
63<listitem><para>Download (FTP): <ulink
64url="&iptables-download-ftp;"/></para></listitem>
65<listitem><para>Download size: &iptables-size;</para></listitem>
66<listitem><para>Estimated Disk space required:
67&iptables-buildsize;</para></listitem>
68<listitem><para>Estimated build time:
69&iptables-time;</para></listitem></itemizedlist>
70</sect3>
71
72</sect2>
73
74<sect2>
75<title>Installation of <application>iptables</application></title>
76
77<para>Install <application>iptables</application> by running the following
78commands:</para>
79
80<screen><userinput><command>make PREFIX=/usr LIBDIR=/lib BINDIR=/sbin &amp;&amp;
81make PREFIX=/usr LIBDIR=/lib BINDIR=/sbin install</command></userinput></screen>
82
83</sect2>
84
85<sect2>
86<title>Command explanations</title>
87
88<para><parameter>PREFIX=/usr LIBDIR=/lib BINDIR=/sbin</parameter>: Compiles
89and installs <application>iptables</application> libraries into
90<filename class="directory">/lib</filename>, binaries into
91<filename class="directory">/sbin</filename> and the remainder into the
92<filename class="directory">/usr</filename> hierarchy instead of
93<filename class="directory">/usr/local</filename>. Firewalls are
94generally activated during the boot process and
95<filename class="directory">/usr</filename> may not be mounted at that
96time.</para>
97
98</sect2>
99
100<sect2>
101<title>Contents</title>
102
103<para>The <application>iptables</application> package contains
104<command>iptables</command>, <command>iptables-restore</command>,
105<command>iptables-save</command>, <command>ip6tables</command>
106and the <filename class='libraryfile'>libip*.so</filename> library
107modules.</para>
108
109</sect2>
110
111<sect2><title>Description</title>
112
113<sect3><title>iptables</title>
114<para><command>iptables</command> is used to set up, maintain, and inspect the
115tables of <acronym>IP</acronym> packet filter rules in the Linux kernel.</para>
116</sect3>
117
118<sect3><title>iptables-restore, iptables-save</title>
119<para>These are used to save and to restore your elaborated set of chains and
120rules. Until <application>iptables</application>-1.2.5, they were declared
121experimental.</para>
122</sect3>
123
124<sect3 id="ip6tables" xreflabel="ip6tables"><title>ip6tables</title>
125<para>This is the same as <command>iptables</command> but for use with
126<acronym>IP</acronym>v6. As of v1.2.5, it is not as complete as the standard
127<acronym>IP</acronym>v4 version, especially with regard to some of the
128modules.</para>
129</sect3>
130
131<sect3><title>libip*.so library modules</title>
132<para>These are various modules (implemented as dynamic libraries) which
133extend the core functionality of <command>iptables</command>.</para>
134</sect3>
135
136</sect2>
137
138</sect1>
Note: See TracBrowser for help on using the repository browser.