Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to make the ports range from 1024 to 65535 in prod environment [closed]

I knew that on WS2K8R2 the new default start port is 49152, and the default end port is 65535 for both TCP and UDP for both IPV4 and IPV6. I wonder if I can safely expand the dynamic range to: 1025 - 65535. Is it safe if I do so. If it's not safe, any concerns?

Thanks!

like image 814
purestoneguy Avatar asked Nov 29 '12 08:11

purestoneguy


2 Answers

Anything in range of 49152-65535 is unreservable port numbers in IANA, so these numbers are generally safe. So using this safe range means it is less likely to collide with any running apps and thus, reduce the time to find a good port number.

http://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers#Dynamic.2C_private_or_ephemeral_ports

like image 93
Compulim Avatar answered Dec 15 '22 19:12

Compulim


No. You need to take a good look at RFC 1700 and its current successor at IANA. All the ports mentioned in those documents are reserved for the applications specified and should not normally be used by other applications.

like image 32
user207421 Avatar answered Dec 15 '22 19:12

user207421