Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 1 | FOLLOW THESE STEPS: |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 2 | |
Rusty Russell | 50a8efe | 2001-02-03 10:50:04 +0000 | [diff] [blame] | 3 | 0) There may be some outstanding bugfixes or tweaks which are not yet |
Harald Welte | 2bd0ada | 2002-08-02 12:54:19 +0000 | [diff] [blame] | 4 | in the official kernel. Those are now (as of iptables-1.2.7) kept |
| 5 | in a seperate package, called patch-o-matic. It is available from |
| 6 | ftp://ftp.netfilter.org/pub/patch-o-matic/ |
Harald Welte | c5a2ce4 | 2001-09-02 14:55:36 +0000 | [diff] [blame] | 7 | |
Rusty Russell | 50a8efe | 2001-02-03 10:50:04 +0000 | [diff] [blame] | 8 | 1) Next, make the package. |
Rusty Russell | 197ca91 | 2002-05-13 01:52:18 +0000 | [diff] [blame] | 9 | % make KERNEL_DIR=<<where-you-built-your-kernel>> |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 10 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 11 | 2) Finally, you need to to install the shared libraries, and the binary: |
Rusty Russell | 197ca91 | 2002-05-13 01:52:18 +0000 | [diff] [blame] | 12 | # make install KERNEL_DIR=<<where-you-built-your-kernel>> |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 13 | |
James Morris | 460c747 | 2001-10-16 14:41:02 +0000 | [diff] [blame] | 14 | If you are a developer, you can install the headers, development libraries |
| 15 | and associated development man pages, with: |
Rusty Russell | 429eafb | 2001-01-07 06:49:44 +0000 | [diff] [blame] | 16 | # make install-devel |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 17 | |
Rusty Russell | 429eafb | 2001-01-07 06:49:44 +0000 | [diff] [blame] | 18 | That's it! |
| 19 | ================================================================ |
Rusty Russell | 429eafb | 2001-01-07 06:49:44 +0000 | [diff] [blame] | 20 | PROBLEMS YOU MAY ENCOUNTER: |
| 21 | |
Harald Welte | c206dcb | 2001-04-30 04:24:30 +0000 | [diff] [blame] | 22 | 1) This package requires a 2.4.4 kernel, or above. |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 23 | |
| 24 | 2) If you get the kernel directory wrong, you may see a message like: |
| 25 | Please try `make KERNEL_DIR=path-to-correct-kernel' |
| 26 | |
| 27 | 3) If you want to specify alternate directories for installation |
| 28 | (instead of /usr/local/ bin lib man), do this: |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 29 | |
| 30 | % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 31 | # make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 32 | |
Harald Welte | 3efb6ea | 2001-08-06 18:50:21 +0000 | [diff] [blame] | 33 | 4) If you want to build a statically linked version of the iptables binary, |
| 34 | without the need for loading the plugins at runtime (e.g. for an embedded |
| 35 | device or router-on-a-disk), please use |
| 36 | |
| 37 | % make NO_SHARED_LIBS=1 |
| 38 | |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 39 | NOTE: make sure you build with at least the correct LIBDIR= |
| 40 | specification, otherwise iptables(8) won't know where to find the |
| 41 | dynamic objects. |