I'm reading http://www.openbsd.org/faq/pf/filter.html and ran into this paragraph:
Since rules are usually `pass in log` `block in log` I went ahead and assumed `block all log`, which seems is not right and it's actually `block log all`.
Based on :
Is it because in this case 'all' would be source/dest and not really direction, right? So log comes first.
Might seem a noobie silly question but I'm trying to implement pf as 24/7 as possible (both on my Macbook and FreeBSD servers) and would like to understand the syntax as much as possible to learn to 'think in pf' so to speak.
Thanks in advance!
To create a default deny filter policy, the first filter rule should be:
block all
This will block all traffic on all interfaces in either direction from anywhere to anywhere.
Since rules are usually `pass in log` `block in log` I went ahead and assumed `block all log`, which seems is not right and it's actually `block log all`.
Based on :
Rule Syntax
The general, highly simplified syntax for filter rules is:
action [direction] [log] [quick] [on interface] [af] [proto protocol]
[from src_addr [port src_port]] [to dst_addr [port dst_port]]
[flags tcp_flags] [state]
Is it because in this case 'all' would be source/dest and not really direction, right? So log comes first.
Might seem a noobie silly question but I'm trying to implement pf as 24/7 as possible (both on my Macbook and FreeBSD servers) and would like to understand the syntax as much as possible to learn to 'think in pf' so to speak.
Thanks in advance!