]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/ipfilter/INSTALL.NetBSD
This commit was generated by cvs2svn to compensate for changes in r54816,
[FreeBSD/FreeBSD.git] / contrib / ipfilter / INSTALL.NetBSD
1
2 To build a kernel for use with the loadable kernel module, follow these
3 steps:
4         1. do "make netbsd"
5
6         2. do "make install-bsd"
7            (probably has to be done as root)
8
9         3(a) NetBSD systems prior to 1.2:
10                 run "NetBSD/minstall" as root
11         3(b) NetBSD 1.2 systems or later:
12                 run "NetBSD-1.2/minstall" as root
13
14         4. build a new kernel
15
16         5. install and reboot with the new kernel
17
18         6. use modload(8) to load the packet filter with:
19                 modload if_ipl.o
20
21         7. do "modstat" to confirm that it has been loaded successfully.
22
23 There is no need to use mknod to create the device in /dev;
24 - upon loading the module, it will create itself with the correct values,
25   under the name (IPL_NAME) from the Makefile.  It will also remove itself
26   from /dev when it is modunload'd.
27
28 To build a kernel with the IP filter, follow these steps:
29
30         1. do "make netbsd"
31
32         2. do "make install-bsd"
33            (probably has to be done as root)
34
35         3(a) NetBSD systems prior to 1.2:
36                 run "NetBSD/kinstall" as root
37         3(b) NetBSD 1.2 systems or later:
38                 run "NetBSD-1.2/kinstall" as root
39         3(c) If conf.c fails on the 2nd hunk of the patch, you will have to
40              manually apply the patch.
41
42         4. build a new kernel
43
44         5. Create device files.  For NetBSD-1.2 (or later), use 49 as the
45            major number. For NetBSD-1.1 or earlier, use 59.  Run these
46            commands as root, substituting <major> for the appropriate number:
47
48                 mknod /dev/ipl c <major> 0
49                 mknod /dev/ipnat c <major> 1
50                 mknod /dev/ipstate c <major> 2
51                 mknod /dev/ipauth c <major> 3
52
53            ** NOTE: both the numbers 49 and 59 should be substituted with
54                     whatever number you inserted it into conf.c as.
55
56         6. install and reboot with the new kernel
57
58 Darren Reed
59 darrenr@pobox.com