Skip to contentSkip to conversation

How to write a netfilter module like ipt_iplimit.c

DISCUSSION sevenyears 1 participant 2 messages Sep 12, 2003 netfilter

lore
Share & tools
lore

sevenyears

author
#0 lore raw

Hi, all.
I am a netfilter newbie. I read the document "netfilter-hacking-HOWTO-4.html" and try to do some exercise. As I know, to extend iptables, one should care two issues: writing a new standalone kernel module and writing a new shared library. The document I read described how to write this module clearly but how to write a share library for this module was explained too simple.

Would someone like to give me some advices on how to write a new kernel module to extend iptables and how to write this share library? Could I find some samples via google?

Please give me help.

best regards
yours sevenyears

author
#1 lore raw

Sorry, I realized I was so foolished//shame. I just browse the file included in iptables-1.2.8, and I find there are many examples under the directory "extensions".