tor/scripts/maint
Alexander Færøy 5f61e19d8a Expose TOR_PT_OUTBOUND_BIND_ADDRESS_{V4,V6} to Pluggable Transports.
This patch adds support for exposing the environment variables
`TOR_PT_OUTBOUND_BIND_ADDRESS_V4` and `TOR_PT_OUTBOUND_BIND_ADDRESS_V6` to
Pluggable Transport proccesses. These two values will contain the IPv4
and IPv6 address that the user have specified in torrc that they wish
the PT to use for all outgoing IP packets.

It is important to note here that it is up to the indvidual Pluggable
Transport if they are willing to honor these values or ignore them
completely.

One can test this feature using the following dummy PT written in POSIX
shell script:

    #!/bin/sh

    echo "LOG SEVERITY=warning MESSAGE=\"Value for IPv4: ${TOR_PT_OUTBOUND_BIND_ADDRESS_V4}\""
    echo "LOG SEVERITY=warning MESSAGE=\"Value for IPv6: ${TOR_PT_OUTBOUND_BIND_ADDRESS_V6}\""

    while true ; do
        sleep 1
    done

with the following entries in your torrc:

    OutboundBindAddressPT 203.0.113.4
    OutboundBindAddress 203.0.113.5
    OutboundBindAddressPT 2001:db8::4
    OutboundBindAddress 2001:db8::5

See: https://bugs.torproject.org/5304
2020-10-06 09:30:11 -04:00
..
checkspace_tests checkSpace: remove the nosplabel test. 2020-02-06 14:33:05 -05:00
practracker Expose TOR_PT_OUTBOUND_BIND_ADDRESS_{V4,V6} to Pluggable Transports. 2020-10-06 09:30:11 -04:00
add_c_file.py add_c_file: Replace asserts with exceptions 2020-01-20 13:27:40 +10:00
annotate_ifdef_directives.py Stop assuming that /usr/bin/python exists 2020-02-16 21:58:01 +02:00
check_config_macros.pl Script to detect unused autoconf outputs 2014-05-07 03:56:51 -04:00
checkIncludes.py Stop assuming that /usr/bin/python exists 2020-02-16 21:58:01 +02:00
checkLogs.pl Clean the contrib directory with torch and machete. 2014-04-28 11:34:53 -04:00
checkManpageAlpha.py Script to check sorting of manpage entries 2020-02-14 11:02:16 -06:00
checkOptionDocs.pl.in doc: Move manpages into doc/man/ 2020-07-14 09:02:03 -04:00
checkShellScripts.sh scripts/maint: Remove obsolete generated tor.sh 2020-06-08 01:41:36 +00:00
checkSpace.pl checkSpace: permit wide lines for LCOV_EXCL 2020-02-06 16:25:56 -05:00
checkSpaceTest.sh Have checkSpaceTest.sh exit as skipped when on Windows 2019-12-03 12:56:50 +10:00
code-format.sh Improve our clang-format.sh script 2020-06-11 10:28:03 -04:00
codetool.py Add a dire warning about not reformatting the whole codebase yet. 2020-02-12 18:52:35 -05:00
findMergedChanges.pl Clean the contrib directory with torch and machete. 2014-04-28 11:34:53 -04:00
format_changelog.py Use gitlab-friendly URLs when formatting changelogs as HTML 2020-07-17 09:31:32 -04:00
lintChanges.py Merge branch 'tor-github/pr/1743' 2020-02-18 09:06:13 -05:00
locatemissingdoxygen.py Stop assuming that /usr/bin/python exists 2020-02-16 21:58:01 +02:00
rectify_include_paths.py scripts: Ignore editor temporary files 2020-04-03 19:16:57 +10:00
redox.py Stop assuming that /usr/bin/python exists 2020-02-16 21:58:01 +02:00
rename_c_identifier.py scripts: Fix rename_c_identifier.py uncommitted warning 2020-06-30 13:48:22 -04:00
run_calltool.sh Fix shellcheck issue SC2217 in run_calltool.sh 2018-10-29 11:37:16 +02:00
run_check_subsystem_order.sh Fix "run_check_subsystem_order.sh" to use $PYTHON. 2020-08-11 11:01:31 -04:00
sortChanges.py Stop assuming that /usr/bin/python exists 2020-02-16 21:58:01 +02:00
update_versions.py python: Add __future__ imports for python 3 compatibility 2019-12-12 15:58:51 +10:00
updateCopyright.pl updateCopyright: look at the current year. 2019-05-20 12:02:20 -04:00
updateRustDependencies.sh Fix SC2230 warning 2018-11-20 16:57:57 +02:00