-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The number of default tor instances we generate per IP is not changed. If you want to make use of this new limit you have to set tor_ports accordingly. add kitchen test cases with 4 relays per IP Tor directory authorities currently allow up to 4 relay per IPv4 and will increase the limit to 8. This commit breaks the tor_dedicatedExitIP feature for servers with more than two tor instances per IPv4. https://lists.torproject.org/pipermail/tor-relays/2023-February/020999.html https://gitlab.torproject.org/tpo/core/tor/-/issues/40744
- Loading branch information
Showing
6 changed files
with
101 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
test/integration/default/2publicIPs-guard4-metricsport.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
- hosts: all | ||
vars_files: | ||
- vars/dry-run-vars.yml | ||
vars: | ||
tor_maxPublicIPs: 2 | ||
tor_enableMetricsPort: True | ||
tor_gen_metricsport_htpasswd: True | ||
tor_metricsport_nginx_config_file: /tmp/web-reverse-proxy-{{ inventory_hostname }} | ||
tor_prometheus_scrape_file: /tmp/tor-prometheus-{{ inventory_hostname }} | ||
tor_gen_blackbox_scrape_config: True | ||
tor_ports: | ||
- orport: 9000 | ||
dirport: 9001 | ||
- orport: 9100 | ||
dirport: 9101 | ||
- orport: 9200 | ||
dirport: 9201 | ||
- orport: 9300 | ||
dirport: 9301 | ||
roles: | ||
- "{{ playbook_dir | regex_replace('test/integration/default$') }}" |
19 changes: 19 additions & 0 deletions
19
test/integration/default/6publicIPs-dedicatedExitIP-exit4-node.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- hosts: all | ||
vars_files: | ||
- vars/dry-run-vars.yml | ||
vars: | ||
tor_maxPublicIPs: 3 | ||
tor_dedicatedExitIP: True | ||
tor_ExitRelay: True | ||
tor_ports: | ||
- orport: 9000 | ||
dirport: 9001 | ||
- orport: 9100 | ||
dirport: 9101 | ||
- orport: 9200 | ||
dirport: 9201 | ||
- orport: 9300 | ||
dirport: 9301 | ||
roles: | ||
- "{{ playbook_dir | regex_replace('test/integration/default$') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
- hosts: all | ||
vars_files: | ||
- vars/dry-run-vars.yml | ||
vars: | ||
tor_ExitRelay: True | ||
tor_ports: | ||
- orport: 9000 | ||
dirport: 9001 | ||
- orport: 9100 | ||
dirport: 9101 | ||
- orport: 9200 | ||
dirport: 9201 | ||
- orport: 9300 | ||
dirport: 9301 | ||
roles: | ||
- "{{ playbook_dir | regex_replace('test/integration/default$') }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
- hosts: all | ||
vars_files: | ||
- vars/dry-run-vars.yml | ||
vars: | ||
tor_ports: | ||
- orport: 9000 | ||
dirport: 9001 | ||
- orport: 9100 | ||
dirport: 9101 | ||
- orport: 9200 | ||
dirport: 9201 | ||
- orport: 9300 | ||
dirport: 9301 | ||
roles: | ||
- "{{ playbook_dir | regex_replace('test/integration/default$') }}" |