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 |
| 4 | in the official kernel. To look through these, do: |
| 5 | % make pending-patches KERNEL_DIR=<<where-your-kernel-is>> |
| 6 | |
| 7 | 1) Next, make the package. |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 8 | % make KERNEL_DIR=<<where-your-kernel-is>> |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 9 | |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 10 | 2) Finally, you need to to install the shared libraries, and the binary: |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 11 | # make install KERNEL_DIR=<<where-your-kernel-is>> |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame] | 12 | |
Rusty Russell | 429eafb | 2001-01-07 06:49:44 +0000 | [diff] [blame] | 13 | If you are a developer, you can install the libipq headers, like: |
| 14 | # make install-devel |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 15 | |
Rusty Russell | 429eafb | 2001-01-07 06:49:44 +0000 | [diff] [blame] | 16 | That's it! |
| 17 | ================================================================ |
| 18 | FEELING BRAVE? |
| 19 | |
| 20 | 1) If you want to try some extensions, you can do the following: |
| 21 | % make patch-o-matic KERNEL_DIR=<<where-your-kernel-is>> |
| 22 | |
| 23 | This offers you a collection of maybe-broken maybe-cool third-part |
| 24 | extensions. It will modify you kernel source (so back it up first!). |
| 25 | |
| 26 | 2) If you want to test out `iptables-save' and `iptables-restore', you |
| 27 | can use |
| 28 | % make experimental |
| 29 | % make install-experimental |
| 30 | |
| 31 | ================================================================ |
| 32 | PROBLEMS YOU MAY ENCOUNTER: |
| 33 | |
Harald Welte | c206dcb | 2001-04-30 04:24:30 +0000 | [diff] [blame^] | 34 | 1) This package requires a 2.4.4 kernel, or above. |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 35 | |
| 36 | 2) If you get the kernel directory wrong, you may see a message like: |
| 37 | Please try `make KERNEL_DIR=path-to-correct-kernel' |
| 38 | |
| 39 | 3) If you want to specify alternate directories for installation |
| 40 | (instead of /usr/local/ bin lib man), do this: |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 41 | |
| 42 | % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man |
Rusty Russell | 8c245b5 | 2000-07-14 08:01:22 +0000 | [diff] [blame] | 43 | # make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 44 | |
| 45 | NOTE: make sure you build with at least the correct LIBDIR= |
| 46 | specification, otherwise iptables(8) won't know where to find the |
| 47 | dynamic objects. |