First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal. I will show you through the step by step installation wireshark network analyzer on a Ubuntu 16.04 (Xenial Xerus) server. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. It can capture network traffic to specific devices and network interfaces and can save the captured traffic to various formats for analysis and troubleshoot of network releted problems.
Wireshark offers graphical interface to view and analyze network results so it’s easy to use.
It is used for network troubleshooting, monitoring, analysis, software and communications protocol development. Wireshark is a free and open-source packet analyzer.