There's a iptables library too. I think that you are looking for libiptc. (e.g. "libiptc.h" etc.) Honestly, if you aren't going to dig super deep, sometimes just calling scripts and command lines via system() or whatever is the better course. On 06/29/2018 06:55 AM, Johennecken, Peter wrote: > Hello Laura, >> I believe that libnftables is what you're looking for. >> http://git.netfilter.org/nftables/tree/doc/libnftables.adoc > Unfortunately I have to use iptables instead of nftables. Thanks anyway. -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html