Does it mean that I can have more 50K concurrent connections using a single Hide NAT IP if it is to a different destination?
The same port can be used again, if the connection is to a different destination, or using a different NAT hide IP address, or is a different IP protocol (e.g. TCP and UDP).
A single hide behind a single hide IP will be enough, unless you have more than 50K simultaneous connections to the same destination.
In that case you will need to hide behind a range of hide addresses.
The outbound connections are split among the HIDE range using X mod N.
That means that the same source IP will always get the same hide IP.
So if we have a lot of connections from the same source to the same destination, we will be out of ports, and hiding behind a range will not solve the problem.
For example I have used the command you showed me to check the number of concurrent connections. I get 146232 connections using a single Hide NAT IP. How do I know if it is to the same destination?
Right now, there isn't a good way to do this.
If you suspect this is an issue, we have a way to determine this with an internal script that parses the fwx_alloc table.
You can send the output of fw tab -t fwx_alloc -u during your peak connection time and we can run it for you.
This can be captured from your standby node.
Note that we do plan to expose these HIDE NAT statistics in later releases.