This project is from 2011, it's here just for remembering old days Small Firewall In Pure C As Linux Module Sample Firewall Source code based on netfilter tested on linux kernel 2.6 . i know that, it's old but maybe helpful!