da34cfe6c9
This pull request introduces a set of Node.js scripts for performing A/B comparison of websteps and webconnectivity as described in https://github.com/ooni/probe/issues/1805. Rather than using Jafar, I ended up using `miniooni`'s `--censor` command line flag introduced in [v3.12.0-alpha.1](https://github.com/ooni/probe-cli/releases/tag/v3.12.0-alpha.1). The main reason for doing so is that it's simpler to run tests without requiring root access and Linux _and_ Docker (e.g., I did not develop part of this diff using Linux). Additionally, I choose to use Node.js rather than extending the existing Python framework for QA, because I found Node.js easier when working with JSON data.
18 lines
554 B
JavaScript
18 lines
554 B
JavaScript
// This file contains helpers for describing blocking rules.
|
|
|
|
// hijackPopularDNSServers returns an object containing the rules
|
|
// for hijacking popular DNS servers with `miniooni --censor`.
|
|
export function hijackPopularDNSServers() {
|
|
return {
|
|
// cloudflare
|
|
"1.1.1.1:53/udp": "hijack-dns",
|
|
"1.0.0.1:53/udp": "hijack-dns",
|
|
// google
|
|
"8.8.8.8:53/udp": "hijack-dns",
|
|
"8.8.4.4:53/udp": "hijack-dns",
|
|
// quad9
|
|
"9.9.9.9:53/udp": "hijack-dns",
|
|
"9.9.9.10:53/udp": "hijack-dns",
|
|
}
|
|
}
|