Firewall
Hi Pals
I want write a firewall on linux. I do not want to use iptables or so just my own code.
So I thought of using libpcap and libnet as to be able to capture packets from one interface and do my processing on it and then re transmit that traffic with libnet.
But the problem is that with libpcap I capture only a copy of the traffic, another copy is sent to the kernel which is not what I want.
So what I want is something to be able to capture traffic in the way to the kernel.
Shall I modify the linux kernel code or the eth driver code, or is there another trick to be done
Thanks a lot in advance
|