summaryrefslogtreecommitdiff
path: root/regress/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-05-14 22:55:35 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-05-14 22:55:35 +0000
commit95a067e40d4626394e2d74e660aa806030eca83a (patch)
treed79a270b9791a9b6c5cc1ebbb70e0290f9582532 /regress/sbin
parent9a29bd4eadfd883696af114b6e780a671cc2110b (diff)
test binat and tagging
Diffstat (limited to 'regress/sbin')
-rw-r--r--regress/sbin/pfctl/Makefile5
-rw-r--r--regress/sbin/pfctl/pf72.in4
-rw-r--r--regress/sbin/pfctl/pf72.loaded10
-rw-r--r--regress/sbin/pfctl/pf72.ok2
4 files changed, 19 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile
index f6f11b9046f..74b354aa139 100644
--- a/regress/sbin/pfctl/Makefile
+++ b/regress/sbin/pfctl/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.141 2003/05/14 22:46:34 henning Exp $
+# $OpenBSD: Makefile,v 1.142 2003/05/14 22:55:34 henning Exp $
# TARGETS
# pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok
@@ -12,13 +12,14 @@
PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
PFTESTS+=28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
-PFTESTS+=51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
+PFTESTS+=51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
PFFAIL+=28 29 30 31 32 33 34 35 36
PFSIMPLE=1 2
PFSETUP=1 2 3 4
PFLOAD=1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29
PFLOAD+=30 31 32 34 36 38 39 40 44 46 47 48 49 54 56 60 61 65 66 67 68 69 70 71
+PFLOAD+=72
PFALTQ=1 2 3 4 5 6 7 8 9 10 11 12 13 14
# disabled; no altq in anchors
# PFLOAD+=33 35 37 42 43 45 51 58 59 62 63 64
diff --git a/regress/sbin/pfctl/pf72.in b/regress/sbin/pfctl/pf72.in
new file mode 100644
index 00000000000..9217588011e
--- /dev/null
+++ b/regress/sbin/pfctl/pf72.in
@@ -0,0 +1,4 @@
+# test binat tagging
+binat on lo0 from 192.168.1.1 to any tag regress -> 10.0.0.1
+block out on lo0 tagged regress
+
diff --git a/regress/sbin/pfctl/pf72.loaded b/regress/sbin/pfctl/pf72.loaded
new file mode 100644
index 00000000000..221d46d9e40
--- /dev/null
+++ b/regress/sbin/pfctl/pf72.loaded
@@ -0,0 +1,10 @@
+@0 binat on lo0 inet from 192.168.1.1 to any tag regress -> 10.0.0.1
+[ Skip steps: i=end d=end f=end p=end sa=end sp=end da=end dp=end ]
+[ queue: qname= qid=0 pqname= pqid=0 ]
+[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
+
+@0 block drop out on lo0 all tagged regress
+[ Skip steps: i=end d=end f=end p=end sa=end sp=end da=end dp=end ]
+[ queue: qname= qid=0 pqname= pqid=0 ]
+[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ]
+
diff --git a/regress/sbin/pfctl/pf72.ok b/regress/sbin/pfctl/pf72.ok
new file mode 100644
index 00000000000..e59b924619b
--- /dev/null
+++ b/regress/sbin/pfctl/pf72.ok
@@ -0,0 +1,2 @@
+binat on lo0 inet from 192.168.1.1 to any tag regress -> 10.0.0.1
+block drop out on lo0 all tagged regress