From: /dev/rob0 <rob0@gmx.co.uk>
To: netfilter@vger.kernel.org
Subject: Re: helper match bug?
Date: Thu, 11 Oct 2012 19:15:47 -0500 [thread overview]
Message-ID: <20121012001547.GY3672@harrier.slackbuilds.org> (raw)
In-Reply-To: <5076D333020000E200012986@tempegwia1.comtechefdata.com>
On Thu, Oct 11, 2012 at 12:09:55PM -0700, Brian Morris wrote:
> It seems the helper match shouldn't succeed if the strings being
> compared aren't the same length.
>
> For example, both of these nat rules match the helper connections
> if I start an FTP session on master port 212 with FTP conntrack
> configured to support both ports:
>
> -A PREROUTING -p tcp -m state --state RELATED -m helper --helper
> "ftp-212"
> -A PREROUTING -p tcp -m state --state RELATED -m helper --helper
> "ftp-2122"
>
> because the strncmp is just using the length of the helper. Is
> this by design?
The nat table only sees -m state --state (or preferred, -m conntrack
--ctstate) NEW packets. You have restricted your rule to match
packets which will never reach that table/chain.
--
http://rob0.nodns4.us/ -- system administration and consulting
Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
prev parent reply other threads:[~2012-10-12 0:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-11 19:09 helper match bug? Brian Morris
2012-10-12 0:15 ` /dev/rob0 [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=20121012001547.GY3672@harrier.slackbuilds.org \
--to=rob0@gmx.co.uk \
--cc=netfilter@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox