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