AIX 환경에서 TCP dump 뜨기
2014.12.05 08:54
원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어
Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
원문 : http://www.ischo.net -- 조인상 //시스템 엔지니어
+++++++++++++++++++++++++++++++++++++++++++++++++++++++
<CASE>
서버 : 192.168.0.1
Client : 192.168.0.2
Client 에서 서버로 telnet 접속시 들어오는 패킷들을 dump 뜨고자 함.
사용 명령어
iptrace / ipreport
iptrace Daemon
Purpose
Provides interface-level packet tracing for Internet protocols.
Syntax
/usr/sbin/iptrace [ -a ] [ -b ][ -e ] [ -u ] [ -PProtocol_list ] [ -iInterface ] [ -pPort_list ] [ -sHost [ -b ] ] [ -dHost ] [ -L Log_size ] [ -B
] [ -T ] [ -S snap_length] LogFile
ipreport Command
Purpose
Generates a packet trace report from the specified packet trace file.
Syntax
/usr/sbin/ipreport [ -e ] [ -r ] [ -n ] [ -s ] LogFile
/usr/sbin/ipreport [ -C ] [ -e ] [ -n ] [ -r ] [ -s ] [ -S ] [ -v ] [-x ] [ -1 ] [ -N ] [ -T ] [ -c count ] [ -j pktnum ] [ -X bytes ] tracefile
Description
The /usr/sbin/ipreport command generates a trace report from the specified trace file created by the iptrace command. The LogFile parameter
specifies the name of the file containing the results of the Internet Protocol trace. This file is created by the iptrace command.
192.168.0.2 호스트로 en0 인터페이스를 통하여 23번 포트로 통신하는 패킷을 tcpdump.bin 으로 저장한다.
# iptrace -b -s 192.168.0.2 -i en0 -p 23 tcpdump.bin
[20906126]
위 명령어의 결과 background 로 동작하며 덤프를 저장한다.
# ps -ef | grep iptrace
root 8978508 20971746 0 23:35:47 pts/1 0:00 grep iptrace
root 20906126 1 0 23:35:23 - 0:00 iptrace -b -s 192.168.0.2 -i en0 -p 23 tcpdump.log
dump 중단시 kill
# kill -9 20906126
binary 형식인 tcpdump.bin 파일을 ACSII 형태로 바꾸고자 할때
# ipreport tcpdump.bin > tcpdump.txt
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
공지 | [공지] 게시자료 열람자유. 불펌금지입니다. | 조인상 | 2010.12.07 | 109381 |
211 | C 컴파일러 라이센스 입력방법 | 조인상 | 2010.05.09 | 13766 |
210 | 케이블 라벨링 탭 | 조인상 | 2010.05.11 | 20463 |
209 | AIX 5L에 아파치(리눅스rpm) 패키지 설치하기 | 조인상 | 2010.05.11 | 16560 |
208 | IBM information center URL | 조인상 | 2010.05.11 | 17276 |
207 | [AIX교육] AIX의 백업관련 커맨드 | 조인상 | 2010.05.11 | 27201 |
206 | DEVICE 관리 | 조인상 | 2010.05.11 | 24831 |
205 | SMIT Fast Paths | 조인상 | 2010.05.11 | 19060 |
204 | mksysb & savevg &alt_disk_install | 조인상 | 2010.05.11 | 17509 |
203 | IBM MP(fix) 설치하기 | 조인상 | 2010.05.11 | 27050 |
202 | IBM pSeries 장비에 시리얼(HMC) 연결하기. | 조인상 | 2010.05.11 | 23762 |
201 | AIX에서 설치된 OS의 커널비트수 확인 | 조인상 | 2010.05.11 | 24384 |
200 | 로그인 다수 실패해서 로그인이 안될때 | 조인상 | 2010.05.11 | 13748 |
199 | AIX 시스템 명령(cpu, memory, disk) | 조인상 | 2010.05.11 | 22255 |
198 | Backup OS Disk만들기(alter disk 백업 방법) | 조인상 | 2010.05.11 | 28480 |
197 | [AIX] NFS service | 조인상 | 2010.05.11 | 20490 |
196 | NFS 마운트 안될때 | 조인상 | 2010.05.11 | 16037 |
195 | errpt 내용 삭제하는 법 | 조인상 | 2010.05.11 | 17666 |
194 | dump device 설정 | 조인상 | 2010.05.11 | 15009 |
193 | NFS를 이용한 백업스크립트 | 조인상 | 2010.05.11 | 14756 |
192 | 시간 동기화시키기 | 조인상 | 2010.05.11 | 14002 |
감사합니다. 잘 보았습니다.