All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Mefford <meffordm@gmail.com>
To: trixter@0xdecafbad.com
Cc: netfilter@vger.kernel.org
Subject: Re: netfilter + perl payload mangling in userspace
Date: Mon, 27 Jul 2009 09:44:39 -0600	[thread overview]
Message-ID: <4A6DCB67.7080004@gmail.com> (raw)
In-Reply-To: <1248667055.5801.355.camel@trixeee>

Trixter aka Bret McDanel wrote:
> I wanted to modify the payload of packets in userspace, preferably with
> perl.  I have tried to google to find something, encountered some dead
> links.  I have not be able to get the example Net::Divert to work,
> however it appears that I am not able to divert properly.  I cant find
> any working examples of how to do the iptables command to divert.  
>
> Is there any other way to modify the payload of a packet from userspace,
> preferably with perl?
>
> can someone provide me with a working example of how to do iptables to
> divert?
>
>
> I have iptables 1.4.1.1 on eeebuntu (ubuntu base) and a kernel of 2.6.27
>
> Thank you
>   

Have you tried using NFQUEUE?  The queue is provided to 'queue' packets 
for userspace processing.  To use the queue, you'll need the 
libnetfilter_queue API.  Start here:

http://www.netfilter.org/projects/libnetfilter_queue/index.html

If you need more help, let me know.


Michael.


      reply	other threads:[~2009-07-27 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27  3:57 netfilter + perl payload mangling in userspace Trixter aka Bret McDanel
2009-07-27 15:44 ` Michael Mefford [this message]

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=4A6DCB67.7080004@gmail.com \
    --to=meffordm@gmail.com \
    --cc=netfilter@vger.kernel.org \
    --cc=trixter@0xdecafbad.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.