1 2This file is for use with FreeBSD 4.x and 5.x only. 3 4To build a kernel for use with the loadable kernel module, follow these 5steps: 6 1. For FreeBSD version: 7 4.* do make freebsd4 8 5.* do make freebsd5 9 10 2. do "make install-bsd" 11 (probably has to be done as root) 12 13 3. Run "BSD/kupgrade" 14 15 4. build a new kernel 16 17 5. install and reboot with the new kernel 18 19 6. use modload(8) to load the packet filter with: 20 modload if_ipl.o 21 22 7. do "modstat" to confirm that it has been loaded successfully. 23 24There is no need to use mknod to create the device in /dev; 25- upon loading the module, it will create itself with the correct values, 26 under the name (IPL_NAME) from the Makefile. It will also remove itself 27 from /dev when it is modunload'd. 28 29To build a kernel with the IP filter, follow these steps: 30 31 1. For FreeBSD version: 32 4.* do make freebsd4 33 5.* do make freebsd5 34 35 2. do "make install-bsd" 36 (probably has to be done as root) 37 38 3. run "FreeBSD/kinstall" as root 39 40 4. build a new kernel 41 42 5. 43 b) If you are using FreeBSD-3 or later: 44 create devices for IP Filter as follows (assuming it was 45 installed into the device table as char dev 20): 46 mknod /dev/ipl c 79 0 47 mknod /dev/ipnat c 79 1 48 mknod /dev/ipstate c 79 2 49 mknod /dev/ipauth c 79 3 50 mknod /dev/ipsync c 79 4 51 mknod /dev/ipscan c 79 5 52 53 6. install and reboot with the new kernel 54 55Darren Reed 56darrenr@pobox.com 57