{"id":26512295,"url":"https://github.com/aymendaoudi/netraf","last_synced_at":"2026-03-27T04:56:35.603Z","repository":{"id":82849846,"uuid":"79361131","full_name":"AymenDaoudi/NeTraf","owner":"AymenDaoudi","description":"Linux utility for monitoring bandwidth consumption by process name","archived":false,"fork":false,"pushed_at":"2017-02-21T22:00:54.000Z","size":11170,"stargazers_count":11,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T20:07:12.719Z","etag":null,"topics":["bandwidth","csharp","dotnet-core","gnuplot","iptraf","linux","monitoring","netstat","process"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AymenDaoudi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-18T16:44:24.000Z","updated_at":"2024-05-16T21:43:20.000Z","dependencies_parsed_at":"2023-03-01T08:45:55.319Z","dependency_job_id":null,"html_url":"https://github.com/AymenDaoudi/NeTraf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AymenDaoudi/NeTraf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymenDaoudi%2FNeTraf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymenDaoudi%2FNeTraf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymenDaoudi%2FNeTraf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymenDaoudi%2FNeTraf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AymenDaoudi","download_url":"https://codeload.github.com/AymenDaoudi/NeTraf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AymenDaoudi%2FNeTraf/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262601287,"owners_count":23335228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bandwidth","csharp","dotnet-core","gnuplot","iptraf","linux","monitoring","netstat","process"],"created_at":"2025-03-21T03:28:24.335Z","updated_at":"2026-03-27T04:56:30.554Z","avatar_url":"https://github.com/AymenDaoudi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NeTraf\nLinux utility for monitoring Bandwidth usage for TCP/UDP connections by process name.\n\n\n## Description\n\nNeTraf is a linux application that helps you monitor the bandwidth consumption of a specific process.\nNeTraf is written in **C#** on **.Net-Core** and uses the following linux utilities : **[Netstat](http://netstat.net/)**, **[IPTraf](http://iptraf.seul.org/)** and **[Gnuplot](http://www.gnuplot.info/)**.\n\n## Prerequisites\n\nMake sur you have the following tools installed before running **NeTraf** :\n\n1. *Netstat* : this utility comes installed on some linux distributions. To install it (Debian/Ubuntu) : `# apt-get install net-tools`.\n\n2. *IPTraf* : Download and install this utility from [here](ftp://iptraf.seul.org/pub/iptraf/iptraf-3.0.0.bin.i386.tar.gz), then follow         these steps to install it:\n\n      I. Decompress the .tar.gz file by entering `tar zxvf iptraf-x.y.z.tar.gz`.\n    \n      II. If your tar doesn't support the z option, you can separately decompress the tar.gz then extract the resulting .tar archive.\n        `gunzip iptraf-x.y.z.tar.gz`\n        `tar xvf iptraf-x.y.z.tar`\n    \n      III. This will decompress the sources into a directory called iptraf-x.y.z.\n    \n      IV. x.y.z here should be the IPTraf version number you're installing, like 3.0.0.\n    \n      V. Change to the src directory. It already contains ready-to-run distribution binaries for IPTraf and the accompanying rvnamed  daemon.      \n\n      VI. To install the software, enter : `make install`.\n      while you are logged in as \"root\". This will install the distribution binary in the /usr/local/bin directory. The necessary working directory /var/local/iptraf will also be created.\n      \n      VII. Configure IPTraf correctly :\n            a. Enable Logging : IPTraf \u003e Configuration \u003e Logging \u003e On.\n            b. Configure log interval : IPTraf \u003e Configuration \u003e Timers \u003e Logging Interval \u003e 1 mins\n\n3. *GnuPlot* : `apt-get install gnuplot-qt`.\n\n4. *.Net Core* : Get .Net Core and the toolings [here](https://www.microsoft.com/net/core#linuxubuntu).\n\n## Compilation and running\n\n1. Download the project [here](https://github.com/AymenDaoudi/NeTraf/archive/master.zip).\n\n2. Navigate to the project's location `../NeTraf`.\n\n3. Enter `dotnet restore` to restore the Nuget dependencies.\n\n4. Enter `dotnet run` + args :\n\n    i. 1st argument : **Network interface name**.\n    ii. 2nd argument : **Process name**.\n    iii. 3rd argument : **Monitoring interval** (in minutes).\n    iv. 4th argument : **Output directory**.\n    v. Example : `dotnet run ens33 skype 15 ../Desktop/OutputResult`.\n\n      i. 1st argument : **Network interface name**.\n\n      ii. 2nd argument : **Process name**.\n        \n      iii. 3rd argument : **Monitoring interval** (in minutes).\n        \n      iv. 4th argument : **Output directory**.\n        \n      v. Example : `dotnet run ens33 skype 15 ../Desktop/OutputResult`.\n\n## Results\n\nOnce the profiling is finished, navigate to the output file you precised in the beginning, there you'll find tow directories :\n\n1. RawOutput files : these contain csv formatted output files describing the input/output bytes, packets and rate.\n\n2. GraphicalOutput files : contain plots describing the input/output bytes, packets and rate, like follows :\n\n![alt text](https://github.com/AymenDaoudi/NeTraf/blob/master/Images/Incoming_Traffic_Rate.png \"Incoming traffic rate\")\n\n## License\n\nThis project is under the [Creative Commons Attribution NonCommercial NoDerivs (CC-NC-ND)] (https://tldrlegal.com/license/creative-commons-attribution-noncommercial-noderivs-(cc-nc-nd)#summary) fully described in the (c.f. [License.txt](License.txt)) file.\n\n![CC-NC-ND](http://i.creativecommons.org/l/by-nc-nd/3.0/88x31.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faymendaoudi%2Fnetraf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faymendaoudi%2Fnetraf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faymendaoudi%2Fnetraf/lists"}