diff options
-rw-r--r-- | regress/sbin/pfctl/Makefile | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf46.loaded | 32 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf47.loaded | 240 |
3 files changed, 274 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index b77a71dfd4e..ecc754d1269 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.76 2003/02/19 16:20:26 henning Exp $ +# $OpenBSD: Makefile,v 1.77 2003/02/19 16:23:43 henning Exp $ 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 @@ -7,7 +7,7 @@ PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 PFSIMPLE=1 2 PFSETUP=1 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 49 +PFLOAD+=30 31 32 34 36 38 39 40 44 46 47 49 # disabled; no altq in anchors # PFLOAD+=33 35 37 42 43 45 51 # disabled; no table def in anchors diff --git a/regress/sbin/pfctl/pf46.loaded b/regress/sbin/pfctl/pf46.loaded new file mode 100644 index 00000000000..18996acadf4 --- /dev/null +++ b/regress/sbin/pfctl/pf46.loaded @@ -0,0 +1,32 @@ +@0 pass in on lo0 route-to { (pflog0 127.0.0.1), (pflog0 127.0.0.2) } round-robin inet all +[ Skip steps: i=end f=4 p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@1 pass out on lo0 route-to { (pflog0 127.0.0.1), (pflog0 127.0.0.2) } round-robin inet all +[ Skip steps: i=end f=4 p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@2 pass in on lo0 route-to (pflog0 127.0.0.0/24) bitmask inet all +[ Skip steps: i=end f=4 p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@3 pass out on lo0 dup-to (pflog0 127.0.0.0/24) random inet all +[ Skip steps: i=end p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@4 pass in on lo0 reply-to { pflog0, pflog0 } round-robin inet6 all +[ Skip steps: i=end d=6 p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@5 pass in on lo0 reply-to (pflog0 127.0.0.0/28) source-hash 0x0123456789abcdef0123456789abcdef inet all +[ Skip steps: i=end f=end p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@6 pass out on lo0 route-to (pflog0 127.0.0.0/24) source-hash 0x4da8e393fd22f577426cfdf7fe52d3b0 inet all +[ Skip steps: i=end f=end p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@7 pass in on lo0 dup-to (pflog0 127.0.0.0/24) round-robin inet all +[ Skip steps: i=end d=end f=end p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + diff --git a/regress/sbin/pfctl/pf47.loaded b/regress/sbin/pfctl/pf47.loaded new file mode 100644 index 00000000000..fe941b76a0b --- /dev/null +++ b/regress/sbin/pfctl/pf47.loaded @@ -0,0 +1,240 @@ +@0 pass in on lo0 all +[ Skip steps: d=end f=5 p=35 sa=6 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@1 pass in all label "any" +[ Skip steps: d=end f=5 p=35 sa=6 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@2 pass in on lo0 all label "lo0" +[ Skip steps: i=end d=end f=5 p=35 sa=6 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@3 pass in on lo0 all label "lo0lo0" +[ Skip steps: i=end d=end f=5 p=35 sa=6 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@4 pass in on lo0 all label "any" +[ Skip steps: i=end d=end p=35 sa=6 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@5 pass in on lo0 inet all label "any" +[ Skip steps: i=end d=end f=12 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@6 pass in on lo0 inet from 127.0.0.1 to any label "127.0.0.1" +[ Skip steps: i=end d=end f=12 p=35 sa=9 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@7 pass in on lo0 inet from 127.0.0.1 to any label "127.0.0.1127.0.0.1" +[ Skip steps: i=end d=end f=12 p=35 sa=9 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@8 pass in on lo0 inet from 127.0.0.1 to any label ":127.0.0.1:127.0.0.1:" +[ Skip steps: i=end d=end f=12 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@9 pass in on lo0 inet from 127.0.0.0/8 to any label "127.0.0.0/8" +[ Skip steps: i=end d=end f=12 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@10 pass in on lo0 inet from 127.0.0.0/16 to any label "127.0.0.0/16127.0.0.0/16" +[ Skip steps: i=end d=end f=12 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@11 pass in on lo0 inet from 127.0.0.0/31 to any label ":127.0.0.0/31:127.0.0.0/31:" +[ Skip steps: i=end d=end p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@12 pass in on lo0 inet6 from fe80::1 to any label "fe80::1" +[ Skip steps: i=end d=end f=21 p=35 sa=15 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@13 pass in on lo0 inet6 from fe80::1 to any label "fe80::1fe80::1" +[ Skip steps: i=end d=end f=21 p=35 sa=15 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@14 pass in on lo0 inet6 from fe80::1 to any label ":fe80::1:fe80::1:" +[ Skip steps: i=end d=end f=21 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@15 pass in on lo0 inet6 from ::/8 to any label "::/8" +[ Skip steps: i=end d=end f=21 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@16 pass in on lo0 inet6 from fe00::/8 to any label "fe00::/8" +[ Skip steps: i=end d=end f=21 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@17 pass in on lo0 inet6 from ::/64 to any label "::/64::/64" +[ Skip steps: i=end d=end f=21 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@18 pass in on lo0 inet6 from fe80::/64 to any label "fe80::/64fe80::/64" +[ Skip steps: i=end d=end f=21 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@19 pass in on lo0 inet6 from ::/127 to any label ":::/127:::/127:" +[ Skip steps: i=end d=end f=21 p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@20 pass in on lo0 inet6 from fe80::/127 to any label ":fe80::/127:fe80::/127:" +[ Skip steps: i=end d=end p=35 sp=35 da=22 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@21 pass in on lo0 all label "!any!" +[ Skip steps: i=end d=end p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@22 pass in on lo0 inet from any to (lo0) label "(lo0)" +[ Skip steps: i=end d=end f=28 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@23 pass in on lo0 inet from any to (lo0) label "(lo0)(lo0)" +[ Skip steps: i=end d=end f=28 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@24 pass in on lo0 inet from any to (lo0) label " (lo0) (lo0) " +[ Skip steps: i=end d=end f=28 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@25 pass in on lo0 inet from any to ! 127.0.0.0/8 label "! 127.0.0.0/8" +[ Skip steps: i=end d=end f=28 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@26 pass in on lo0 inet from any to ! 127.0.0.0/16 label "! 127.0.0.0/16! 127.0.0.0/16" +[ Skip steps: i=end d=end f=28 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@27 pass in on lo0 inet from any to ! 127.0.0.0/31 label " ! 127.0.0.0/31 ! 127.0.0.0/31 " +[ Skip steps: i=end d=end p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@28 pass in on lo0 inet6 from any to ! (lo0) label "! (lo0)" +[ Skip steps: i=end d=end f=34 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@29 pass in on lo0 inet6 from any to ! (lo0) label "! (lo0)! (lo0)" +[ Skip steps: i=end d=end f=34 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@30 pass in on lo0 inet6 from any to ! (lo0) label " ! (lo0) ! (lo0) " +[ Skip steps: i=end d=end f=34 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@31 pass in on lo0 inet6 from any to ! ::/8 label "! ::/8" +[ Skip steps: i=end d=end f=34 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@32 pass in on lo0 inet6 from any to ! ::/64 label "! ::/64! ::/64" +[ Skip steps: i=end d=end f=34 p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@33 pass in on lo0 inet6 from any to ! ::/127 label " ! ::/127 ! ::/127 " +[ Skip steps: i=end d=end p=35 sa=59 sp=35 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@34 pass in on lo0 all label "xx" +[ Skip steps: i=end d=end f=59 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@35 pass in on lo0 proto tcp from any port = 28 to any label "28" +[ Skip steps: i=end d=end f=59 p=45 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@36 pass in on lo0 proto tcp from any port 28 >< 29 to any label "28><29" +[ Skip steps: i=end d=end f=59 p=45 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@37 pass in on lo0 proto tcp from any port 28 <> 29 to any label "28<>29" +[ Skip steps: i=end d=end f=59 p=45 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@38 pass in on lo0 proto tcp from any port != 28 to any label "!=28" +[ Skip steps: i=end d=end f=59 p=45 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@39 pass in on lo0 proto tcp from any port < 28 to any label "<28" +[ Skip steps: i=end d=end f=59 p=45 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@40 pass in on lo0 proto tcp from any port <= 28 to any label "<=28" +[ Skip steps: i=end d=end f=59 p=45 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@41 pass in on lo0 proto tcp from any port > 28 to any label ">28" +[ Skip steps: i=end d=end f=59 p=45 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@42 pass in on lo0 proto tcp from any port >= 28 to any label ">=28" +[ Skip steps: i=end d=end f=59 p=45 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@43 pass in on lo0 proto tcp from any port = 28 to any label "2828" +[ Skip steps: i=end d=end f=59 p=45 sa=59 sp=45 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@44 pass in on lo0 proto tcp from any port = 28 to any label "$28$28$" +[ Skip steps: i=end d=end f=59 sa=59 da=59 dp=46 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@45 pass in on lo0 all +[ Skip steps: i=end d=end f=59 sa=59 sp=59 da=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@46 pass in on lo0 proto udp from any to any port = 29 label "29" +[ Skip steps: i=end d=end f=59 p=49 sa=59 sp=59 da=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@47 pass in on lo0 proto udp from any to any port != 29 label "!=29!=29" +[ Skip steps: i=end d=end f=59 p=49 sa=59 sp=59 da=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@48 pass in on lo0 proto udp from any to any port > 29 label "x>29x>29x" +[ Skip steps: i=end d=end f=59 sa=59 sp=59 da=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@49 pass in on lo0 all label "ip" +[ Skip steps: i=end d=end f=59 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@50 pass in on lo0 proto esp all label "esp" +[ Skip steps: i=end d=end f=59 p=53 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@51 pass in on lo0 proto esp all label "espesp" +[ Skip steps: i=end d=end f=59 p=53 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@52 pass in on lo0 proto esp all label "-esp-esp-" +[ Skip steps: i=end d=end f=59 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@53 pass in on lo0 proto 166 all label "166" +[ Skip steps: i=end d=end f=59 p=56 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@54 pass in on lo0 proto 166 all label "166166" +[ Skip steps: i=end d=end f=59 p=56 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@55 pass in on lo0 proto 166 all label "_166_166_" +[ Skip steps: i=end d=end f=59 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@56 pass in on lo0 all label "56" +[ Skip steps: i=end d=end f=59 p=59 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@57 pass in on lo0 all label "5757" +[ Skip steps: i=end d=end f=59 p=59 sa=59 sp=59 da=59 dp=59 ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@58 pass in on lo0 all label "%58%58%" +[ Skip steps: i=end d=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + +@59 pass in on lo0 inet proto tcp from 127.0.0.1 port = 30 to 127.0.0.2 port = 44 label "if lo0 proto tcp 127.0.0.1 30 127.0.0.2 44" +[ Skip steps: i=end d=end f=end p=end sa=end sp=end da=end dp=end ] +[ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] + |