* how to use NF_QUEUE
@ 2005-02-09 11:16 vinay mathew
2005-02-09 11:26 ` Eric Leblond
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: vinay mathew @ 2005-02-09 11:16 UTC (permalink / raw)
To: netfilter
Hi,
I am a newbie regarding Netfilter.I need to use the
Netfilter hooks for a project. I have tried out the
hook functions using NF_ACCEPT, NF_DROP.I need to use
NF_QUEUE to queue certain packets to the user space
where i need to process them further and then send
these packets back into the network stack.
I have not done this before so does anyone have some
simple sample code using this option so that i can get
a start on how its done.
Thanx in advance ,
regards
vinay
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - Get yours free!
http://my.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to use NF_QUEUE
2005-02-09 11:16 how to use NF_QUEUE vinay mathew
@ 2005-02-09 11:26 ` Eric Leblond
2005-02-09 11:31 ` Eric Leblond
2005-02-09 17:37 ` Ulysses Almeida
2 siblings, 0 replies; 4+ messages in thread
From: Eric Leblond @ 2005-02-09 11:26 UTC (permalink / raw)
To: netfilter
Le mercredi 09 février 2005 à 03:16 -0800, vinay mathew a écrit :
> Hi,
> I am a newbie regarding Netfilter.I need to use the
> Netfilter hooks for a project. I have tried out the
> hook functions using NF_ACCEPT, NF_DROP.I need to use
> NF_QUEUE to queue certain packets to the user space
> where i need to process them further and then send
> these packets back into the network stack.
> I have not done this before so does anyone have some
> simple sample code using this option so that i can get
> a start on how its done.
Use libipq, it's the easiest way to send packet to userspace and put
them back in the network stack. The man page contains some examples.
For a more concrete example you can have a look at the nufw project
(http://www.nufw.org).
The file src/nufw/packetsrv.c and src/nufw/authsrv.c contain code
example.
BR,
--
Éric Leblond, eleblond@inl.fr
Téléphone : 01 44 89 46 40, Fax : 01 44 89 45 01
INL, http://www.inl.fr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to use NF_QUEUE
2005-02-09 11:16 how to use NF_QUEUE vinay mathew
2005-02-09 11:26 ` Eric Leblond
@ 2005-02-09 11:31 ` Eric Leblond
2005-02-09 17:37 ` Ulysses Almeida
2 siblings, 0 replies; 4+ messages in thread
From: Eric Leblond @ 2005-02-09 11:31 UTC (permalink / raw)
To: netfilter
Le mercredi 09 février 2005 à 03:16 -0800, vinay mathew a écrit :
> Hi,
> I am a newbie regarding Netfilter.I need to use the
> Netfilter hooks for a project. I have tried out the
> hook functions using NF_ACCEPT, NF_DROP.I need to use
> NF_QUEUE to queue certain packets to the user space
> where i need to process them further and then send
> these packets back into the network stack.
> I have not done this before so does anyone have some
> simple sample code using this option so that i can get
> a start on how its done.
Use libipq, it's the easiest way to send packet to userspace and put
them back in the network stack. The man page contains some examples.
For a more concrete example you can have a look at the nufw project
(http://www.nufw.org).
The file src/nufw/packetsrv.c and src/nufw/authsrv.c contain code
example.
BR,
--
Éric Leblond, eleblond@inl.fr
Téléphone : 01 44 89 46 40, Fax : 01 44 89 45 01
INL, http://www.inl.fr
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to use NF_QUEUE
2005-02-09 11:16 how to use NF_QUEUE vinay mathew
2005-02-09 11:26 ` Eric Leblond
2005-02-09 11:31 ` Eric Leblond
@ 2005-02-09 17:37 ` Ulysses Almeida
2 siblings, 0 replies; 4+ messages in thread
From: Ulysses Almeida @ 2005-02-09 17:37 UTC (permalink / raw)
To: vinay mathew; +Cc: netfilter
Hi,
Some time ago I wrote this tutorial
(http://munky.maluco.com.br/libipq.html) It uses libipq with NF_QUEUE
hook, to show some packet infos on the screen, it's very simple
example. Main problem, it's on pt_BR, but you can take a look on
"LibIPQ by example" section, it's kind of self-explanatory.
Any doubt about translation or libipq, you can write me (pvt)
Regards.
On Wed, 9 Feb 2005 03:16:24 -0800 (PST), vinay mathew
<vinaymathew80@yahoo.com> wrote:
> Hi,
> I am a newbie regarding Netfilter.I need to use the
> Netfilter hooks for a project. I have tried out the
> hook functions using NF_ACCEPT, NF_DROP.I need to use
> NF_QUEUE to queue certain packets to the user space
> where i need to process them further and then send
> these packets back into the network stack.
> I have not done this before so does anyone have some
> simple sample code using this option so that i can get
> a start on how its done.
> Thanx in advance ,
> regards
> vinay
>
>
> __________________________________
> Do you Yahoo!?
> The all-new My Yahoo! - Get yours free!
> http://my.yahoo.com
>
>
--
- Ulysses Almeida
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-02-09 17:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-09 11:16 how to use NF_QUEUE vinay mathew
2005-02-09 11:26 ` Eric Leblond
2005-02-09 11:31 ` Eric Leblond
2005-02-09 17:37 ` Ulysses Almeida
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.