Cara Melihat Port yang Terbuka Di Linux

Untuk melihat port yang terbuka di Linux kita bisa menggunakan perintah lsof -i. Sebagai contoh :

[root@kiara ~]# lsof -i
COMMAND   PID      USER   FD   TYPE DEVICE SIZE NODE NAME
portmap  2438       rpc    3u  IPv4   6376       UDP *:sunrpc
portmap  2438       rpc    4u  IPv4   6377       TCP *:sunrpc (LISTEN)
snmpd    2710      root    8u  IPv4   8441       TCP kiara.kurungsiku.com:smux (LISTEN)
snmpd    2710      root    9u  IPv4   8442       UDP *:snmp
sshd     2728      root    4u  IPv4   8234       TCP 192.168.19.4:ssh (LISTEN)
ntpd     2749       ntp   16u  IPv4   8269       UDP *:ntp
ntpd     2749       ntp   17u  IPv6   8328       UDP *:ntp
ntpd     2749       ntp   18u  IPv6   8368       UDP [fe80::20d:60ff:fe17:1943]:ntp
ntpd     2749       ntp   19u  IPv6   8379       UDP localhost6.localdomain6:ntp
ntpd     2749       ntp   20u  IPv6   8380       UDP [fe80::214:78ff:fe03:47fa]:ntp
ntpd     2749       ntp   21u  IPv4   8381       UDP kiara.kurungsiku.com:ntp
ntpd     2749       ntp   22u  IPv4   8382       UDP 192.168.19.4:ntp
mysqld   2834     mysql   10u  IPv4   8431       TCP *:mysql (LISTEN)
httpd    2882      root    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    2882      root    6u  IPv6   8510       TCP *:https (LISTEN)
squid    2915     squid    6u  IPv4   8627       UDP *:59675
squid    2915     squid   13u  IPv4   8676       TCP 192.168.19.4:squid (LISTEN)
squid    2915     squid   14u  IPv4   8677       TCP kiara.kurungsiku.com:squid (LISTEN)
squid    2915     squid   15u  IPv4   8678       UDP *:icpv2
dnsmasq  2970   dnsmasq    4u  IPv4   8810       UDP *:domain
dnsmasq  2970   dnsmasq    5u  IPv4   8811       TCP *:domain (LISTEN)
dnsmasq  2970   dnsmasq    6u  IPv6   8812       UDP *:domain
dnsmasq  2970   dnsmasq    7u  IPv6   8813       TCP *:domain (LISTEN)
httpd    3678    apache    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    3678    apache    6u  IPv6   8510       TCP *:https (LISTEN)
httpd    3679    apache    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    3679    apache    6u  IPv6   8510       TCP *:https (LISTEN)
httpd    3680    apache    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    3680    apache    6u  IPv6   8510       TCP *:https (LISTEN)
httpd    3681    apache    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    3681    apache    6u  IPv6   8510       TCP *:https (LISTEN)
httpd    3682    apache    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    3682    apache    6u  IPv6   8510       TCP *:https (LISTEN)
httpd    3683    apache    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    3683    apache    6u  IPv6   8510       TCP *:https (LISTEN)
httpd    3684    apache    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    3684    apache    6u  IPv6   8510       TCP *:https (LISTEN)
httpd    3685    apache    4u  IPv6   8505       TCP *:http (LISTEN)
httpd    3685    apache    6u  IPv6   8510       TCP *:https (LISTEN)

Tip ini bermanfaat? Ingin tips lainnya? anda bisa membaca Linux Tips 101 yang merupakan bagian dari 1001 Linux Tips.

Selamat Mencoba! Have Fun!

2 thoughts on “Cara Melihat Port yang Terbuka Di Linux

  1. Pingback: lnxbox

  2. Pingback: ./ zaki

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.