Skip to content

Tag Archives: openbsd

Quickly Remove IP Addresses from spamdb

30-Dec-08

To remove all whitelisted entries in – for example - 69.6.0.0/16 run: # spamdb | grep WHITE | egrep ‘\|69\.6\.’ | \ cut -f 2 -d ‘|’ | xargs -L 1 spamdb -d

Reloading and Testing pf rulesets

30-Dec-08

To test the ruleset in /etc/pf.conf, do the following: sudo pfctl -n -f /etc/pf.conf sudo pfctl -n -v -f /etc/pf.conf The second pfctl command displays the rules you’ve created; however, it can be easy to miss a syntax error warning in the verbosity – the first command will make it easy to spot those. You can [...]

Index of Sysctl Definitions

29-Dec-08

EnderUNIX has a large glossary of user-contributed sysctl definitions.

View Packets Logged by PF

28-Dec-08

Use tcpdump and the pflog0 device to view packets in real time: # tcpdump -n -e -ttt -i pflog0 To examine the log file, do the following instead: # tcpdump -n -e -ttt -r /var/log/pflog See PF: Logging for more information.