× - 코드 및 콘솔 화면은 [ code ] 내용 [ /code ] 태그 처리하여 주세요.
- 강조하고자 하는 내용은 [ b ] 내용 [ /b ] 태그 처리하여 주세요.

remote 의 특정 포트가 listen 하고 있는지 알 수 있는 방법?

  • Виктор Цой
    (빅토르최)
  • Виктор Цой's Avatar 이 글의 작성자
  • Offline
  • ★★ Staff ★★
  • ★★ Staff ★★
더보기
05 Mar 2014 22:56 #38 작성자: Виктор Цой
Виктор Цой 님의 글: remote 의 특정 포트가 listen 하고 있는지 알 수 있는 방법?
초보적일 수도 있는 질문 하나 드립니다.

특정 장비(source)에서 remote 장비(destination)의 특정 포트가 listen 하고 있는지 (해당 포트를 물고 올라오는 프로세스가 있고, 정상적으로 listen 하고 있는지) 알 수 있는 방법을 알고 싶은데요.

문제는 이 특정 장비(source) 에 telnet 프로그램이 없습니다. 저는 보통 telnet 으로 포트 테스트를 하거든요.

이럴 경우 어떻게 해야 할까요?
더보기
18 Mar 2014 22:23 #72 작성자: camori
camori 님의 답글: remote 의 특정 포트가 listen 하고 있는지 알 수 있는 방법?
nmap이나 netcat을 사용하면 된다고 하네요.

nmap -A 192.168.0.5/32 -p 23
nc -z host.example.com 20-30

참고사이트 : stackoverflow.com/questions/1168317/chec...-port-on-remote-host
blog.naver.com/koddos4?Redirect=Log&logNo=202676554
좋아요를 누른 살쾡이: appsroot
더보기
18 Mar 2014 22:46 #73 작성자: jeeg
jeeg 님의 답글: remote 의 특정 포트가 listen 하고 있는지 알 수 있는 방법?
주신 stackoverflow 링크를 보니 "Windows, Linux, and Mac OS X" 가 지원된다고 되어 있는데 일단 제 Linux 머신과 OS X 머신에는 기본적으로 깔려있지는 않은 것 같습니다.
더보기
19 Mar 2014 14:29 - 19 Mar 2014 14:29 #79 작성자: jeeg
jeeg 님의 답글: remote 의 특정 포트가 listen 하고 있는지 알 수 있는 방법?
nmap 은 잘 설치되었습니다.
Installed:
  nmap.x86_64 2:5.51-3.el6

Dependency Installed:
  libpcap.x86_64 14:1.4.0-1.20130826git2dbcaa1.el6

그런데 netcat 은 repository 에서 찾지를 못합니다. 어떻게 설치해야 할까요?
# yum install netcat
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.daum.net
 * extras: ftp.daum.net
 * updates: centos.tt.co.kr
Setting up Install Process
No package netcat available.
Error: Nothing to do
더보기
14 May 2014 18:23 - 15 May 2014 14:49 #235 작성자: jeeg
jeeg 님의 답글: remote 의 특정 포트가 listen 하고 있는지 알 수 있는 방법?
jmap 확인하였습니다.
Host is up (0.00059s latency).
PORT      STATE  SERVICE
22/tcp    open   ssh
6379/tcp  open   unknown
6380/tcp  closed unknown
26379/tcp open   unknown

처럼 open, closed 여부가 나오네요.
더보기
15 May 2014 14:11 #238 작성자: fragile
fragile 님의 답글: remote 의 특정 포트가 listen 하고 있는지 알 수 있는 방법?
netcat 말고 nc 로 설치하면 됩니다.

# yum install nc -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: ftp.daum.net
* extras: ftp.daum.net
* updates: ftp.daum.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package nc.x86_64 0:1.84-22.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

========================================================================================================================
Package Arch Version Repository Size
========================================================================================================================
Installing:
nc x86_64 1.84-22.el6 base 57 k

Transaction Summary
========================================================================================================================
Install 1 Package(s)

Total download size: 57 k
Installed size: 109 k
Downloading Packages:
nc-1.84-22.el6.x86_64.rpm | 57 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : nc-1.84-22.el6.x86_64 1/1
Verifying : nc-1.84-22.el6.x86_64 1/1

Installed:
nc.x86_64 0:1.84-22.el6

Complete!
Time to create page: 0.067 seconds
Powered by Kunena Forum