From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Rafael Ganascim <rganascim@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: CGNAT - Deterministic port ranges RFC7422
Date: Mon, 4 Dec 2017 11:25:22 +0100 [thread overview]
Message-ID: <20171204102522.GA15112@salvia> (raw)
In-Reply-To: <CAD4ZOMw-r1iPt4KHL-oN4CGx7FuAZS8dNQz4srqbuJLWrigT7Q@mail.gmail.com>
Hi,
On Sat, Nov 25, 2017 at 02:41:50AM -0200, Rafael Ganascim wrote:
> Hello guys,
>
> Do you know if its possible to create in few rules the RFC7422
> deterministic port ranges with netfilter?
>
> I'm using with iptables generating a lot of rules, one for each
> internal ipv4 address/port range/protocol (minimum 3 for each private
> ip address).
>
> I'm looking in DNETMAP implementation, but I don't know if it can be
> configured to be deterministic based on the source-ip/port.
I guess your goal is to map a range of source ports to an IP address,
so from outside you can identify what traffic belongs to what IP
address behind the NATs.
I made a quick hack long long time ago for a friend of mine that
needed this, I'm not finding the patchset here, that happened probably
more than 10 years ago.
But I remember this just needs a very small change to the code.
Probably adding a new revision any of the existing NAT targets should
be fine.
So just to clarify, I think this should be easy to support.
prev parent reply other threads:[~2017-12-04 10:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-25 4:41 CGNAT - Deterministic port ranges RFC7422 Rafael Ganascim
2017-12-04 10:25 ` Pablo Neira Ayuso [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=20171204102522.GA15112@salvia \
--to=pablo@netfilter.org \
--cc=netfilter@vger.kernel.org \
--cc=rganascim@gmail.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