Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Eric Leblond <eric@inl.fr>, Curtis Wyatt <zhackwyatt@gmail.com>,
	netfilter@vger.kernel.org
Subject: Re: ip_queue, libnetfilter_queue, and packet alteration
Date: Wed, 23 Jul 2008 12:02:53 +0200	[thread overview]
Message-ID: <488701CD.1040509@netfilter.org> (raw)
In-Reply-To: <20080723094512.GA2250@khasse.inl.fr>

Eric Leblond wrote:
> Hello,
> 
> On Tuesday, 2008 July 22 at 17:02:14 -0700, Curtis Wyatt wrote:
>> I am using ip_queue.  I understand that is depreciated.
>>
>> I want to intercept a packet, alter it (change payload and source ip
>> address and destination ip address) and then do an NF_ACCEPT on it, to
>> have it continue on its way to another machine.  However it never
>> shows up at that other machine.  Is there anyway to do this without
>> doing an NF_DROP and then sending a new packet through?
>>
>> Will libnetfilter_queue do this for me?
> 
> Yes, but you will have to compute the checksum of the modified packet by
> yourself.
> 
> Someone should send a patch which adds helper functions to ease that
> task in a day or two.
> 
>> I don't want to move to
>> libnetfilter_queue because I can't find a redhat rpm and I can't find
>> hardly any documentation on it.
> 
> Compilation is not really difficult but lack of documentation is a real
> problem. The only thing for now is too look at snort-inline or NuFW code
> to see how to use the library.

I remember that you have mentioned some libnetfilter_queue's
documentation during the RMLL? I'm willing to include it if that helps
users. Where is it?

-- 
"Los honestos son inadaptados sociales" -- Les Luthiers

  reply	other threads:[~2008-07-23 10:02 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-23  0:02 ip_queue, libnetfilter_queue, and packet alteration Curtis Wyatt
2008-07-23  9:45 ` Eric Leblond
2008-07-23 10:02   ` Pablo Neira Ayuso [this message]
2008-07-23 11:19     ` Eric Leblond
2008-07-23 16:43   ` Curtis Wyatt
2008-07-24 23:13     ` Curtis Wyatt
2008-07-23 17:13   ` Patrick McHardy
2008-07-24  7:41     ` Eric Leblond
2008-07-24 10:22       ` Patrick McHardy
2008-07-25  9:43         ` Sebastien Tricaud

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=488701CD.1040509@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=eric@inl.fr \
    --cc=netfilter@vger.kernel.org \
    --cc=zhackwyatt@gmail.com \
    /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