Re: Query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

iptables provides facilites to queue packets that traverse the kernel
to a user space application. You can specify rules that define which
packets are sent to user space. Furthermore, you can modify packet
data to be reinjected into the kernel.

I would suggest reading the manpage of libipq, providing a simple API
to receive the packets. A very simple example application can be found
there as well.
As to reinjection, read the ipq_set_verdict man page.
Hope that helps a little bit.

David

2006/2/10, Rob Sterenborg <rob@xxxxxxxxxxxxxxx>:
> On Fri, February 10, 2006 05:35, aparna misri wrote:
> > hello,
> >   I am doing a small project in networking.I read
> > somewhere that I can use iptables to capture network
> > data.I want to capture IP packets so that I can
> > compress it and then send it to the receiver.Receiver
> > decompresses it at its side.Is it possible to do it
> > with iptables?
>
> I'd capture it with tcpdump, ethereal or something like that. These are packet
> sniffers, iptables is not. I'm not sure if iptables can capture (and log) all
> packets just like a sniffer can.
>
>
> Gr,
> Rob
>
>
>
>



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux