3 ms·After I see app's bandwidth usage, if I want to block that app's traffic, what's the best way to do that?by tkinom 5y agoAfter I see app's bandwidth usage, if I want to block that app's traffic, what's the best way to do that?effie 5y agoYou have to run the app with dedicated UID, then iptables -I OUTPUT -m owner --uid-owner <UID> -j DROP ip6tables -I OUTPUT -m owner --uid-owner <UID> -j DROPmircea 5y agoRun the app in a separate netns and then you can create iptables/netfilter rules that match on that netns.