Skip to content

Commit 495f2cc

Browse files
committed
update risepuvpn spec
1 parent 22c74f2 commit 495f2cc

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

nettests/ts-026-riseupvpn.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Specification version number
22

3-
2021-02-15-000
3+
2023-03-20-000
44

55
* _status_: current
66

@@ -20,7 +20,7 @@ The ability to detect both if the RiseupVPN API and its gateways can be reached
2020

2121
## Import document or import data format
2222

23-
None. In the next iteration we will allow the user to specify a provider, the default is riseup.net.
23+
None. We aim to allow the user to specify a provider in a future version, the default is riseup.net.
2424

2525
# Test description
2626

@@ -46,15 +46,15 @@ The locations of RiseupVPNs endpoints are:
4646

4747
* https://api.black.riseup.net:443/3/config/eip-service.json fetched with GET request, contains gateway addresses, available transports, location, ports, etc.). Versions is 3 here.
4848

49-
* https://api.black.riseup.net:9001/json contains the the client's IP address, geolocation and gives a list of gateways that's the closest and/or under less stress (from other users). This can be different and change.
49+
* https://api.black.riseup.net:9001/json (hereafter referred to as geo service) contains the the client's IP address, geolocation and gives a list of gateways that's the closest and/or under less stress (from other users). This can be different and change.
5050

51-
We consider RiseupVPN API to be blocked when we can't fetch a valid self-signed x509 certificate or we don't get a valid HTTP response. If fetching a valid certificate failed, the experiment will skip all subsequent tests.
51+
We consider RiseupVPN API to be blocked when we can't fetch a valid self-signed x509 certificate or we don't get a valid HTTP response. If fetching a valid certificate failed, the experiment continues without TLS verification. If the API was not reachable, a tunnel through Tor and Snowflake is attempted. That circumvention strategy simulates the actual behavior of RiseupVPNs clients. If the API is still unreachable via Tor and Snowflake, the subsequent gateway tests are skipped because the required configuration data to reach them is missing.
5252

5353
Example output if API endpoints couldn't be reached by HTTP GET requests
5454

5555
```json
5656
{
57-
"api_failure": "FAILURE STRING",
57+
"api_failure": ["FAILURE STRING"],
5858
"api_status": "blocked",
5959
"ca_cert_status": true,
6060
}
@@ -72,7 +72,8 @@ If all parts of the API are functional and reachable then we write:
7272

7373
## RiseupVPN gateways test
7474

75-
If the provider API is reachable, it provides a JSON-file which contains the IP addresses and capabilites of the VPN gateways. The reachability of gateways will be tested depending on their capabilities as described by the provider (ports, OpenVPN, obfs4) by performing TCP handshakes. If a TCP handshake fails we assume the corresponding port and transport of that gateway to be blocked and add it to the list of failing gateways.
75+
If the provider API is reachable, it provides a JSON-file which contains the IP addresses and capabilites of the VPN gateways. A subset of max. three gateways will be tested: gateways that are not overloaded (deduced from the geo service) and which are part of the top two locations having most redundancy regarding obfs4 bridges.
76+
The reachability of gateways will be tested depending on their capabilities as described by the provider (ports, OpenVPN, obfs4) by performing TCP handshakes. If a TCP handshake fails we assume the corresponding port and transport of that gateway to be blocked and add it to the list of failing gateways.
7677
We consider a transport to be accessible if it was possible to connect at least to one gateway port providing that transport.
7778

7879
Example output for reported blocked gateways:
@@ -110,7 +111,7 @@ If none of the gateways are blocked then we write:
110111
}
111112
```
112113

113-
If for whatever reason one or more gateway servers are overloaded, suffer a network outage or aren't reachable for other reasons, then the corresponding gateway statuses will be still shown as blocked. In order to avoid these false positives the **transport_status should be considered as the main indicator for successful censorship attempts of the VPN**.
114+
If for whatever reason one or more gateway servers suffer a network outage or aren't reachable for other reasons, then the corresponding gateway statuses will be still shown as blocked. In order to avoid these false positives the **transport_status should be considered as the main indicator for successful censorship attempts of the VPN**.
114115

115116
# Expected output
116117

@@ -130,7 +131,7 @@ JSON fields described above.
130131

131132
```
132133
{
133-
"api_failure": "FAILURE STRING" | null,
134+
"api_failure": ["FAILURE STRING"] | null,
134135
"api_status": "blocked"| "ok",
135136
"ca_cert_status": true | false,
136137
"transport_status":{
@@ -147,7 +148,10 @@ JSON fields described above.
147148
}
148149
```
149150

150-
`api_failure` can be any error string flagged with `(PE)` defined in `df-007-errors` or `invalid_ca` in case fetching a valid ca certificate failed.
151+
`api_failure` can be any error string flagged with `(PE)` defined in `df-007-errors` or:
152+
* `invalid_ca` in case the fetched ca certificate is invalid
153+
* `invalid_eipservice_response` in case the fetched eip-service.json is invalid
154+
* `invalid_geoservice_response` in case the fetched geo service response is invalid
151155

152156
## Possible conclusions
153157

0 commit comments

Comments
 (0)