Hello forum
I know it's not a specific FreeBSD question but more a general question about PF firewall. Still hope someone can light up my darkness a bit
In PF multiple ports can be given in a rule like this
so in the case above the ports are imho "connected" by a logical OR
But what will happen in the following case where I try to negate the ports?
how are the ports evaluated in this case? imho the ports should be "connected" with logical AND. Is this the case?
Thanks for any light
tobi
I know it's not a specific FreeBSD question but more a general question about PF firewall. Still hope someone can light up my darkness a bit
In PF multiple ports can be given in a rule like this
Code:
pass in quick on $ext proto tcp from any to any port { 25 53 587 }
But what will happen in the following case where I try to negate the ports?
Code:
block in quick on $ext proto tcp from any to any port ! { 25 53 587 }
Thanks for any light
tobi