Q: How do I put a bpf filter on a detection engine?
A:
- On the IS, create a file containing your bpf. This could be called /etc/sf/snort.bpf. This file can have multiple bpfs on one line. Comments are also allowed with the # sign.
not net 192.168.0.0/16 and not port 80
- Edit /var/sf/detection_engines/{crazynumber}/user.conf. This file should be blank, and you will need to add the following line to the file:
config bpf_file: /etc/sf/snort.bpf
- Restart the sensor software:
/etc/rc.d/init.d/sensor restart