Why cannot allow specific software (like Firefox) to use internet but deny other software (link Chrome) that are using same port in ufw? In windows there is the feature, why ufw don't have that?
Why cannot allow specific software (like Firefox) to use internet but deny other software (link Chrome) that are using same port in ufw? In windows there is the feature, why ufw don't have that?
You can use
apparmor
to deny network traffic for some application. First you must installapparmor
andapparmor-utils
..After that you can generate profile to you application ...
Next step is to change
Networking
part in profile to:Next, check config with apparmor_parser and reload config
Change mode from
complain
toenforce
aka turn onapparmor
for this app.More manual you can find here and here and here
Second solution is more simple but is not completly what you want
Surfing on net I found trickle. Fine and light tool for control bandwidth on application
Install them
Usage is very simple
this command will allow
firefox
to download at speed of 1 kb/sOr you can add
trickle
to luncherAlso you can create permanent control in
/etc/trickled.conf
per service. Not for bandwidth then for traffic priority