0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

CentOS Stream 8でポートの使用状況/空き状況を確認する手順

Last updated at Posted at 2022-06-18
../

CentOS Stream 8でポートの使用状況/空き状況を確認する手順を調べてみた。nmapがいいみたい。

$ dnf list nmap
nmap.x86_64                       2:7.70-7.el8                        @appstream

$ dnf install nmap

$ nmap 153.xxx.xxx.xxx
$ nmap kankeri.com
Starting Nmap 7.70 ( https://nmap.org ) at 2022-06-18 09:52 JST
Nmap scan report for kankeri.com (153.xxx.xxx.xxx)
Host is up (0.000051s latency).
rDNS record for 153.xxx.xxx.xxx: yyy.yyy.com.localdomain
Not shown: 986 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
80/tcp   open  http
110/tcp  open  pop3
111/tcp  open  rpcbind
143/tcp  open  imap
443/tcp  open  https
587/tcp  open  submission
993/tcp  open  imaps
995/tcp  open  pop3s
3306/tcp open  mysql
5901/tcp open  vnc-1
8080/tcp open  http-proxy
9090/tcp open  zeus-admin
Nmap done:

$ ss -nat
State    Recv-Q  Send-Q   Local Address:Port   Peer Address:Port   Process     
LISTEN   0       128      0.0.0.0:8070         0.0.0.0:*                     
LISTEN   0       100      0.0.0.0:587          0.0.0.0:*                     
...

$ firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: eth0
  sources: 
  services: cockpit dhcpv6-client http imap mysql pop3 smtp smtp-submission vnc-server
  ports: 8080/tcp 8443/tcp 8009/tcp
  protocols: 

CentOSでよく使われるポートの一覧:

20		ftp-data	ファイル転送(データ本体)
21		ftp			ファイル転送(コントロール)
22		ssh			リモートログイン(Secure Shell)
23		telnet		リモートログイン
25		smtp		Simple Mail Transfer Protocol
53		dns			Domain Name System
80		http		Hypertext Transfer Protocol  

110		pop3  		Post Office Protocol
111		rcpbind		Remote Procedure Calls
143		imap   		Internet Message Access Protocol 
443		https		HTTP over SSL/TLS
587		submission 	Message Submission
993		imaps 		IMAP over SSL/TLS
995		pop3s 		POP3 over SSL/TLS
   
1521	Oracle DB
3306 	MySQL 
5432	PostgreSQL
5900   	VNC			Virtual Network Computing 
5901	vnc-1
5902	vnc-2
5903	vnc-3

8005 				Apache Tomcat's Shutdown port
8009 	ajp13		Apache JServ Protocol
8080	http_alt	HTTP alternate(代替HTTPポート)
8443				Apache Tomcat's https
../
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?