Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Cc: Johannes Ernst <johannes.ernst@gmail.com>,
	Netfilter Users Mailing list <netfilter@vger.kernel.org>
Subject: Re: Masquerading with selectively open ports -- nftables
Date: Thu, 29 Oct 2015 20:55:18 +0100	[thread overview]
Message-ID: <20151029195518.GB1778@salvia> (raw)
In-Reply-To: <CAOkSjBiQ3uGZW9-mUXqGp8xFbfjwHnGd0T=S_1-Qhm0q+cq-cQ@mail.gmail.com>

On Thu, Oct 29, 2015 at 09:11:03AM +0100, Arturo Borrero Gonzalez wrote:
> On 29 October 2015 at 05:51, Johannes Ernst <johannes.ernst@gmail.com> wrote:
> >> On Oct 28, 2015, at 16:15, Pablo Neira Ayuso <pablo@netfilter.org> wrote:
[...]
> >> Moreover, make sure you also compiled masquerading support for nf_tables:
> >>
> >> CONFIG_NFT_MASQ=m
> >
> > Ahh, that might be it. The Arch build script is here [2] and I
> > don’t see anything that looks like CONFIG_NFT_MASQ. I’ll recompile
> > tomorrow and see where that leads us.
> >
> 
> this config option is from the linux kernel, for example:
> 
> % grep CONFIG_NFT_ /boot/config-4.2.0-1-amd64
> CONFIG_NFT_EXTHDR=m
> CONFIG_NFT_META=m
> CONFIG_NFT_CT=m
> CONFIG_NFT_RBTREE=m
> CONFIG_NFT_HASH=m
> CONFIG_NFT_COUNTER=m
> CONFIG_NFT_LOG=m
> CONFIG_NFT_LIMIT=m
> CONFIG_NFT_MASQ=m
> CONFIG_NFT_REDIR=m
> CONFIG_NFT_NAT=m
> CONFIG_NFT_QUEUE=m
> CONFIG_NFT_REJECT=m
> CONFIG_NFT_REJECT_INET=m
> CONFIG_NFT_COMPAT=m
> CONFIG_NFT_CHAIN_ROUTE_IPV4=m
> CONFIG_NFT_REJECT_IPV4=m
> CONFIG_NFT_CHAIN_NAT_IPV4=m
> CONFIG_NFT_MASQ_IPV4=m
> # CONFIG_NFT_REDIR_IPV4 is not set
> CONFIG_NFT_CHAIN_ROUTE_IPV6=m
> CONFIG_NFT_REJECT_IPV6=m
> CONFIG_NFT_CHAIN_NAT_IPV6=m
> CONFIG_NFT_MASQ_IPV6=m
> # CONFIG_NFT_REDIR_IPV6 is not set
> CONFIG_NFT_BRIDGE_META=m
> CONFIG_NFT_BRIDGE_REJECT=m

It would be good to have a sort of "compiling nf_tables kernel
support" on the wiki, in case anyone finds the time to contribute it.
We can use what Eric Leblond wrote time ago on his quick howto and
update it.

[...]
> In nftables tables has no special semantic apart of storing chains.
> Beware of families however, I doubt the inet family can hold NAT
> stuff.

I confirm this: We have no nat table for inet, only filter.

  reply	other threads:[~2015-10-29 19:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28 17:14 Masquerading with selectively open ports -- nftables Johannes Ernst
2015-10-28 23:15 ` Pablo Neira Ayuso
2015-10-29  4:51   ` Johannes Ernst
2015-10-29  8:11     ` Arturo Borrero Gonzalez
2015-10-29 19:55       ` Pablo Neira Ayuso [this message]
2015-10-30 10:50         ` Arturo Borrero Gonzalez
2015-10-30 11:46           ` Pablo Neira Ayuso
2015-10-30 18:25             ` Johannes Ernst
2015-10-30 18:27               ` Arturo Borrero Gonzalez
2015-10-30 18:56                 ` Johannes Ernst
2015-11-02 20:29                   ` Johannes Ernst
2015-10-29 22:21       ` Johannes Ernst
2015-10-29 23:48       ` kernel modules: was " Johannes Ernst
2015-10-30 11:16         ` Pablo Neira Ayuso
2016-03-25 20:37 ` Miroslav Rovis
2016-03-26  5:06 ` Miroslav Rovis

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=20151029195518.GB1778@salvia \
    --to=pablo@netfilter.org \
    --cc=arturo.borrero.glez@gmail.com \
    --cc=johannes.ernst@gmail.com \
    --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