https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291163
--- Comment #1 from Jose Luis Duran <[email protected]> --- Thank you for sharing your ideas regarding blocklistd. With respect to this particular request, I can initially think of: 1. Using a custom control script: You can use your own control script with the functionality you wish to have. For example: cp /usr/libexec/blocklistd-helper /usr/libexec/my-blocklistd-helper Configure blocklistd to use your control script: sysrc blocklistd_flags="-C /usr/libexec/my-blocklistd-helper" Change the "add", "rem", and "flush" actions to achieve whatever you are looking for. For example: add) ... route add -blackhole ${addr}/${mask} <gateway> If your routing daemon redistributes static routes, you'll achieve your objective. The opposite can be done for "rem", and optionally "flush". 2. Suggest pre/post action hooks upstream: Given we are a downstream of https://github.com/zoulasc/blocklist, I'd suggest opening the feature request upstream. Maybe with the option to add pre/post hooks to the control script actions. In this case, you would just attach your custom functionality to the post-add/rem hooks, for example. -- You are receiving this mail because: You are the assignee for the bug.
