Re: Target IP monitoring...

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

 



On Monday 2008-08-11 14:51, Grant Taylor wrote:

> I'm going to be working on a project that will need to monitor what destination
> IPs traffic is sent to.  I was wondering if I could not use the ULOG in side of
> the nat table to do this.  I am really only wanting the target (and possibly
> the source) IP of each connection.  I do not want any of the IP payload or any
> of the packets, just the target IP.
>
> I was hoping to exploit the fact that the nat table only sees the first packet
> in a connection to help reduce the likelihood that I would see the same target
> IP multiple times.

Eww no, don't do that. Though Netfilter is written like that,
there is no hard guarantee that only first packets are seen.
(Like, we forget to take our medication and all packets go
through the then-semi-stateless nat table ;-)
Better use -m conntrack --ctstate NEW -j ULOG.
--
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