From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Ulrich Weber <ulrich.weber@sophos.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [PATCH] iptables: allow IPv6 port NAT without address NAT
Date: Thu, 3 Jan 2013 01:13:06 +0100 [thread overview]
Message-ID: <20130103001306.GB27394@1984> (raw)
In-Reply-To: <20130102155244.GB5133@uweber-WS>
Hi Ulrich,
On Wed, Jan 02, 2013 at 04:52:44PM +0100, Ulrich Weber wrote:
> correct parsing of IPv6 port NAT without address NAT
> and also print brackets for port only IPv6 NAT.
I think we can go further with some extra sanity checkings, something
like:
parse_to(...)
[...]
start = strchr(arg, '[');
if (start == NULL)
xtables_error(PARAMETER_PROBLEM,
"IPv6 address has to be enclosed in brackets");
That will help users that expect a similar syntax than IPv4 DNAT.
The current error shows misleading error reporting if brackets are
missing:
# ip6tables -D PREROUTING -p tcp -t nat -j DNAT --to :80-110
ip6tables v1.4.17: Bad IP address ":80"
Would you send me a new version of this patch?
Thanks.
next prev parent reply other threads:[~2013-01-03 0:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-02 15:52 [PATCH] iptables: allow IPv6 port NAT without address NAT Ulrich Weber
2013-01-03 0:13 ` Pablo Neira Ayuso [this message]
2013-01-03 10:17 ` Ulrich Weber
2013-01-03 10:39 ` [PATCH v2] " Ulrich Weber
2013-01-04 0:10 ` Pablo Neira Ayuso
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=20130103001306.GB27394@1984 \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=ulrich.weber@sophos.com \
/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;
as well as URLs for NNTP newsgroup(s).