When running a commit via Space, SD, etc, or locally on the SRX, the following error message may be seen:
Severity : error
At : [edit security nat source rule-set <rule-set> rule <rule> match]
Message : Too many referenced IPv4 address in rule(1025)
Details : destination-address-name <address name>
It is not possible to do the commit.
Source NAT rules cannot have more than 1024 source or destination address objects.
This is in reference to the number of address objects, and not individual IP addresses. However, it may not be immediately apparent how many address objects are actually part of the rule. Any address-set can reference another address-set. All the address-sets must be broken out until there is a list of all the included address objects. Any number over 1024 will give the error of 1025 because when the process is adding the address objects, as soon as it reaches 1025 it will give the error and stop trying to add more.
In order to resolve this, there are three options.
Note: If option 3 is used, any active session that will be moved to the new NAT rule will be interrupted.