Показаны сообщения с ярлыком ngrep. Показать все сообщения
Показаны сообщения с ярлыком ngrep. Показать все сообщения

вторник, 19 августа 2014 г.

CentOS 7: ставим ngrep

Есть неплохой снифер ngrep, иногда удобнее tcpdump-а, но в 7 версии его нет в epel, да и вообще на просторах интернета. Благо, собирается он несложно.

ngrep is grep command that works on realtime network data.

ngrep strives to provide most of GNU grep's common features, applying them to the network layer. ngrep is a pcap-aware tool that will allow you to specify extended regular or hexadecimal expressions to match against data payloads of packets. It currently recognizes TCP, UDP and ICMP across Ethernet, PPP, SLIP, FDDI, Token Ring and null interfaces, and understands bpf filter logic in the same fashion as more common packet sniffing tools, such as tcpdump and snoop.

Наш пример для отладки SIP:
ngrep -d any '000\*000' proto udp -q -W byline