Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Padmanabhan <rpdumps@gmail.com>
To: netfilter@vger.kernel.org
Subject: iptables u32 tests and user logging
Date: Mon, 21 Jul 2008 01:15:19 -0500	[thread overview]
Message-ID: <76fdae320807202315mb59c131s5f4c52f350d31aca@mail.gmail.com> (raw)
In-Reply-To: <76fdae320807202313ma67d4c3l1921e41fa962a976@mail.gmail.com>

Hello All,
I am couple of questions on whether iptables can used to achieve my requirement.

Test Setup
Two Fedora core 9 ( kernel 2.6.25.6-55) systems running Intel 2 core
duo processor as iSCSI initiator/target connected via Gig Ethernet
switch
IP Tables v 1.4.0

Requirement
On the target system, I have to look for packets that have TOS bits
set and in those packets, I have look beyond the TCP header i.e. into
iSCSI header for specific values.
In this case, i am looking for iSCSI read command( first byte) and
notedown ITT value ( 4 bytes, from 16-19 )

I studied manual pages and I am not sure whetehr IP tables/u32/ulog
can help me to achieve me this requirement.

Questions
1. I just need to pull out few bytes out from the packet and log it.
2. Whether ulog can record only few bytes or interested bytes in the paylod ??

Thanks in advance for your suggestions

Regards
Padmanabhan

       reply	other threads:[~2008-07-21  6:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <76fdae320807202313ma67d4c3l1921e41fa962a976@mail.gmail.com>
2008-07-21  6:15 ` Padmanabhan [this message]
2008-07-21  7:51   ` iptables u32 tests and user logging Jan Engelhardt
2008-07-21 15:40     ` Grant Taylor
2008-07-21 16:41       ` Padmanabhan
2008-07-21 16:49         ` Jan Engelhardt
2008-07-21 18:06           ` Padmanabhan
2008-07-21 18:49             ` Jan Engelhardt
2008-07-21 19:57             ` Grant Taylor
2008-07-21 20:15               ` Padmanabhan
2008-07-21 21:52                 ` Grant Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=76fdae320807202315mb59c131s5f4c52f350d31aca@mail.gmail.com \
    --to=rpdumps@gmail.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox