Friday, July 09, 2021

Re: PF annoying messages

On 2021-07-08, Cameron Simpson <cs@cskk.id.au> wrote:
> On 07Jul2021 10:59, Pierre Dupond <76nemo76@gmx.ch> wrote:
>> I am setting up a firewall with PF. The strategy used is quite
>> common:
>> set block-policy return
>> set loginterface none
>> set skip on lo0
>> match in all scrub (random-id reassemble tcp)
>> block log
>
> I think this sets _both_ block and log as the packet acceptance state.
> _Not_ "log if I block" i.e. a pass rule will still log.

That's not the case, "match log" would do that, log on a block or pass
rule only applies if that rule itself is matched.

No comments:

Post a Comment