From 406e41642938f7f17abd186d85fd97a0877bd617 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20F=C3=A6r=C3=B8y?= Date: Tue, 21 May 2019 12:30:15 +0200 Subject: [PATCH] Split the TOR_PT_OUTBOUND_BIND_ADDRESS into a V4/V6 variant. --- pt-spec.txt | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/pt-spec.txt b/pt-spec.txt index 0a8548f..5fefff1 100644 --- a/pt-spec.txt +++ b/pt-spec.txt @@ -217,27 +217,41 @@ Table of Contents TOR_PT_EXIT_ON_STDIN_CLOSE=1 - "TOR_PT_OUTBOUND_BIND_ADDRESS" + "TOR_PT_OUTBOUND_BIND_ADDRESS_V4" - Specifies an IP address that the PT proxy SHOULD use as source address for - outgoing IP packets. This feature allows people with multiple network - interfaces to specify explicitly which interface they prefer the PT proxy to use. + Specifies an IPv4 IP address that the PT proxy SHOULD use as source address for + outgoing IPv4 IP packets. This feature allows people with multiple network + interfaces to specify explicitly which interface they prefer the PT proxy to + use. If this value is unset or empty, the PT proxy MUST use the default source address for outgoing connections. This setting MUST be ignored for connections to - loopback addresses (127.0.0.0/8 and [::1]). + loopback addresses (127.0.0.0/8). + + Example: + + TOR_PT_OUTBOUND_BIND_ADDRESS_V4=203.0.113.4 + + "TOR_PT_OUTBOUND_BIND_ADDRESS_V6" + + Specifies an IPv6 IP address that the PT proxy SHOULD use as source address for + outgoing IPv6 IP packets. This feature allows people with multiple network + interfaces to specify explicitly which interface they prefer the PT proxy to + use. + + If this value is unset or empty, the PT proxy MUST use the default source + address for outgoing connections. + + This setting MUST be ignored for connections to + loopback addresses ([::1]). IPv6 addresses MUST always be wrapped in square brackets. - Example with IPv4: + Example:: - TOR_PT_OUTBOUND_BIND_ADDRESS=203.0.113.4 - - Example with IPv6: - - TOR_PT_OUTBOUND_BIND_ADDRESS=[2001:db8::4] + TOR_PT_OUTBOUND_BIND_ADDRESS_V6=[2001:db8::4] 3.2.2. Pluggable Transport Client Environment Variables