Skip to main content
jhouvenaghel_FTNT
Staff
Staff
October 17, 2016

Technical Note: Source NAT port range in SLBC cluster

  • October 17, 2016
  • 0 replies
  • 1491 views
Description
The related KB articles give information about the source NAT port range used by FortiOS. For example, article FD38719 (Source NAT port range for well-known port) and FD34348 (Source NAT port range has been changed on FortiOS firmware versions 4.2.9 and 4.3.2 and later).

In the case of a SLBC cluster, the source NAT port range used by the cluster is different from that which is described in these articles for some original source ports.

Scope
Tests have been done with FortiGate running 5.2.3.

Solution
For the tests and results described below, the SLBC cluster is made of one Forticontroller 5913C (slot 1) and 3 FortiGate 5001D blades (slots 3, 4 and 5).

In the FortiController, the parameter nat-source-port is configured to running-slots.

If the original source port is above 1024 then the source NAT port will be in the range [5117, 65532].

More precisely:

- for slot 3 (ELBC master and configsync master blade) the source NAT port range will be [5117, 25253].
- for slot 4 the source NAT port range will be [25255, 45391].
- for slot 5 the source NAT port range will be [45393, 65532].

So far, this matches what is described in the other articles.

However, when the original source port is less than 1024 then the source NAT port range appears to be in the range [512, 1362], [20820, 21160] or [41127, 41297].

More precisely:

- for slot 3 (ELBC master and configsync master blade) the source NAT port range will be [512, 1022] and [20820, 21160].
- for slot 4 the source NAT port range will be [682, 1192] and [41127, 41297].
- for slot 5 the source NAT port range will be [852, 1362].

There is an exception to what is stated above: in the specific case where the original source port and original destination port are identical (both less than 1024), it was noted that the source NAT port was equal to original source port for a source port equal to 9 or to 123.

Related Articles

Technical Note: Source NAT port range for well-known port

Technical Note: Source NAT port range has been changed on FortiOS firmware versions 4.2.9 and 4.3.2 (and later)

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.