aboutsummaryrefslogtreecommitdiff
path: root/contrib/blocklist/TODO
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/blocklist/TODO')
-rw-r--r--contrib/blocklist/TODO49
1 files changed, 46 insertions, 3 deletions
diff --git a/contrib/blocklist/TODO b/contrib/blocklist/TODO
index 9925020d54bb..d67111bd5139 100644
--- a/contrib/blocklist/TODO
+++ b/contrib/blocklist/TODO
@@ -1,4 +1,4 @@
-# $NetBSD: TODO,v 1.7 2015/01/23 21:34:01 christos Exp $
+# $NetBSD: TODO,v 1.3 2025/02/05 20:22:26 christos Exp $
- don't poll periodically, find the next timeout
- use the socket also for commands? Or separate socket?
@@ -17,5 +17,48 @@
-n
block
unblock
-- do we need an api in blacklistctl to perform maintenance
-- fix the blacklistctl output to be more user friendly
+- do we need an api in blocklistctl to perform maintenance
+- fix the blocklistctl output to be more user friendly
+
+- figure out some way to do distributed operation securely (perhaps with
+ a helper daemon that authenticates local sockets and then communicates
+ local DB changes to the central server over a secure channel --
+ perhaps blocklistd-helper can have a back-end that can send updates to
+ a central server)
+
+- add "blocklistd -l" to enable filter logging on all rules by default
+
+- add some new options in the config file
+
+ "/all" - block both TCP and UDP (on the proto field?)
+
+ "/log" - enable filter logging (if not the default) (on the name field?)
+ "/nolog"- disable filter logging (if not the default) (on the name field?)
+
+ The latter two probably require a new parameter for blocklistd-helper.
+
+- "blocklistd -f" should (also?) be a blocklistctl function!?!?!
+
+- if blocklistd was started with '-r' then a SIGHUP should also do a
+ "control flush $rulename" and then re-add all the filter rules?
+
+- should/could /etc/rc.conf.d/ipfilter be created with the following?
+
+ reload_postcmd=blocklistd_reload
+ start_postcmd=blocklistd_start
+ stop_precmd=blocklistd_stop
+ blocklistd_reload ()
+ {
+ /etc/rc.d/blocklistd reload # IFF SIGHUP does flush/re-add
+ # /etc/rc.d/blocklistd restart
+ }
+ blocklistd_stop ()
+ {
+ /etc/rc.d/blocklistd stop
+ }
+ blocklistd_start ()
+ {
+ /etc/rc.d/blocklistd start
+ }
+
+ or is there a better way?