Skip to content

robokow/LinNetLim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#LinNetLim

This is a program to show how which TCP ports are using data, and limit it - similar to "NetLimiter" for Windows

GUI is in Kivy
chains is used to read current net usage
bash, tc and iptables are used to impose port limits

Do not use if you have a custom iptables setup! This will wipe any custom rules (from the mangle table, and probably others too)

screenshot here

##Running

Create a python 2.7 env, install requirements and run the UI as root

virtualenv env
. env/bin/activate
pip install -r requirements.txt
sudo env/bin/python kivy_ui.py 

toggle the button next to ports you want to limit, type in an up/down limit in kb and press apply

To clear limits - uncheck all limits and press apply - closing the program will not stop limiting

##TODO

  • group by process (perhaps with lsof?)
  • seperate up/down data measurements
  • tidy up
  • system tray icon
  • curses CLI (like iftop, nethogs)

About

A Netlimiting program for Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.6%
  • Shell 14.4%