On Jun 17, Nils Goroll <[email protected]> wrote: >I have not implemented a prototype, but my understanding is that this >use case would actually need a CAP_NET_ADMIN capable process sending >the messages via the AF_NETLINK socket. As we discussed online, I think that it is safer and easier to implement firewall management in a standalone and privileged daemon which receives requests from Vinyl Cache over a socket.
I have uploaded here a Perl server implementation and a test C client: https://www.bofh.it/~md/tmp/wip-updater/ . It still needs a proper name, but I think that it is a reasonable first release. It can be easily extended to support nftables and the *BSD firewall systems. It is smart enough to batch requests received in a short time, so under attack it will spawn ipset once to update multiple entries. I know that frequently running an external program from Perl is going to be efficient enough because I have been blocking DDoS attacks by running ipset for single IPs in a shell script's while loop. What it needs now is somebody making a vmod client. Maybe first prototyped as inline C? (This would also be nice for teaching how inline C works, since there is not much "modern" documentation...) -- ciao, Marco
signature.asc
Description: PGP signature
_______________________________________________ vinyl-dev mailing list [email protected] https://vinyl-cache.org/lists/mailman/listinfo/vinyl-dev
