Howto install ngrep on Centos 6.4

Howto install ngrep on Centos 6.4

SIP

Step 1:  Install epel repository on your Centos 6.4 Server. You can find that guide on our site.

Step 2:  Install ngrep by yum command

[root@uc ~]# yum install ngrep
Loaded plugins: downloadonly, fastestmirror, presto
Loading mirror speeds from cached hostfile
epel/metalink | 2.8 kB 00:00
* base: centos-hn.viettelidc.com.vn
* epel: ftp.jaist.ac.jp
* extras: centos-hn.viettelidc.com.vn
* updates: centos-hn.viettelidc.com.vn
base | 3.7 kB 00:00
epel | 3.9 kB 00:00
epel/primary_db | 5.0 MB 01:37
extras | 3.5 kB 00:00
openuc | 3.1 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 2.0 MB 00:11
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package ngrep.x86_64 0:1.45-7.el6 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
ngrep x86_64 1.45-7.el6 epel 29 k

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

Total download size: 29 k
Installed size: 46 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 29 k
ngrep-1.45-7.el6.x86_64.rpm | 29 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : ngrep-1.45-7.el6.x86_64 1/1
Verifying : ngrep-1.45-7.el6.x86_64 1/1

Installed:
ngrep.x86_64 0:1.45-7.el6

Complete!
[root@uc ~]#

3. Try sniffer SIP traffic on your server

[root@uc ~]# ngrep -qt -W byline port 5060
interface: eth0 (192.168.0.0/255.255.255.0)
filter: (ip or ip6) and ( port 5060 )

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>