2 To build a kernel for use with the loadable kernel module, follow these
6 2. do "make install-bsd"
7 (probably has to be done as root)
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
16 5. install and reboot with the new kernel
18 6. use modload(8) to load the packet filter with:
21 7. do "modstat" to confirm that it has been loaded successfully.
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.
28 To build a kernel with the IP filter, follow these steps:
32 2. do "make install-bsd"
33 (probably has to be done as root)
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.
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:
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
53 ** NOTE: both the numbers 49 and 59 should be substituted with
54 whatever number you inserted it into conf.c as.
56 6. install and reboot with the new kernel