blocklistd.conf syntax

Paul Goyette <[email protected]>
Newsgroups gmane.os.netbsd.current
Message-ID <[email protected]>
I am trying to get blocklistd started on my system (yeah, I know, I
should have done this years ago).

I set up /etc/npf.conf using /usr/share/examples/blocklist/npf.conf
as a guide:

 	alg "icmp"
 	set bpf.jit on;
 	$ext_if1 = "rge0"
 	group "bl1" on $ext_if1 {
 		ruleset "blocklistd"
 		pass final all
 	}
 	group default {
 		pass final all
 	}

Next step seems to be blocklistd.  The example file contains some
lines that start with what appear to be port names (slightly
reformatted to avoid line wrap)

 	...
 	[local]
 	ssh             stream  *       *       *   3   6h
 	ftp             stream  *       *       *   3   6h
 	domain          *       *       named   *   3   12
 	...

Yet the man page seems to indicate that port names should be
prefixed with a colon:

 	The syntax for the location is:

                    [<address>|<interface>][/<mask>][:<port>]


And finally, how can I tell if blocklistd is working?


+---------------------+--------------------------+----------------------+
| Paul Goyette (.sig) | PGP Key fingerprint:     | E-mail addresses:    |
| (Retired)           | 1B11 1849 721C 56C8 F63A | [email protected]    |
| Software Developer  | 6E2E 05FD 15CE 9F2D 5102 | [email protected]  |
| & Network Engineer  |                          | [email protected] |
+---------------------+--------------------------+----------------------+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.