[p2p-hackers] UDP ports in the dynamic range

David Barrett dbarrett at quinthar.com
Sun Jul 10 01:30:38 UTC 2005


 From range of ports should I randomly pick a UDP port mapping?

The IANA states "The Dynamic and/or Private Ports are those from 49152 
through 65535".  Thus I'm considering just randomly selecting from 
within this range.

However, I'm curious if you have any experience with this and and either 
encourage or dissuade me along this path?  I personally don't care which 
port I use, so long as I don't stumble into some "known" minefield.  Do 
firewalls often block this range?  Do NATs do anything funky with this 
range?  Is there any reason to use one UDP port over another?  Should I 
secretly use on of the registered ranges to improve my NAT/firewall 
penetration odds?

An alternate plan is to choose an unregistered range from the big IANA 
list (http://www.iana.org/assignments/port-numbers) but if there's no 
reason not to, I'd just as soon stick with the big unregistered dynamic 
range.

Any suggestions?

And finally, I'm going to try to configure a UPnP port-mapping using 
this randomly-selected port as my external NAT port.  Does this change 
your recommendations at all?

-david



More information about the P2p-hackers mailing list