Answer the question
In order to leave comments, you need to log in
Is it possible in iptables to close all ports only for a specific program by its name?
Is it possible in iptables to close all ports for a program by its name?
For example:
iptables -A OUTPUT -p tcp --dport pure-ftpd -j DROP
Answer the question
In order to leave comments, you need to log in
If you run the program on behalf of a specific user in Linux and cover access to ports for this user, then you can. Here you can look how to cover access for users, the article is not very chic, but you can google the rest if anything.
https://octet.spb.ru/blog/2013/05/iptables-owner/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question