I worked a bit on my #guile netlink implementation yesterday and added the RTM_*ADDR types for rtnetlink. This was enough for me to write some code that adds an IP address (v4 or v6) to an interface! The goal is to use it to replace the current static-networking-service-type in #guix as it currently only supports ipv4. You can find the code here:
and I have a manual at https://git.lepiller.eu/guile-netlink/manual/manual.html
@roptat this could also be used to do real network isolation in guix container. cool stuff!
Yep, that's also part of the plan. I saw that their is a netlink_netfilter protocol, so I'm wondering if I can implement a firewall in guile too :)
Le réseau social de l'avenir : Pas d'annonces, pas de surveillance institutionnelle, conception éthique et décentralisation ! Possédez vos données avec Mastodon !