summaryrefslogtreecommitdiffstats
path: root/INSTALL
blob: dafd4c32c3b134e2ffcae3cb87c8c65a47fd42a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FOLLOW THESE STEPS:

1) If /usr/src/linux contains the kernel headers of a recent 2.4
   kernel:
	% make
   Otherwise:
	% make KERNEL_DIR=<<where-your-kernel-is>>

2) Finally, you need to to install the shared libraries, and the binary:
	# make install
   Or
	# make install KERNEL_DIR=<<where-your-kernel-is>>

If you are a developer, you can install the libipq headers, like:
	# make install-devel

That's it!
================================================================
FEELING BRAVE?

1) If you want to try some extensions, you can do the following:
	% make patch-o-matic KERNEL_DIR=<<where-your-kernel-is>>

This offers you a collection of maybe-broken maybe-cool third-part
extensions.  It will modify you kernel source (so back it up first!).

2) If you want to test out `iptables-save' and `iptables-restore', you
can use
	% make experimental
	% make install-experimental

================================================================
PROBLEMS YOU MAY ENCOUNTER:

1) This package requires a 2.4.0 kernel, or above.

2) If you get the kernel directory wrong, you may see a message like:
	Please try `make KERNEL_DIR=path-to-correct-kernel'

3) If you want to specify alternate directories for installation
(instead of /usr/local/ bin lib man), do this:

	% make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man
	# make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install

NOTE: make sure you build with at least the correct LIBDIR=
specification, otherwise iptables(8) won't know where to find the
dynamic objects.