3 module-config: "respip validator iterator"
4 target-fetch-policy: "0 0 0 0 0"
7 access-control: 192.0.0.0/8 allow
10 name: "rpz.example.com."
12 TEMPFILE_NAME rpz.example.com
13 TEMPFILE_CONTENTS rpz.example.com
15 rpz 3600 IN SOA ns1.rpz.example.com. hostmaster.rpz.example.com. (
16 1379078166 28800 7200 604800 7200 )
17 3600 IN NS ns1.rpz.example.com.
18 3600 IN NS ns2.rpz.example.com.
19 $ORIGIN rpz.example.com.
20 24.0.0.0.192.rpz-client-ip CNAME .
21 24.0.1.0.192.rpz-client-ip CNAME *.
22 24.0.2.0.192.rpz-client-ip CNAME rpz-drop.
23 24.0.3.0.192.rpz-client-ip CNAME rpz-passthru.
24 24.0.4.0.192.rpz-client-ip CNAME rpz-tcp-only.
25 24.0.5.0.192.rpz-client-ip A 127.0.0.1
26 24.0.5.0.192.rpz-client-ip TXT "42"
31 stub-addr: 10.20.30.40
34 SCENARIO_BEGIN Test RPZ client ip triggers
39 MATCH opcode qtype qname
51 MATCH opcode qtype qname
57 a.a. IN TXT "upstream txt rr a.a."
61 MATCH opcode qtype qname
71 MATCH opcode qtype qname
77 a.a. IN AAAA 2001:db8::123
82 ; unrelated client ip address -- passthru
94 REPLY QR RD RA NOERROR
98 a.a. IN TXT "upstream txt rr a.a."
103 STEP 20 QUERY ADDRESS 192.0.0.1
113 REPLY QR AA RD RA NXDOMAIN
121 STEP 30 QUERY ADDRESS 192.0.1.1
131 REPLY QR AA RD RA NOERROR
139 STEP 40 QUERY ADDRESS 192.0.3.1
149 REPLY QR RD RA NOERROR
153 a.a. IN TXT "upstream txt rr a.a."
156 ; should be TRUNCATED
158 STEP 50 QUERY ADDRESS 192.0.4.1
168 REPLY QR AA TC RD RA NOERROR
174 ; should not be TRUNCATED via TCP
176 STEP 52 QUERY ADDRESS 192.0.4.1
187 REPLY QR RD RA NOERROR
191 a.a. IN TXT "upstream txt rr a.a."
194 ; should be synthesized
196 STEP 60 QUERY ADDRESS 192.0.5.1
206 REPLY QR AA RD RA NOERROR
212 rpz.example.com. 3600 IN SOA ns1.rpz.example.com. hostmaster.rpz.example.com. ( 1379078166 28800 7200 604800 7200 )
215 ; should be synthesized
217 STEP 62 QUERY ADDRESS 192.0.5.1
227 REPLY QR AA RD RA NOERROR
233 rpz.example.com. 3600 IN SOA ns1.rpz.example.com. hostmaster.rpz.example.com. ( 1379078166 28800 7200 604800 7200 )
236 ; should be synthesized NODATA
238 STEP 64 QUERY ADDRESS 192.0.5.1
248 REPLY QR AA RD RA NOERROR
252 rpz.example.com. 3600 IN SOA ns1.rpz.example.com. hostmaster.rpz.example.com. ( 1379078166 28800 7200 604800 7200 )
257 STEP 90 QUERY ADDRESS 192.0.2.1