Port Number

2015.05.29

VPSやローカル環境のコンピュータ上での設定で必ず必要になるポート設定についての備忘録。

今回はポート設定といっても何番にどんなサービスが割り振られている(使用されている)かというメモ。

 

一般に多く利用される、設定が必要となるポートはほとんどがウエルノウンポート(Well Known Port)と呼ばれる 0 - 1023 番のポート。一般的なほとんどのサービスはIANAで正式に登録されているが、中には非公式だったり、サービスが競合するポートも存在する。

 

さらに1024番以降(49151番まで)のポートをレジスタードポート(Registered Port)呼び、こちらもIANAで正式に登録されたサービスが存在する。

 

49152番ポートから65535番ポートまでのポートはダイナミックポート(Dynamic Port)と呼ばれ、IANAで正式に登録されていないポート番号となる。

 

 

 

代表的なポート番号とサービス

Well Known Port

Registered Port

Dynamic Port

Port#	TCP/UDP		Service Name			Description
   0	TCP/UDP		------					Rserved
   1	TCP/UDP		tcpmux					TCP Port Service Multiplexer
   7	TCP/UDP		echo					Echo
   9	TCP/UDP		discard					Discard
  11	TCP/UDP		systat					Active Users
  13	TCP/UDP		daytime					Daytime
  17	TCP/UDP		qotd					Quote of the Day
  19	TCP/UDP		chargen					Character Generator
  20	TCP/UDP		ftp-data				File Transfer [Default Data]
  21	TCP/UDP		ftp						File Transfer [Control]
  22	TCP/UDP		ssh						The Secure Shell Protocol
  23	TCP/UDP		telnet					Telnet
  25	TCP/UDP		smtp					Simple Mail Transfer
  37	TCP/UDP		time					Time
  42	TCP/UDP		name/nameserver			Host Name Server
  43	TCP/UDP		nicname					Who Is
  53	TCP/UDP		domain					Domain Name Server
  70	TCP/UDP		gopher					Gopher
  79	TCP/UDP		finger					Finger
  80	TCP/UDP		http/www/www-http		World Wide Web HTTP
  88	TCP/UDP		kerberos				Kerberos
 101	TCP/UDP		hostname				NIC Host Name Server
 109	TCP/UDP		pop2					Post Office Protocol - Version 2
 110	TCP/UDP		pop3					Post Office Protocol - Version 3
 113	TCP/UDP		auth					Authentication Service
 115	TCP/UDP		sftp					Simple File Transfer Protocol
 117	TCP/UDP		uucp-path				UUCP Path Service
 119	TCP/UDP		nntp					Network News Transfer Protocol
 123	TCP/UDP		ntp						Network Time Protocol
 143	TCP/UDP		imap					Internet Message Access Protocol
 161	TCP/UDP		snmp					SNMP
 162	TCP/UDP		snmptrap				SNMPTRAP
 177	TCP/UDP		xdmcp					X Display Manager Control Protocol
 179	TCP/UDP		bgp						Border Gateway Protocol
 194	TCP/UDP		irc						Internet Relay Chat Protocol
 220	TCP/UDP		imap3					Interactive Mail Access Protocol v3
 389	TCP/UDP		ldap					Lightweight Directory Access Protocol
 443	TCP/UDP		https					http protocol over TLS/SSL
 445	TCP			microsoft-ds			Microsoft-DS Active-Directory, Windows shares
 445	UDP			microsoft-ds			Microsoft-DS SMB file sharing
 464	TCP/UDP		kpasswd					Kerberos Change/Set password
 465	TCP/UDP		smtps					SMTP over SSL *unofficial
 515	TCP/UDP		printer					Line Printer Daemon [spooler]
 587	TCP/UDP		submission				Message Submission
 636	TCP/UDP		ldaps					ldap protocol over TLS/SSL
 989	TCP/UDP		ftps-data				ftp protocol, data, over TLS/SSL
 990	TCP/UDP		ftps					ftp protocol, control, over TLS/SSL
 992	TCP/UDP		telnets					telnet protocol over TLS/SSL
 993	TCP/UDP		imaps					imap4 protocol over TLS/SSL
 995	TCP/UDP		pop3s					pop3 protocol over TLS/SSL
under construction
under construction