7857
BEST CURRENT PRACTICE
Updates to Network Address Translation (NAT) Behavioral Requirements
Authors: R. Penno, S. Perreault, M. Boucadair, S. Sivakumar, K. Naito
Date: April 2016
Area: wit
Working Group: tsvwg
Stream: IETF
Updates:
RFC 4787
Abstract
This document clarifies and updates several requirements of RFCs 4787, 5382, and 5508 based on operational and development experience. The focus of this document is Network Address Translation from IPv4 to IPv4 (NAT44).
This document updates RFCs 4787, 5382, and 5508.
RFC 7857
BEST CURRENT PRACTICE
Internet Engineering Task Force (IETF) R. Penno
Request for Comments: 7857 Cisco
BCP: 127 S. Perreault
Updates: <a href="./rfc4787">4787</a>, <a href="./rfc5382">5382</a>, <a href="./rfc5508">5508</a> Jive Communications
Category: Best Current Practice M. Boucadair, Ed.
ISSN: 2070-1721 Orange
S. Sivakumar
Cisco
K. Naito
NTT
April 2016
<span class="h1">Updates to Network Address Translation (NAT) Behavioral Requirements</span>
Abstract
This document clarifies and updates several requirements of RFCs
4787, 5382, and 5508 based on operational and development experience.
The focus of this document is Network Address Translation from IPv4
to IPv4 (NAT44).
This document updates RFCs 4787, 5382, and 5508.
Status of This Memo
This memo documents an Internet Best Current Practice.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
BCPs is available in <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="https://www.rfc-editor.org/info/rfc7857">http://www.rfc-editor.org/info/rfc7857</a>.
<span class="grey">Penno, et al. Best Current Practice [Page 1]</span>
<span id="page-2" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
Copyright Notice
Copyright (c) 2016 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
This document may contain material from IETF Documents or IETF
Contributions published or made publicly available before November
10, 2008. The person(s) controlling the copyright in some of this
material may not have granted the IETF Trust the right to allow
modifications of such material outside the IETF Standards Process.
Without obtaining an adequate license from the person(s) controlling
the copyright in such materials, this document may not be modified
outside the IETF Standards Process, and derivative works of it may
not be created outside the IETF Standards Process, except to format
it for publication as an RFC or to translate it into languages other
than English.
<span class="grey">Penno, et al. Best Current Practice [Page 2]</span>
<span id="page-3" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
Table of Contents
<a href="#section-1">1</a>. Introduction . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-1.1">1.1</a>. Scope . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-3">3</a>
<a href="#section-1.2">1.2</a>. Terminology . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-2">2</a>. TCP Session Tracking . . . . . . . . . . . . . . . . . . . . <a href="#page-4">4</a>
<a href="#section-2.1">2.1</a>. TCP Transitory Connection Idle-Timeout . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-2.2">2.2</a>. TCP RST . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-3">3</a>. Port Overlapping Behavior . . . . . . . . . . . . . . . . . . <a href="#page-6">6</a>
<a href="#section-4">4</a>. Address Pooling Paired (APP) . . . . . . . . . . . . . . . . <a href="#page-7">7</a>
<a href="#section-5">5</a>. Endpoint-Independent Mapping (EIM) Protocol Independence . . <a href="#page-8">8</a>
6. Endpoint-Independent Filtering (EIF) Protocol Independence . 8
<a href="#section-7">7</a>. Endpoint-Independent Filtering (EIF) Mapping Refresh . . . . <a href="#page-8">8</a>
<a href="#section-7.1">7.1</a>. Outbound Mapping Refresh and Error Packets . . . . . . . <a href="#page-9">9</a>
<a href="#section-8">8</a>. Port Parity . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-9">9</a>. Port Randomization . . . . . . . . . . . . . . . . . . . . . <a href="#page-9">9</a>
<a href="#section-10">10</a>. IP Identification (IP ID) . . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-11">11</a>. ICMP Query Mappings Timeout . . . . . . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-12">12</a>. Hairpinning Support for ICMP Packets . . . . . . . . . . . . <a href="#page-10">10</a>
<a href="#section-13">13</a>. Security Considerations . . . . . . . . . . . . . . . . . . . <a href="#page-11">11</a>
<a href="#section-14">14</a>. References . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-14.1">14.1</a>. Normative References . . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
<a href="#section-14.2">14.2</a>. Informative References . . . . . . . . . . . . . . . . . <a href="#page-12">12</a>
Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-13">13</a>
Contributors . . . . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . <a href="#page-14">14</a>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
[<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>], [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>], and [<a href="./rfc5508" title=""NAT Behavioral Requirements for ICMP"">RFC5508</a>] contributed to enhance Network
Address Translation (NAT) interoperability and conformance.
Operational experience gained through widespread deployment and
evolution of NAT indicates that some areas of the original documents
need further clarification or updates. This document provides such
clarifications and updates.
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Scope</span>
The goal of this document is to clarify and update the set of
requirements listed in [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>], [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>], and [<a href="./rfc5508" title=""NAT Behavioral Requirements for ICMP"">RFC5508</a>]. The
document focuses exclusively on NAT44.
The scope of this document has been set so that it does not create
new requirements beyond those specified in the documents cited above.
Requirements related to Carrier-Grade NAT (CGN) are defined in
[<a href="./rfc6888" title=""Common Requirements for Carrier-Grade NATs (CGNs)"">RFC6888</a>].
<span class="grey">Penno, et al. Best Current Practice [Page 3]</span>
<span id="page-4" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Terminology</span>
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
The reader is assumed to be familiar with the terminology defined in
[<a href="./rfc2663" title=""IP Network Address Translator (NAT) Terminology and Considerations"">RFC2663</a>], [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>], [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>], and [<a href="./rfc5508" title=""NAT Behavioral Requirements for ICMP"">RFC5508</a>].
In this document, the term "NAT" refers to both "Basic NAT" and
"Network Address/Port Translator (NAPT)" (see <a href="./rfc4787#section-3">Section 3 of
[RFC4787]</a>). As a reminder, Basic NAT and NAPT are two variations of
traditional NAT in that translation in Basic NAT is limited to IP
addresses alone, whereas translation in NAPT is extended to include
IP addresses and transport identifiers (such as a TCP/UDP port or
ICMP query ID); refer to <a href="./rfc3022#section-2">Section 2 of [RFC3022]</a>.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. TCP Session Tracking</span>
[<a id="ref-RFC5382">RFC5382</a>] specifies TCP timers associated with various connection
states but does not specify the TCP state machine a NAT44 should
follow as a basis to apply such timers.
Update: The TCP state machine depicted in Figure 1, adapted from
[<a href="./rfc6146" title=""Stateful NAT64: Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers"">RFC6146</a>], SHOULD be implemented by a NAT for TCP session tracking
purposes.
<span class="grey">Penno, et al. Best Current Practice [Page 4]</span>
<span id="page-5" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
+----------------------------+
| |
V |
+------+ Client |
|CLOSED|-----SYN------+ |
+------+ | |
^ | |
|TCP_TRANS T.O. | |
| V |
+-------+ +-------+ |
| TRANS | | INIT | |
+-------+ +-------+ |
| ^ | |
data pkt | | |
| Server/Client RST | |
| TCP_EST T.O. | |
V | Server SYN |
+--------------+ | |
| ESTABLISHED |<---------+ |
+--------------+ |
| | |
Client FIN Server FIN |
| | |
V V |
+---------+ +----------+ |
| C FIN | | S FIN | |
| RCV | | RCV | |
+---------+ +----------+ |
| | |
Server FIN Client FIN TCP_TRANS
| | T.O.
V V |
+----------------------+ |
| C FIN + S FIN RCV |-----------------+
+----------------------+
Legend:
* Messages sent or received from the server are
prefixed with "Server".
* Messages sent or received from the client are
prefixed with "Client".
* "C" means "Client-side".
* "S" means "Server-side".
* TCP_EST T.O. refers to the established connection
idle-timeout as defined in [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>].
* TCP_TRANS T.O. refers to the transitory connection
idle-timeout as defined in [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>].
Figure 1: Simplified Version of the TCP State Machine
<span class="grey">Penno, et al. Best Current Practice [Page 5]</span>
<span id="page-6" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. TCP Transitory Connection Idle-Timeout</span>
The transitory connection idle-timeout is defined as the minimum time
a TCP connection in the partially open or closing phases must remain
idle before the NAT considers the associated session a candidate for
removal (REQ-5 of [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>]). However, [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>] does not clearly
state whether these can be configured separately.
Clarification: This document clarifies that a NAT SHOULD provide
different configurable parameters for configuring the open and
closing idle timeouts.
To accommodate deployments that consider a partially open timeout
of 4 minutes as being excessive from a security standpoint, a NAT
MAY allow the configured timeout to be less than 4 minutes.
However, a minimum default transitory connection idle-timeout of 4
minutes is RECOMMENDED.
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. TCP RST</span>
[<a id="ref-RFC5382">RFC5382</a>] leaves the handling of TCP RST packets unspecified.
Update: This document adopts a similar default behavior as in
[<a href="./rfc6146" title=""Stateful NAT64: Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers"">RFC6146</a>]. Concretely, when the NAT receives a TCP RST matching
an existing mapping, it MUST translate the packet according to the
NAT mapping entry. Moreover, the NAT SHOULD wait for 4 minutes
before deleting the session and removing any state associated with
it if no packets are received during that 4-minute timeout.
Notes:
* Admittedly, the NAT has to verify whether received TCP RST
packets belong to a connection. This verification check is
required to avoid off-path attacks.
* If the NAT immediately removes the NAT mapping upon receipt of
a TCP RST message, stale connections may be maintained by
endpoints if the first RST message is lost between the NAT and
the recipient.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Port Overlapping Behavior</span>
REQ-1 from [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>] and REQ-1 from [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>] specify a specific port
overlapping behavior; that is, the external IP address and port can
be reused for connections originating from the same internal source
IP address and port irrespective of the destination. This is known
as Endpoint-Independent Mapping (EIM).
<span class="grey">Penno, et al. Best Current Practice [Page 6]</span>
<span id="page-7" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
Update: This document clarifies that this port overlapping behavior
may be extended to connections originating from different internal
source IP addresses and ports as long as their destinations are
different.
The following mechanism MAY be implemented by a NAT:
If destination addresses and ports are different for outgoing
connections started by local clients, a NAT MAY assign the same
external port as the source ports for the connections. The
port overlapping mechanism manages mappings between external
packets and internal packets by looking at and storing their
5-tuple (protocol, source address, source port, destination
address, and destination port).
This enables concurrent use of a single NAT external port for
multiple transport sessions, which allows a NAT to successfully
process packets in a network that has a limited number of IP
addresses (e.g., deployment with a high address space
multiplicative factor (refer to <a href="./rfc6269#appendix-B">Appendix B of [RFC6269]</a>)).
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Address Pooling Paired (APP)</span>
The "IP address pooling" behavior of "Paired" (APP) was recommended
in REQ-2 from [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>], but the behavior when an external IPv4 runs
out of ports was left undefined.
Clarification: This document clarifies that if APP is enabled, new
sessions from a host that already has a mapping associated with an
external IP that ran out of ports SHOULD be dropped. A
configuration parameter MAY be provided to allow a NAT to start
using ports from another external IP address when the one that
anchored the APP mapping ran out of ports. Tweaking this
configuration parameter is a trade-off between service continuity
and APP strict enforcement. Note, this behavior is sometimes
referred to as "soft-APP".
As a reminder, the recommendation for the particular case of a CGN
is that an implementation must use the same external IP address
mapping for all sessions associated with the same internal IP
address, be they TCP, UDP, ICMP, something else, or a mix of
different protocols [<a href="./rfc6888" title=""Common Requirements for Carrier-Grade NATs (CGNs)"">RFC6888</a>].
Update: This behavior SHOULD apply also for TCP.
<span class="grey">Penno, et al. Best Current Practice [Page 7]</span>
<span id="page-8" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Endpoint-Independent Mapping (EIM) Protocol Independence</span>
REQ-1 from [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>] and REQ-1 from [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>] do not specify whether
EIM are protocol dependent or protocol independent. For example, if
an outbound TCP SYN creates a mapping, it is left undefined whether
outbound UDP packets can reuse such mapping.
Update: EIM mappings SHOULD be protocol dependent. A configuration
parameter MAY be provided to allow protocols that multiplex TCP
and UDP over the same source IP address and port number to use a
single mapping. The default value of this configuration parameter
MUST be protocol-dependent EIM.
This update is consistent with the stateful Network Address and
Protocol Translation from IPv6 Clients to IPv4 Servers (NAT64)
[<a href="./rfc6146" title=""Stateful NAT64: Network Address and Protocol Translation from IPv6 Clients to IPv4 Servers"">RFC6146</a>] that clearly specifies three binding information bases
(TCP, UDP, and ICMP).
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Endpoint-Independent Filtering (EIF) Protocol Independence</span>
REQ-8 from [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>] and REQ-3 from [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>] do not specify whether
mappings with Endpoint-Independent Filtering (EIF) are protocol
independent or protocol dependent. For example, if an outbound TCP
SYN creates a mapping, it is left undefined whether inbound UDP
packets matching that mapping should be accepted or rejected.
Update: EIF filtering SHOULD be protocol dependent. A configuration
parameter MAY be provided to make it protocol independent. The
default value of this configuration parameter MUST be protocol-
dependent EIF.
This behavior is aligned with the update in <a href="#section-5">Section 5</a>.
Applications that can be transported over a variety of transport
protocols and/or support transport fallback schemes won't
experience connectivity failures if the NAT is configured with
protocol-independent EIM and protocol-independent EIF.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Endpoint-Independent Filtering (EIF) Mapping Refresh</span>
The NAT mapping Refresh direction may have a "NAT Inbound refresh
behavior" of "True" according to REQ-6 from [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>], but [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>]
does not clarify how this behavior applies to EIF mappings. The
issue in question is whether inbound packets that match an EIF
mapping but do not create a new session due to a security policy
should refresh the mapping timer.
<span class="grey">Penno, et al. Best Current Practice [Page 8]</span>
<span id="page-9" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
Clarification: This document clarifies that even when a NAT has an
inbound refresh behavior set to "TRUE", such packets SHOULD NOT
refresh the mapping. Otherwise, a simple attack of a packet every
two minutes can keep the mapping indefinitely.
Update: This behavior SHOULD apply also for TCP.
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Outbound Mapping Refresh and Error Packets</span>
Update: In the case of NAT outbound refresh behavior, ICMP Errors or
TCP RST outbound packets sent as a response to inbound packets
SHOULD NOT refresh the mapping. Other packets that indicate the
host is not interested in receiving packets MAY be configurable to
also not refresh state, such as a Session Traversal Utilities for
NAT (STUN) error response [<a href="./rfc5389" title=""Session Traversal Utilities for NAT (STUN)"">RFC5389</a>] or IKE INVALID_SYNTAX
[<a href="./rfc7296" title=""Internet Key Exchange Protocol Version 2 (IKEv2)"">RFC7296</a>].
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Port Parity</span>
Update: A NAT MAY disable port parity preservation for all dynamic
mappings. Nevertheless, A NAT SHOULD support means to explicitly
request to preserve port parity (e.g., [<a href="./rfc7753" title=""Port Control Protocol (PCP) Extension for Port-Set Allocation"">RFC7753</a>]).
Note: According to [<a href="./rfc6887" title=""Port Control Protocol (PCP)"">RFC6887</a>], dynamic mappings are said to be
dynamic in the sense that they are created on demand, either
implicitly or explicitly:
1. Implicit dynamic mappings refer to mappings that are created
as a side effect of traffic such as an outgoing TCP SYN or
outgoing UDP packet. Implicit dynamic mappings usually have a
finite lifetime, though this lifetime is generally not known
to the client using them.
2. Explicit dynamic mappings refer to mappings that are created
as a result, for example, of explicit Port Control Protocol
(PCP) MAP and PEER requests. Explicit dynamic mappings have a
finite lifetime, and this lifetime is communicated to the
client.
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Port Randomization</span>
Update: A NAT SHOULD follow the recommendations specified in
<a href="./rfc6056#section-4">Section 4 of [RFC6056]</a>, especially:
A NAPT that does not implement port preservation [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>]
[<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>] SHOULD obfuscate selection of the ephemeral port of a
packet when it is changed during translation of that packet.
<span class="grey">Penno, et al. Best Current Practice [Page 9]</span>
<span id="page-10" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
A NAPT that does implement port preservation SHOULD obfuscate
the ephemeral port of a packet only if the port must be changed
as a result of the port being already in use for some other
session.
A NAPT that performs parity preservation and that must change
the ephemeral port during translation of a packet SHOULD
obfuscate the ephemeral ports. The algorithms described in
this document could be easily adapted such that the parity is
preserved (i.e., force the lowest order bit of the resulting
port number to 0 or 1 according to whether even or odd parity
is desired).
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. IP Identification (IP ID)</span>
Update: A NAT SHOULD handle the Identification field of translated
IPv4 packets as specified in <a href="./rfc6864#section-5.3.1">Section 5.3.1 of [RFC6864]</a>.
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. ICMP Query Mappings Timeout</span>
<a href="./rfc5508#section-3.1">Section 3.1 of [RFC5508]</a> specifies that ICMP Query mappings are to be
maintained by a NAT. However, the specification doesn't discuss
Query mapping timeout values. <a href="./rfc5508#section-3.2">Section 3.2 of [RFC5508]</a> only
discusses ICMP Query session timeouts.
Update: ICMP Query mappings MAY be deleted once the last session
using the mapping is deleted.
<span class="h2"><a class="selflink" id="section-12" href="#section-12">12</a>. Hairpinning Support for ICMP Packets</span>
REQ-7 from [<a href="./rfc5508" title=""NAT Behavioral Requirements for ICMP"">RFC5508</a>] specifies that a NAT enforcing Basic NAT must
support traversal of hairpinned ICMP Query sessions.
Clarification: This implicitly means that address mappings from
external address to internal address (similar to Endpoint-
Independent Filters) must be maintained to allow inbound ICMP
Query sessions. If an ICMP Query is received on an external
address, a NAT can then translate to an internal IP.
REQ-7 from [<a href="./rfc5508" title=""NAT Behavioral Requirements for ICMP"">RFC5508</a>] specifies that all NATs must support the
traversal of hairpinned ICMP Error messages.
Clarification: This behavior requires a NAT to maintain address
mappings from external IP address to internal IP address in
addition to the ICMP Query mappings described in <a href="./rfc5508#section-3.1">Section 3.1 of
[RFC5508]</a>.
<span class="grey">Penno, et al. Best Current Practice [Page 10]</span>
<span id="page-11" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
<span class="h2"><a class="selflink" id="section-13" href="#section-13">13</a>. Security Considerations</span>
NAT behavioral considerations are discussed in [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>], [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>],
and [<a href="./rfc5508" title=""NAT Behavioral Requirements for ICMP"">RFC5508</a>].
Because some of the clarifications and updates (e.g., <a href="#section-2">Section 2</a>) are
inspired from NAT64, the security considerations discussed in
<a href="./rfc6146#section-5">Section 5 of [RFC6146]</a> apply also for this specification.
The update in <a href="#section-3">Section 3</a> allows for an optimized NAT resource usage.
In order to avoid service disruption, the NAT must not invoke this
functionality unless the packets are to be sent to distinct
destination addresses.
Some of the updates (e.g., Sections <a href="#section-7">7</a>, <a href="#section-9">9</a>, and <a href="#section-11">11</a>) allow for increased
security compared to [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>], [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>], and [<a href="./rfc5508" title=""NAT Behavioral Requirements for ICMP"">RFC5508</a>].
Particularly,
o the updates in Sections <a href="#section-7">7</a> and <a href="#section-11">11</a> prevent an illegitimate node to
maintain mappings activated in the NAT while these mappings should
be cleared, and
o port randomization (<a href="#section-9">Section 9</a>) complicates tracking hosts located
behind a NAT.
Sections <a href="#section-4">4</a> and <a href="#section-12">12</a> propose updates that increase the serviceability of
a host located behind a NAT. These updates do not introduce any
additional security concerns to [<a href="./rfc4787" title=""Network Address Translation (NAT) Behavioral Requirements for Unicast UDP"">RFC4787</a>], [<a href="./rfc5382" title=""NAT Behavioral Requirements for TCP"">RFC5382</a>], and [<a href="./rfc5508" title=""NAT Behavioral Requirements for ICMP"">RFC5508</a>].
The updates in Sections <a href="#section-5">5</a> and <a href="#section-6">6</a> allow for a better NAT transparency
from an application standpoint. Hosts that require a restricted
filtering behavior should enable specific policies (e.g., Access
Control List (ACL)) either locally or by soliciting a dedicated
security device (e.g., firewall). How a host updates its filtering
policies is out of scope of this document.
The update in <a href="#section-8">Section 8</a> induces security concerns that are specific
to the protocol used to interact with the NAT. For example, if PCP
is used to explicitly request parity preservation for a given
mapping, the security considerations discussed in [<a href="./rfc6887" title=""Port Control Protocol (PCP)"">RFC6887</a>] should be
taken into account.
The update in <a href="#section-10">Section 10</a> may have undesired effects on the
performance of the NAT in environments in which fragmentation is
massively experienced. Such an issue may be used as an attack vector
against NATs.
<span class="grey">Penno, et al. Best Current Practice [Page 11]</span>
<span id="page-12" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
<span class="h2"><a class="selflink" id="section-14" href="#section-14">14</a>. References</span>
<span class="h3"><a class="selflink" id="section-14.1" href="#section-14.1">14.1</a>. Normative References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>,
DOI 10.17487/RFC2119, March 1997,
<<a href="https://www.rfc-editor.org/info/rfc2119">http://www.rfc-editor.org/info/rfc2119</a>>.
[<a id="ref-RFC4787">RFC4787</a>] Audet, F., Ed. and C. Jennings, "Network Address
Translation (NAT) Behavioral Requirements for Unicast
UDP", <a href="https://www.rfc-editor.org/bcp/bcp127">BCP 127</a>, <a href="./rfc4787">RFC 4787</a>, DOI 10.17487/RFC4787, January
2007, <<a href="https://www.rfc-editor.org/info/rfc4787">http://www.rfc-editor.org/info/rfc4787</a>>.
[<a id="ref-RFC5382">RFC5382</a>] Guha, S., Ed., Biswas, K., Ford, B., Sivakumar, S., and P.
Srisuresh, "NAT Behavioral Requirements for TCP", <a href="https://www.rfc-editor.org/bcp/bcp142">BCP 142</a>,
<a href="./rfc5382">RFC 5382</a>, DOI 10.17487/RFC5382, October 2008,
<<a href="https://www.rfc-editor.org/info/rfc5382">http://www.rfc-editor.org/info/rfc5382</a>>.
[<a id="ref-RFC5508">RFC5508</a>] Srisuresh, P., Ford, B., Sivakumar, S., and S. Guha, "NAT
Behavioral Requirements for ICMP", <a href="https://www.rfc-editor.org/bcp/bcp148">BCP 148</a>, <a href="./rfc5508">RFC 5508</a>,
DOI 10.17487/RFC5508, April 2009,
<<a href="https://www.rfc-editor.org/info/rfc5508">http://www.rfc-editor.org/info/rfc5508</a>>.
[<a id="ref-RFC6056">RFC6056</a>] Larsen, M. and F. Gont, "Recommendations for Transport-
Protocol Port Randomization", <a href="https://www.rfc-editor.org/bcp/bcp156">BCP 156</a>, <a href="./rfc6056">RFC 6056</a>,
DOI 10.17487/RFC6056, January 2011,
<<a href="https://www.rfc-editor.org/info/rfc6056">http://www.rfc-editor.org/info/rfc6056</a>>.
[<a id="ref-RFC6146">RFC6146</a>] Bagnulo, M., Matthews, P., and I. van Beijnum, "Stateful
NAT64: Network Address and Protocol Translation from IPv6
Clients to IPv4 Servers", <a href="./rfc6146">RFC 6146</a>, DOI 10.17487/RFC6146,
April 2011, <<a href="https://www.rfc-editor.org/info/rfc6146">http://www.rfc-editor.org/info/rfc6146</a>>.
[<a id="ref-RFC6864">RFC6864</a>] Touch, J., "Updated Specification of the IPv4 ID Field",
<a href="./rfc6864">RFC 6864</a>, DOI 10.17487/RFC6864, February 2013,
<<a href="https://www.rfc-editor.org/info/rfc6864">http://www.rfc-editor.org/info/rfc6864</a>>.
<span class="h3"><a class="selflink" id="section-14.2" href="#section-14.2">14.2</a>. Informative References</span>
[<a id="ref-RFC2663">RFC2663</a>] Srisuresh, P. and M. Holdrege, "IP Network Address
Translator (NAT) Terminology and Considerations",
<a href="./rfc2663">RFC 2663</a>, DOI 10.17487/RFC2663, August 1999,
<<a href="https://www.rfc-editor.org/info/rfc2663">http://www.rfc-editor.org/info/rfc2663</a>>.
<span class="grey">Penno, et al. Best Current Practice [Page 12]</span>
<span id="page-13" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
[<a id="ref-RFC3022">RFC3022</a>] Srisuresh, P. and K. Egevang, "Traditional IP Network
Address Translator (Traditional NAT)", <a href="./rfc3022">RFC 3022</a>,
DOI 10.17487/RFC3022, January 2001,
<<a href="https://www.rfc-editor.org/info/rfc3022">http://www.rfc-editor.org/info/rfc3022</a>>.
[<a id="ref-RFC5389">RFC5389</a>] Rosenberg, J., Mahy, R., Matthews, P., and D. Wing,
"Session Traversal Utilities for NAT (STUN)", <a href="./rfc5389">RFC 5389</a>,
DOI 10.17487/RFC5389, October 2008,
<<a href="https://www.rfc-editor.org/info/rfc5389">http://www.rfc-editor.org/info/rfc5389</a>>.
[<a id="ref-RFC6269">RFC6269</a>] Ford, M., Ed., Boucadair, M., Durand, A., Levis, P., and
P. Roberts, "Issues with IP Address Sharing", <a href="./rfc6269">RFC 6269</a>,
DOI 10.17487/RFC6269, June 2011,
<<a href="https://www.rfc-editor.org/info/rfc6269">http://www.rfc-editor.org/info/rfc6269</a>>.
[<a id="ref-RFC6887">RFC6887</a>] Wing, D., Ed., Cheshire, S., Boucadair, M., Penno, R., and
P. Selkirk, "Port Control Protocol (PCP)", <a href="./rfc6887">RFC 6887</a>,
DOI 10.17487/RFC6887, April 2013,
<<a href="https://www.rfc-editor.org/info/rfc6887">http://www.rfc-editor.org/info/rfc6887</a>>.
[<a id="ref-RFC6888">RFC6888</a>] Perreault, S., Ed., Yamagata, I., Miyakawa, S., Nakagawa,
A., and H. Ashida, "Common Requirements for Carrier-Grade
NATs (CGNs)", <a href="https://www.rfc-editor.org/bcp/bcp127">BCP 127</a>, <a href="./rfc6888">RFC 6888</a>, DOI 10.17487/RFC6888,
April 2013, <<a href="https://www.rfc-editor.org/info/rfc6888">http://www.rfc-editor.org/info/rfc6888</a>>.
[<a id="ref-RFC7296">RFC7296</a>] Kaufman, C., Hoffman, P., Nir, Y., Eronen, P., and T.
Kivinen, "Internet Key Exchange Protocol Version 2
(IKEv2)", STD 79, <a href="./rfc7296">RFC 7296</a>, DOI 10.17487/RFC7296, October
2014, <<a href="https://www.rfc-editor.org/info/rfc7296">http://www.rfc-editor.org/info/rfc7296</a>>.
[<a id="ref-RFC7753">RFC7753</a>] Sun, Q., Boucadair, M., Sivakumar, S., Zhou, C., Tsou, T.,
and S. Perreault, "Port Control Protocol (PCP) Extension
for Port-Set Allocation", <a href="./rfc7753">RFC 7753</a>, DOI 10.17487/RFC7753,
February 2016, <<a href="https://www.rfc-editor.org/info/rfc7753">http://www.rfc-editor.org/info/rfc7753</a>>.
Acknowledgements
Thanks to Dan Wing, Suresh Kumar, Mayuresh Bakshi, Rajesh Mohan, Lars
Eggert, Gorry Fairhurst, Brandon Williams, and David Black for their
review and discussion.
Many thanks to Ben Laurie for the SecDir review and Dan Romascanu for
the Gen-ART review.
Dan Wing proposed some text for the configurable errors in
<a href="#section-7.1">Section 7.1</a>.
<span class="grey">Penno, et al. Best Current Practice [Page 13]</span>
<span id="page-14" ></span>
<span class="grey"><a href="./rfc7857">RFC 7857</a> Updates to NAT Behavioral Requirements April 2016</span>
Contributors
The following individual contributed text to the document:
Sarat Kamiset
Insieme Networks
United States
Authors' Addresses
Reinaldo Penno
Cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134
United States
Email: [email protected]
Simon Perreault
Jive Communications
Canada
Email: [email protected]
Mohamed Boucadair (editor)
Orange
Rennes 35000
France
Email: [email protected]
Senthil Sivakumar
Cisco Systems, Inc.
United States
Email: [email protected]
Kengo Naito
NTT
Tokyo
Japan
Email: [email protected]
Penno, et al. Best Current Practice [Page 14]
Annotations
Select text to annotate