Include a practical example that shows how ng_bpf can be used to prevent spoofing.
There are two ways to check man pages:
textproc/igor, it reports:
$ igor ng_bpf.4
ng_bpf.4:38:date not today, September 20, 2020:.Dd [April 29, 2020]
and mandoc -Tlint, which reports:
$ mandoc -Tlint ng_bpf.4
mandoc: ng_bpf.4:173:1: WARNING: blank line in fill mode, using .sp
mandoc: ng_bpf.4:117:2: STYLE: useless macro: Tn
mandoc: ng_bpf.4:124:2: STYLE: useless macro: Tn
mandoc: ng_bpf.4:130:2: STYLE: useless macro: Tn
Can you fix them ?
- about awk: So the mention of awk(1) can be removed from the EXAMPLES section ?
- tcpdump wants to operate on some interface, as far as I can see, even it that interface will not be used ?
So running it as normal user gives this error:
$ tcpdump -s 8192 -p -ddd tcp dst port 80
tcpdump: igb0: You don't have permission to capture on that device
So this script needs to be run as root, right ? Can this be mentioned somewhere ? Any options to avoid running this as root ?