aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorroam <roam@FreeBSD.org>2003-10-10 14:54:42 +0800
committerroam <roam@FreeBSD.org>2003-10-10 14:54:42 +0800
commit23100a1374764ab024f29dc8e66d6cfc01ec9b71 (patch)
tree5efc19703c714d3331814402a801c740350686df /security
parentad19916019d9a0dfa66c6d096429ff6b399cbc04 (diff)
downloadfreebsd-ports-gnome-23100a1374764ab024f29dc8e66d6cfc01ec9b71.tar.gz
freebsd-ports-gnome-23100a1374764ab024f29dc8e66d6cfc01ec9b71.tar.zst
freebsd-ports-gnome-23100a1374764ab024f29dc8e66d6cfc01ec9b71.zip
Correct the explanations on using the BPF functionality on FreeBSD.
PR: 57813 Submitted by: maintainer
Diffstat (limited to 'security')
-rw-r--r--security/nessus-libraries-devel/files/README.BPF28
-rw-r--r--security/nessus-libraries/files/README.BPF28
2 files changed, 12 insertions, 44 deletions
diff --git a/security/nessus-libraries-devel/files/README.BPF b/security/nessus-libraries-devel/files/README.BPF
index 90185da60834..2683ba879bd2 100644
--- a/security/nessus-libraries-devel/files/README.BPF
+++ b/security/nessus-libraries-devel/files/README.BPF
@@ -1,22 +1,13 @@
-Nessus uses the pcap library, which uses the
-berkeley packet filter (bpf) to do its job.
+Nessus uses the pcap library, which uses the berkeley packet filter (bpf)
+to do its job.
Since Nessus used multiple processes, several pcap-aware plugins will
need to access the the bpf at the same time.
-This means that you need to recompile your kernel with the
-following option :
+This means that you need to recompile your kernel with the following option:
-For FreeBSD 5.x:
-pseudo-device bpfilter
+pseudo-device bpf
-For FreeBSD 4.x:
-pseudo-device bpfilter NUM
-
-Where 'NUM' is the number of bpf you want -- it should be equal to
-the 'max hosts number' option you enter in nessusd x the
-'max plugins' option.
-
If for instance you want to have 10 nessusd running at the same time,
each running 5 plugins in parallel, you should create 50 (10 * 5) bpfs
(as nessusd is extremely lightweight, you can expect to have this amount
@@ -26,18 +17,11 @@ If you plan to scan a whole network, we recommand you create at least
100 of them.
Once your kernel has been rebuilt, get root, cd to /dev
-and do :
-
- i=0; while [ $i -lt 100];
- do
- ./MAKEDEV bpf$i
- let i=$i+1
- done
+and do:
-On FreeBSD, you can directly do :
./MAKEDEV bpf+100
-(For FreeBSD 5.x this is not needed since the devfs creates devices when needed)
+For FreeBSD 5.x this is not needed since the devfs creates devices when needed.
If you can not recompile your kernel, you can try to run the configure
script with the option --enable-bpf-sharing. In this case, nessusd will
diff --git a/security/nessus-libraries/files/README.BPF b/security/nessus-libraries/files/README.BPF
index 90185da60834..2683ba879bd2 100644
--- a/security/nessus-libraries/files/README.BPF
+++ b/security/nessus-libraries/files/README.BPF
@@ -1,22 +1,13 @@
-Nessus uses the pcap library, which uses the
-berkeley packet filter (bpf) to do its job.
+Nessus uses the pcap library, which uses the berkeley packet filter (bpf)
+to do its job.
Since Nessus used multiple processes, several pcap-aware plugins will
need to access the the bpf at the same time.
-This means that you need to recompile your kernel with the
-following option :
+This means that you need to recompile your kernel with the following option:
-For FreeBSD 5.x:
-pseudo-device bpfilter
+pseudo-device bpf
-For FreeBSD 4.x:
-pseudo-device bpfilter NUM
-
-Where 'NUM' is the number of bpf you want -- it should be equal to
-the 'max hosts number' option you enter in nessusd x the
-'max plugins' option.
-
If for instance you want to have 10 nessusd running at the same time,
each running 5 plugins in parallel, you should create 50 (10 * 5) bpfs
(as nessusd is extremely lightweight, you can expect to have this amount
@@ -26,18 +17,11 @@ If you plan to scan a whole network, we recommand you create at least
100 of them.
Once your kernel has been rebuilt, get root, cd to /dev
-and do :
-
- i=0; while [ $i -lt 100];
- do
- ./MAKEDEV bpf$i
- let i=$i+1
- done
+and do:
-On FreeBSD, you can directly do :
./MAKEDEV bpf+100
-(For FreeBSD 5.x this is not needed since the devfs creates devices when needed)
+For FreeBSD 5.x this is not needed since the devfs creates devices when needed.
If you can not recompile your kernel, you can try to run the configure
script with the option --enable-bpf-sharing. In this case, nessusd will