All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olivier GRALL <olivier.grall@neotip.com>
To: netfilter-devel@lists.netfilter.org
Subject: ow to intercept an udp packet sent by a socket in a Netfilter module
Date: Thu, 23 Dec 2004 11:02:46 +0100	[thread overview]
Message-ID: <41CA97C6.8070002@neotip.com> (raw)

Hello

I'm writing a little module using netfilter. I want to catch an UDP 
packet sended by a socket and to change its source port without 
conntrack see the changes. I want to do it on the POSTROUTING Hook but I 
don't see any packets from a socket in my module logs.

So I want to know how to capture packets coming from a local socket in 
POSTROUTING.

For the moment, I register like this:
    static struct nf_hook_ops ipt_ops_out =
    {
      { NULL, NULL},
      ms_media_hook_out,
      THIS_MODULE,
      PF_INET,
      NF_IP_POST_ROUTING,
      NF_IP_PRI_NAT_SRC+1
    };

Thanks,

Olivier GRALL

                 reply	other threads:[~2004-12-23 10:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=41CA97C6.8070002@neotip.com \
    --to=olivier.grall@neotip.com \
    --cc=netfilter-devel@lists.netfilter.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 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.