summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pfr6.ok
blob: 14da64a8d6b6eb70994f0e28df08b5d9ea97f868 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# create
# pass add -n 1.1.1.1 !1.1.1.2 10.10/16 !10.11/16 ::1 !::2
6/6 addresses added (dummy).
# pass add -nf-
6/6 addresses added (dummy).
# pass add -nqv 1.1.1.1 !1.1.1.2 10.10/16 !10.11/16 ::1 !::2
A  1.1.1.1
A  10.10.0.0/16
A  ::1
A !1.1.1.2
A !10.11.0.0/16
A !::2
# pass add -nqvv 1.1.1.1 !1.1.1.2 10.10/16 !10.11/16 ::1 !::2
A  1.1.1.1
A  10.10.0.0/16
A  ::1
A !1.1.1.2
A !10.11.0.0/16
A !::2
# pass add 1.1.1.1 !1.1.1.2 10.10/16 !10.11/16 ::1 !::2
6/6 addresses added.
# pass show 
   1.1.1.1
   10.10.0.0/16
   ::1
  !1.1.1.2
  !10.11.0.0/16
  !::2
# pass replace -n 1.1.1.1 !1.1.1.2 !!1.1.1.3 !!!1.1.1.4
2 addresses added (dummy).
4 addresses deleted (dummy).
# pass replace -nf-
2 addresses added (dummy).
4 addresses deleted (dummy).
# pass replace -nqv 1.1.1.1 !1.1.1.2 !!1.1.1.3 !!!1.1.1.4
A  1.1.1.3
A !1.1.1.4
D  10.10.0.0/16
D  ::1
D !10.11.0.0/16
D !::2
# pass replace -nqvv 1.1.1.1 !1.1.1.2 !!1.1.1.3 !!!1.1.1.4
   1.1.1.1
  !1.1.1.2
A  1.1.1.3
A !1.1.1.4
D  10.10.0.0/16
D  ::1
D !10.11.0.0/16
D !::2
# pass replace 1.1.1.1 !1.1.1.2 !!1.1.1.3 !!!1.1.1.4
2 addresses added.
4 addresses deleted.
# pass show 
   1.1.1.1
   1.1.1.3
  !1.1.1.2
  !1.1.1.4
# pass replace -n fe80::/16 !fe81::/16 !!fe82::/16 !!!fe83::/16
4 addresses added (dummy).
4 addresses deleted (dummy).
# pass replace -nf-
4 addresses added (dummy).
4 addresses deleted (dummy).
# pass replace -nqv fe80::/16 !fe81::/16 !!fe82::/16 !!!fe83::/16
A  fe80::/16
A  fe82::/16
A !fe81::/16
A !fe83::/16
D  1.1.1.1
D  1.1.1.3
D !1.1.1.2
D !1.1.1.4
# pass replace -nqvv fe80::/16 !fe81::/16 !!fe82::/16 !!!fe83::/16
A  fe80::/16
A  fe82::/16
A !fe81::/16
A !fe83::/16
D  1.1.1.1
D  1.1.1.3
D !1.1.1.2
D !1.1.1.4
# pass replace fe80::/16 !fe81::/16 !!fe82::/16 !!!fe83::/16
4 addresses added.
4 addresses deleted.
# pass show 
   fe80::/16
   fe82::/16
  !fe81::/16
  !fe83::/16
# pass replace -n 10/8 !10.10/16 10.10.10/24 !10.10.10.10
4 addresses added (dummy).
4 addresses deleted (dummy).
# pass replace -nf-
4 addresses added (dummy).
4 addresses deleted (dummy).
# pass replace -nqv 10/8 !10.10/16 10.10.10/24 !10.10.10.10
A  10.0.0.0/8
A  10.10.10.0/24
A !10.10.0.0/16
A !10.10.10.10
D  fe80::/16
D  fe82::/16
D !fe81::/16
D !fe83::/16
# pass replace -nqvv 10/8 !10.10/16 10.10.10/24 !10.10.10.10
A  10.0.0.0/8
A  10.10.10.0/24
A !10.10.0.0/16
A !10.10.10.10
D  fe80::/16
D  fe82::/16
D !fe81::/16
D !fe83::/16
# pass replace 10/8 !10.10/16 10.10.10/24 !10.10.10.10
4 addresses added.
4 addresses deleted.
# pass add -n fe80::/16 !fe80:fe80::/32 fe80:fe80:fe80::/48
3/3 addresses added (dummy).
# pass add -nf-
3/3 addresses added (dummy).
# pass add -nqv fe80::/16 !fe80:fe80::/32 fe80:fe80:fe80::/48
A  fe80::/16
A  fe80:fe80:fe80::/48
A !fe80:fe80::/32
# pass add -nqvv fe80::/16 !fe80:fe80::/32 fe80:fe80:fe80::/48
A  fe80::/16
A  fe80:fe80:fe80::/48
A !fe80:fe80::/32
# pass add fe80::/16 !fe80:fe80::/32 fe80:fe80:fe80::/48
3/3 addresses added.
# pass show 
   10.0.0.0/8
   10.10.10.0/24
   fe80::/16
   fe80:fe80:fe80::/48
  !10.10.0.0/16
  !10.10.10.10
  !fe80:fe80::/32
# pass test 10.1.1.1 10.10.10.1
2/2 addresses match.
# fail test 11.1.1.1 10.10.1.1 10.10.10.10
0/3 addresses match.
# fail test 10.1.1.1 11.1.1.1
1/2 addresses match.
# kill
1 tables deleted.
rules cleared
nat cleared
ktable: 28 allocated, 28 released, 0 leaked.
kentry: 95 allocated, 95 released, 0 leaked.