Hello, I was thinking that it would be useful to be able to allow or deny network access to specific processes.
In particular I would like to be able to define such rules through the process name.
I thought that iptables could do that, but googling I discovered that the "cmd-owner" feature is long gone.
Trying to use a rule like:
Code:
iptables -A OUTPUT -m owner --cmd-owner foo -j DROP
gives only this result:
Code:
ipt_owner: pid, sid and command matching not supported anymore
iptables: Invalid argument
Unfortunately user id and group id don't give the granularity I could achieve with the name of the process. For example when a parent process starts children processes with the same uid and gid, but different names.
So I would like to ask if anybody knows a way to block (or allow) network access only for specific processes, using their names as a discriminant.