Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 19 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

The list of "Well-Known Ports" is maintained by the Internet Assigned Numbers Authority (IANA). The latest version can be found at

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
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

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

share|improve this answer

Your Answer


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.