E
E
elisey4742017-08-30 17:53:43
Computer networks
elisey474, 2017-08-30 17:53:43

Port 80 will be opened and why?

f7bb617e858e4d818ff58948e1ede26a.jpg
These are the rules in pfsense firewall/rules. Port 80 will be accessible from outside or not and why?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Satisfied IT, 2017-08-31
@elisey474

You with the first rule (the top one) denied access from any ip to any port, the second rule allows access to port 80 from any ip, but since the rules are applied from top to bottom, access to port 80 will be closed by the very first rule (packets matching the rule will be discarded) and the second rule will no longer be processed (since there is nothing to process, the first rule has already done its job). By the way, this is written in the text at the very bottom of your screenshot.

T
TyzhSysAdmin, 2017-08-30
@POS_troi

I'll just offer you a link to Lissyara 's article .
You need not to chew on the "why" but to understand how it generally works.
Well, off man on IPFW fryahi

D
Dmitry, 2017-08-30
@Tabletko

A hint: the rules are applied from top to bottom until the first occurrence. The rest is more like a task than a question.

R
res2001, 2017-08-31
@res2001

If the first rule covers the address range of the second rule in the source field (the screenshot shows that different addresses are specified in the source field for the first and second rules, but what is specifically indicated in the first rule is not visible), then everything will be closed for you, because . the second rule simply will not reach - as other comrades pointed out, the rules are checked from top to bottom.
But if the addresses in the source field do not intersect, then the second rule will work and the port will be available for the specified addresses.
PS: I hope the last rule by default is to close everything for everyone?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question