Re: track the icmp packet.

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

 



Hi!

On Thu, Oct 06, 2011 at 09:41:48PM +0530, ratheesh kannoth wrote:
> I found a program at
> http://www.netfilter.org/documentation/HOWTO/netfilter-hacking-HOWTO.txt.
> I modified a little for my purpose. But it is not working. Could you
> please guide me.

The program is an example of Netfilter kernel module - not the way to
go here.

You should better use the LOG target, e.g.

iptables -I INPUT -p icmp -j LOG --log-level=0 --log-prefix="My ping log: "

which will produce (after "ping localhost") something like:

My ping log: IN=lo OUT= MAC=00:00:00:00:00:00:00:00:00:00:00:00:08:00 SRC=127.0.0.1 DST=127.0.0.1 LEN=84 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=ICMP TYPE=8 CODE=0 ID=4508 SEQ=1

  Best regards, Jasan
--
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