Re: [NFLOG] How to determine the connection a packet belongs to?

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

 



On 06/07/2011 04:10 PM, Clemens Eisserer wrote:
Hi,

You can build the tuple from the packet in user-space to look up the
conntrack via libnetfilter_conntrack.

How can I do that?

Assuming there are two open connections:
IP1:80<---->  IP2:39678
IP1:39678<----->  IP2:80

How can I know which packet belongs to which connection?

Thanks, Clemens
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Am not an expert, but can't you match the src and dst address/port in each packet?

Regards,
Seenu.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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