From: Fallucchi Antonio <fallucch@cisbic.com>
To: netfilter-devel@lists.netfilter.org
Subject: Re: Userspace queuing
Date: Tue, 29 Jun 2004 11:08:49 +0200 [thread overview]
Message-ID: <40E131A1.3060409@cisbic.com> (raw)
In-Reply-To: <20040628171625.GB32388@maluco.com.br>
hi,
i use libipq and "QUEUE" for read the SYN pachet sent from local
application...
now I must REDIRECT all packet (width nat) to a local service (proxy).
I have configure the netfilter:
*nat
:PREROUTING ACCEPT [4:240]
:POSTROUTING ACCEPT [22:1306]
:OUTPUT ACCEPT [18:1066]
-A OUTPUT -d ! 127.0.0.1 -p tcp -m tcp --dport 80 ! --tcp-flags SYN SYN
-j DNAT --to-destination 127.0.0.1:80
-A OUTPUT -d ! 127.0.0.1 -p tcp -m tcp --dport 80 --tcp-flags SYN SYN -j
QUEUE
COMMIT
or
*nat
:PREROUTING ACCEPT [4:240]
:POSTROUTING ACCEPT [22:1306]
:OUTPUT ACCEPT [18:1066]
-A OUTPUT -d ! 127.0.0.1 -p tcp -m tcp --dport 80 --tcp-flags SYN SYN -j
QUEUE
-A OUTPUT -d ! 127.0.0.1 -p tcp -m tcp --dport 80 ! --tcp-flags SYN SYN
-j DNAT --to-destination 127.0.0.1:80
COMMIT
in all the solution the packets bypass the nat rule..
there is other solution ??
Ulysses Almeida wrote:
>Sorry, I forgot the link http://www.glug.ucdb.br/~ulysses/libipq.html
>
> Regards
>
>On Mon, Jun 28, 2004 at 10:17:21AM +0300, Muhammad R. Sami wrote:
>
>
>>Thanks Henrik for your help, I have 2 questions, first of all I could not
>>find anyway to extract and read packet payload through libipq, I know it has
>>a function to do so but how to use it (any examples??) and secondly is there
>>any implementation of priority queues (multiple FIFOs) at userspace using
>>libipq. If you can help me on these, I would be thankful.
>>Regards,
>>
>>
>>
>>
>>
>
>
>
next prev parent reply other threads:[~2004-06-29 9:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-25 18:11 Userspace queuing Muhammad R. Sami
2004-06-25 20:27 ` Pablo Neira
2004-06-25 23:30 ` Henrik Nordstrom
2004-06-26 8:17 ` Muhammad R. Sami
2004-06-26 13:41 ` Henrik Nordstrom
2004-06-28 7:17 ` Muhammad R. Sami
2004-06-28 9:45 ` Henrik Nordstrom
2004-06-28 16:43 ` Nigel Kukard
2004-06-28 16:45 ` Ulysses Almeida
2004-06-28 17:16 ` Ulysses Almeida
2004-06-29 9:08 ` Fallucchi Antonio [this message]
2004-06-29 9:18 ` Muhammad R. Sami
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=40E131A1.3060409@cisbic.com \
--to=fallucch@cisbic.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.