From: Steve Horsley <steve.horsley@gmail.com>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: netfilter@vger.kernel.org
Subject: Re: nftables segv while trying to use nat redirection with map
Date: Mon, 2 Nov 2015 23:27:29 +0000 [thread overview]
Message-ID: <5637F161.3090308@gmail.com> (raw)
In-Reply-To: <20151018180053.GA1826@salvia>
Sorry for the delay in answering.
I installed the development version of Ubuntu 16.10 with proposed
updates. With this version, nft -v reports version 0.5. My original set
of commands now works without crashing, so thanks for the advice to try
version 0.5.
However, this set of commands still fails:
# nft flush ruleset
# nft add table nat
# nft add chain nat output { type nat hook output priority 0 \; }
# nft add map nat outnat {type ipv4_addr : ipv4_addr\; }
# nft add element nat outnat { 172.16.1.1 : 8.8.8.8 , 172.16.1.2 : 8.8.4.4 }
# nft add rule ip nat output dnat ip daddr map @outnat
<cmdline>:1:1-48: Error: Could not process rule: Invalid argument
add rule ip nat output dnat ip daddr map @outnat
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It looks as though I have a syntax error in the command, but I can't
find a good example to use as a template. Do I have the syntax wrong, or
is using a separate set like this not possible?
Thanks,
Steve.
next prev parent reply other threads:[~2015-11-02 23:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-18 12:32 nftables segv while trying to use nat redirection with map Steve Horsley
2015-10-18 18:00 ` Pablo Neira Ayuso
2015-11-02 23:27 ` Steve Horsley [this message]
2015-11-03 12:08 ` Pablo Neira Ayuso
2015-11-03 18:24 ` Steve Horsley
2015-11-03 19:39 ` Arturo Borrero Gonzalez
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=5637F161.3090308@gmail.com \
--to=steve.horsley@gmail.com \
--cc=netfilter@vger.kernel.org \
--cc=pablo@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox