-
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.
support multiple IP addresses for use with OutboundBindAddressExit
before this commit we used a single IP address for all tor instances on a server for exiting if tor_dedicatedExitIP was enabled, with this commit multiple exit IP addresses are used. By distributing the traffic across multiple source IP addresses this should help reduce the negative effects of bad traffic spoiling the source IP for many tor users. There are two cases to consider: - user runs one tor instance per IP (tor_ports has one entry): "loop_idx" can be directly used as an index to the tor_available_public_ipv4/6 arrays - user runs two tor instances per IP (tor_ports has two entries): in this case we need to mangle "loop_idx" before we used it as an index to the IP address arrays This change includes also the kitchen test suites for this feature: t-exit-6publicIPs-dedicatedExitIP-2instPerIP t-exit-6publicIPs-dedicatedExitIP-singleInstPerIP
- Loading branch information
Showing
7 changed files
with
71 additions
and
17 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
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
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
10 changes: 10 additions & 0 deletions
10
test/integration/default/6publicIPs-dedicatedExitIP-2instPerIP-exit-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,10 @@ | ||
--- | ||
- hosts: all | ||
vars_files: | ||
- vars/dry-run-vars.yml | ||
vars: | ||
- tor_maxPublicIPs: 3 | ||
- tor_dedicatedExitIP: True | ||
- tor_ExitRelay: True | ||
roles: | ||
- ansible-relayor |
13 changes: 13 additions & 0 deletions
13
test/integration/default/6publicIPs-dedicatedExitIP-singleInstPerIP-exit-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,13 @@ | ||
--- | ||
- 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 | ||
roles: | ||
- ansible-relayor |
this bug (missing space after OutboundBindAddressExit) was avoidable if we had kitchen IPv6 test coverage #158