can anyone help me in adding my own module as a new target for iptables. I am looking for a way to encrypt packets using iptables for which i need to add a new target.

should i make any changes in the kernel.?
please guide me on this.

thanks in advance
--gokul