summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-12-07 23:19:54 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-12-07 23:19:54 +0000
commitbc554f6991df7eb6b76a8406651114bbb8dea8c0 (patch)
treebdc22ce0ecb2419392cb1c7aad1060117fa2869c /regress/sbin/pfctl
parent04687a0f2a63058952d297a64ed858f47e599a1b (diff)
fromto is optional now, "from any to any" equals "all" equals omitted.
A single rule "block" is not valid, and does the same as "block in all, block out all".
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r--regress/sbin/pfctl/pf40.in24
-rw-r--r--regress/sbin/pfctl/pf40.ok12
2 files changed, 24 insertions, 12 deletions
diff --git a/regress/sbin/pfctl/pf40.in b/regress/sbin/pfctl/pf40.in
index 128a0448639..3a621aee443 100644
--- a/regress/sbin/pfctl/pf40.in
+++ b/regress/sbin/pfctl/pf40.in
@@ -1,26 +1,26 @@
-#scrub
+scrub
scrub all
-#scrub in
-#scrub out
+scrub in
+scrub out
scrub in all
scrub from any to any
-#block
-#block return
-#block return-rst proto tcp
-#pass
-#pass in
-#pass out
+block
+block return
+block return-rst proto tcp
+pass
+pass in
+pass out
pass all
block in all
block out all
block from any to any
pass in from any to any
pass out from any to any
-#block on lo0
+block on lo0
pass on lo0 all
block on lo0 from any to any
-#pass proto tcp flags S/SA
-#pass proto udp keep state
+pass proto tcp flags S/SA
+pass proto udp keep state
pass in proto udp all keep state
pass out proto udp from any to any keep state
pass out on lo0 proto tcp from any to any port 25 keep state
diff --git a/regress/sbin/pfctl/pf40.ok b/regress/sbin/pfctl/pf40.ok
index 17ef44abb51..d919b8d5511 100644
--- a/regress/sbin/pfctl/pf40.ok
+++ b/regress/sbin/pfctl/pf40.ok
@@ -1,14 +1,26 @@
scrub all fragment reassemble
+scrub all fragment reassemble
+scrub in all fragment reassemble
+scrub out all fragment reassemble
scrub in all fragment reassemble
scrub all fragment reassemble
+block drop all
+block return all
+block return-rst proto tcp all
+pass all
+pass in all
+pass out all
pass all
block drop in all
block drop out all
block drop all
pass in all
pass out all
+block drop on lo0 all
pass on lo0 all
block drop on lo0 all
+pass proto tcp all flags S/SA
+pass proto udp all keep state
pass in proto udp all keep state
pass out proto udp all keep state
pass out on lo0 proto tcp from any to any port = smtp keep state