Installing ngrep on the CentOS 6.7
How to install ngrep on CentOS :
ngrep is not added to default repository, We need to add epel repo
sudo yum install epel-release
Then update the cache using following command.
yum update
Now Install the ngrep.
yum install ngrep
Example Usage :
Using ngrep to capture the SIP traffic.
ngrep -Wbyline port 5060 -d any -q
Note: Here i am using default SIP port 5060.