Problems using custom module
I'm trying to develop a very simple "match" module for iptables based on a modified version of "ipt_ttl.c" that i'v called "ipt_ttlhhd.c" (does some heuristics based on TTL to estimate the hop distance and match)
I'v made the changes to the Makefile to compile the module, compiled it with success but when i'm trying to use it, I always get the error:
Quoted 1 line
Quoted 1 line
iptables v1.2.7a: Couldn't load match `ttlhhd':/lib/iptables/libipt_ttlhhd.so: cannot open shared object file: No such file or directory
Even with the module built in the kernel the problem persists.
My base questions are:
Why do I need that lib (i'v found the originals installed with the Linux RH9 in /lib/iptables/ ) ?
Even with the module compiled in the kernel the lib is needed ?
How do I compile it ? (is there a tutorial for that ?)
Does this means that the kernel is always tied with the libs ?
Where is the "code" to execute the task, in the kernel/module or in the lib ?
TIA!
PS: Great work guys, iptables rocks! (hope to also contribute soon!)
Signature · 2 lines
Best regards, IPLNet mailto:[email protected]
Quoted 3 lines · IPLNet - PedroRibeiro
Quoted 3 lines
Quoted 3 lines
iptables v1.2.7a: Couldn't load match `ttlhhd':/lib/iptables/libipt_ttlhhd.so: cannot open shared object
file: No such file or directory
This error is not related to the kernel but to the userspace iptables program. As the kernel the userspace program also uses modules but of a slightly different kind. The userspace module is responsible for parsing the arguments given to the iptables command into the suitable match/target structure sent to the kernel.
See the userspace/extensions/ directory.
Regards
Henrik