From: Rennie deGraaf <degraaf@cpsc.ucalgary.ca>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: netfilter queue not on filter table
Date: Wed, 04 Jul 2007 10:15:42 -0600 [thread overview]
Message-ID: <468BC7AE.8060303@cpsc.ucalgary.ca> (raw)
In-Reply-To: <717e7cba0707040500y1bf24073x59d4c6621b25292b@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]
Stanisław Pitucha wrote:
> Great - thanks! That solved the capturing problem. Now I'm using QUEUE
> on both PREROUTING and OUTPUT.
> But now I've got another one:
> I'm rewriting addresses like in standard dnat:
> client <-> gateway (choosing server) <-> servers
>
> Outgoing ones are delivered as they should: (own logging fragment)
> Tried packet: From: 192.168.1.37:32938 to: 192.168.1.111:53
> Redirection! - Sent packet: From: 192.168.1.37:32938 to: 192.168.1.1:53
>
> Incoming packet gets changed:
> Got packet: From: 192.168.1.1:53 to: 192.168.1.37:32938 'n redirected
> Delivered packet: From: 192.168.1.111:53 to: 192.168.1.37:32938
>
> but application doesn't see it. Additionally wireshark sees outgoing
> packet changed, but incoming one original:
> 192.168.1.1:53->192.168.1.37:32938. Is that normal? What can be the
> reason? If I leave source address unchanged, packet arrives to the app
> with real source without problems.
>
> Thanks
Are you getting messages similar to "ip_rt_bug" in dmesg when incoming
packets get redirected? If so, see this thread:
http://lists.netfilter.org/pipermail/netfilter-devel/2007-May/027849.html
As for wireshark, I think that it sees incoming packets before netfilter
does and outgoing packets after netfilter finishes with them. That
would explain the behaviour that you're seeing.
Rennie deGraaf
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-07-04 16:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-03 14:39 netfilter queue not on filter table Stanisław Pitucha
2007-07-03 15:14 ` Stanisław Pitucha
2007-07-03 15:18 ` Stanisław Pitucha
2007-07-04 3:07 ` Yasuyuki KOZAKAI
[not found] ` <200707040308.l643826W014886@toshiba.co.jp>
2007-07-04 12:00 ` Stanisław Pitucha
2007-07-04 16:15 ` Rennie deGraaf [this message]
2007-07-17 15:34 ` Stanisław Pitucha
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=468BC7AE.8060303@cpsc.ucalgary.ca \
--to=degraaf@cpsc.ucalgary.ca \
--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.