xref: /freebsd/sbin/pfctl/tests/files/pf0047.in (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1pass in on lo0 all label ""
2
3pass in all label "$if"
4pass in on lo0 all label "$if"
5pass in on lo0 all label "$if$if"
6
7pass in on lo0 all label "$srcaddr"
8pass in on lo0 from 0/0 to any label "$srcaddr"
9pass in on lo0 from 127.0.0.1 to any label "$srcaddr"
10pass in on lo0 from 127.0.0.1 to any label "$srcaddr$srcaddr"
11pass in on lo0 from 127.0.0.1 to any label ":$srcaddr:$srcaddr:"
12pass in on lo0 from 127.0.0.1/8 to any label "$srcaddr"
13pass in on lo0 from 127.0.0.1/16 to any label "$srcaddr$srcaddr"
14pass in on lo0 from 127.0.0.1/31 to any label ":$srcaddr:$srcaddr:"
15pass in on lo0 inet6 from fe80::1 to any label "$srcaddr"
16pass in on lo0 inet6 from fe80::1 to any label "$srcaddr$srcaddr"
17pass in on lo0 inet6 from fe80::1 to any label ":$srcaddr:$srcaddr:"
18pass in on lo0 inet6 from lo0/8 to any label "$srcaddr"
19pass in on lo0 inet6 from lo0/64 to any label "$srcaddr$srcaddr"
20pass in on lo0 inet6 from lo0/127 to any label ":$srcaddr:$srcaddr:"
21
22pass in on lo0 all label "!$dstaddr!"
23pass in on lo0 inet from any to (lo0) label "$dstaddr"
24pass in on lo0 inet from any to (lo0) label "$dstaddr$dstaddr"
25pass in on lo0 inet from any to (lo0) label " $dstaddr $dstaddr "
26pass in on lo0 from any to ! 127.0.0.1/8 label "$dstaddr"
27pass in on lo0 from any to ! 127.0.0.1/16 label "$dstaddr$dstaddr"
28pass in on lo0 from any to ! 127.0.0.1/31 label " $dstaddr $dstaddr "
29pass in on lo0 inet6 from any to ! (lo0) label "$dstaddr"
30pass in on lo0 inet6 from any to ! (lo0) label "$dstaddr$dstaddr"
31pass in on lo0 inet6 from any to ! (lo0) label " $dstaddr $dstaddr "
32pass in on lo0 inet6 from any to ! ::1/8 label "$dstaddr"
33pass in on lo0 inet6 from any to ! ::1/64 label "$dstaddr$dstaddr"
34pass in on lo0 inet6 from any to ! ::1/127 label " $dstaddr $dstaddr "
35
36pass in on lo0 all label "x$srcportx"
37pass in on lo0 proto tcp from any port = 28 to any label "$srcport"
38pass in on lo0 proto tcp from any port 28 >< 29 to any label "$srcport"
39pass in on lo0 proto tcp from any port 28 <> 29 to any label "$srcport"
40pass in on lo0 proto tcp from any port 28:29 to any label "$srcport"
41pass in on lo0 proto tcp from any port != 28 to any label "$srcport"
42pass in on lo0 proto tcp from any port < 28 to any label "$srcport"
43pass in on lo0 proto tcp from any port <= 28 to any label "$srcport"
44pass in on lo0 proto tcp from any port > 28 to any label "$srcport"
45pass in on lo0 proto tcp from any port >= 28 to any label "$srcport"
46pass in on lo0 proto tcp from any port = 28 to any label "$srcport$srcport"
47pass in on lo0 proto tcp from any port = 28 to any label "$$srcport$$srcport$"
48
49pass in on lo0 all label "$dstport"
50pass in on lo0 proto udp from any to any port = 29 label "$dstport"
51pass in on lo0 proto udp from any to any port != 29 label "$dstport$dstport"
52pass in on lo0 proto udp from any to any port > 29 label "x$dstportx$dstportx"
53
54pass in on lo0 all label "$proto"
55pass in on lo0 proto esp all label "$proto"
56pass in on lo0 proto esp all label "$proto$proto"
57pass in on lo0 proto esp all label "-$proto-$proto-"
58pass in on lo0 proto 166 all label "$proto"
59pass in on lo0 proto 166 all label "$proto$proto"
60pass in on lo0 proto 166 all label "_$proto_$proto_"
61
62pass in on lo0 all label "$nr"
63pass in on lo0 all label "$nr$nr"
64pass in on lo0 all label "%$nr%$nr%"
65
66pass in on lo0 proto tcp from 127.0.0.1 port = 30 to 127.0.0.2 port = 44 \
67    label "if $if proto $proto $srcaddr $srcport $dstaddr $dstport"
68