Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

3 Answers

up vote 18 down vote accepted

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

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

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.

share|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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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