A
A
Alexander Nazarov2017-09-11 18:17:05
linux
Alexander Nazarov, 2017-09-11 18:17:05

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

2 answer(s)
V
Vladimir Mukovoz, 2017-09-11
@wergio

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/

D
Denis Sechin, 2017-09-11
@tamogavk

No, source only

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question