When setting up iptables you can name the port ssh which will use port 22. Is there a list of all the named ports? Specifically I need ssh, http, https and mysql.

link|improve this question

67% accept rate
feedback

3 Answers

up vote 15 down vote accepted

On your installation, the list will be based on the file /etc/services

link|improve this answer
Thanks this definately makes iptables more readable to other admins. – Jason Christa Jun 19 '09 at 22:05
feedback

The list of "Well-Known Ports" is maintained by the Internet Assigned Numbers Authority (IANA). The latest version can be found at http://www.iana.org/assignments/port-numbers.

Note that most Linux distributions include a subset of the list in /etc/services for use in referring to them symbolically. Windows has it in %windir%\system32\drivers\etc\services.

link|improve this answer
2  
Keep in mind that this is not governed, though, and it's not an exhaustive list of what you might find. A developer can pick whatever port they want for the app to talk on. Doesn't mean it's smart, but they can do it... – squillman Jun 19 '09 at 21:56
feedback

ssh tcp/22
http tcp/80
https tcp/443
mysql clustering tcp/1186 and udp/1186
mysql tcp/3306

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.