Skip to contentSkip to conversation

add/remove rules using libiptc

DISCUSSION Calvin 1 participant 1 message May 16, 2003 netfilter

lore
Share & tools
lore

Calvin

author
#0 lore raw

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.