4

I am using Ubuntu 14.04 desktop. I want to block certain applications from accessing internet and allow some. Can this be done using UFW ? If yes, how ? If no, can it be done by any other method ? I do not want to use GUFW. I am able to block by IP but not by applications.

1
  • I'm trying to find a solution with IP Tables. Have you found a solution here by any chance?
    – Webeng
    Commented Apr 20, 2017 at 8:45

1 Answer 1

0

( year 2018 ) Not possible.

Exists only artificial dentures which only can allow or block port from /etc/ufw/applications.d/ or from /etc/services. Similar problem exist with iptables. However iptables also have or had "-m owner --gid-owner" module. https://unix.stackexchange.com/questions/373703/unable-to-get-iptables-owner-module-gid-owner-to-work#373783

1
  • 2
    Iptables also had " --pid-owner processid " . But script which will with path ( to app ) search pid inside "ps -aux" | grep "/path/to/app", and which will refresh iptable rules with new pid , probably you need build alone.
    – guest
    Commented Dec 5, 2018 at 18:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .