Linux Netfilter discussions
 help / color / mirror / Atom feed
* CGNAT - Deterministic port ranges RFC7422
@ 2017-11-25  4:41 Rafael Ganascim
  2017-12-04 10:25 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Rafael Ganascim @ 2017-11-25  4:41 UTC (permalink / raw)
  To: netfilter

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.


Regards,

Rafael

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CGNAT - Deterministic port ranges RFC7422
  2017-11-25  4:41 CGNAT - Deterministic port ranges RFC7422 Rafael Ganascim
@ 2017-12-04 10:25 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2017-12-04 10:25 UTC (permalink / raw)
  To: Rafael Ganascim; +Cc: netfilter

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-04 10:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-25  4:41 CGNAT - Deterministic port ranges RFC7422 Rafael Ganascim
2017-12-04 10:25 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox