D
D
Danil2016-10-25 15:09:48
iptables
Danil, 2016-10-25 15:09:48

How does block work in iptables?

How does the command work DROPin iptables? If I want to use it to close port 8080 from the outside, but I want to be able to get to it from the inside (from the localhost), then the option iptables -A INPUT -p tcp --dport 8080-j DROPwill work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mureevms, 2016-10-25
@mureevms

In the case when the policy is ACCEPT - yes. But this is not feng shui.
Judging by the question, you do not quite understand how iptables works. Therefore, I suggest reading a short note about this: The minimum set of Iptables rules for typical tasks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question