Votes: 0Posted On: Jun 21, 2017 06:49:29
It is very important for a system/network admin to monitor the inflow and outflow of the traffic from the server. There are many tools available these days that can help to view the information graphically. However, the most common and extensively used command is "NETSTAT"
Using netstat you can monitor every connection going in and out of your computer. This monitors all major protocols including tcp and udp, and every port. netstat is a standard Unix program, so it is likely installed.
# netstat -t -u (-u for displaying continuously)
the output is as follows -
tcp 0 0 22.214.171.124:57053 71-95-19-141.stat:16359 ESTABLISHED
tcp 0 19109 126.96.36.199:49249 5ac33076.bb.sky.c:52782 ESTABLISHED
tcp 0 0 188.8.131.52:53874 catv54039CF5.pool:16628 ESTABLISHED
tcp 0 0 184.108.40.206:37182 host86-140-193-28.:6881 ESTABLISHED
tcp 0 0 220.127.116.11:45563 61-224-49-29.dyna:48227 ESTABLISHED
tcp 0 0 18.104.22.168:47665 22.214.171.124:43837 ESTABLISHED