add/remove rules using libiptc
Hi all,
I am looking for a way to adding and deleting rules from iptables using module. I reaad the Rusty Hacking netfilter HOWTO and got a little bit idea.
However there are something i can't understand. I the guide, it mentions about the libiptc. Is it I can use the lib in the netfilter module for adding and deleting rules from the iptables at any time using the iptc_insert_entry(), iptc_append_entry(), iptc_delete_entry(), etc? However I can't find an example of using these, i get really confused about the struct using in there. Could anyone pls give me a guide to start?
I can't find the libiptc.h in my linux Redhat 8, why? I have iptables complied as a module when I complie my kernel before.