1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
Return-Path: <anton@sancoder.com>
Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138])
by lists.linuxfoundation.org (Postfix) with ESMTP id 5F9B3C002D
for <bitcoin-dev@lists.linuxfoundation.org>;
Sat, 23 Jul 2022 13:05:52 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtp1.osuosl.org (Postfix) with ESMTP id 0C9D884AE9
for <bitcoin-dev@lists.linuxfoundation.org>;
Sat, 23 Jul 2022 13:05:52 +0000 (UTC)
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 0C9D884AE9
Authentication-Results: smtp1.osuosl.org;
dkim=pass (2048-bit key, unprotected) header.d=sancoder.com
header.i=@sancoder.com header.a=rsa-sha256 header.s=fm3 header.b=J14QtsZX;
dkim=pass (2048-bit key,
unprotected) header.d=messagingengine.com header.i=@messagingengine.com
header.a=rsa-sha256 header.s=fm3 header.b=EuRzAaNA
X-Virus-Scanned: amavisd-new at osuosl.org
X-Spam-Flag: NO
X-Spam-Score: -2.802
X-Spam-Level:
X-Spam-Status: No, score=-2.802 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7,
SPF_HELO_PASS=-0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
Received: from smtp1.osuosl.org ([127.0.0.1])
by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 4o3VDkfjde_F
for <bitcoin-dev@lists.linuxfoundation.org>;
Sat, 23 Jul 2022 13:05:50 +0000 (UTC)
X-Greylist: delayed 00:05:03 by SQLgrey-1.8.0
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8B8AB84A2D
Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com
[64.147.123.19])
by smtp1.osuosl.org (Postfix) with ESMTPS id 8B8AB84A2D
for <bitcoin-dev@lists.linuxfoundation.org>;
Sat, 23 Jul 2022 13:05:50 +0000 (UTC)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
by mailout.west.internal (Postfix) with ESMTP id 87AEB32008FA
for <bitcoin-dev@lists.linuxfoundation.org>;
Sat, 23 Jul 2022 09:00:44 -0400 (EDT)
Received: from imap46 ([10.202.2.96])
by compute2.internal (MEProxy); Sat, 23 Jul 2022 09:00:44 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sancoder.com; h=
cc:content-type:date:date:from:from:in-reply-to:in-reply-to
:message-id:mime-version:references:reply-to:sender:subject
:subject:to:to; s=fm3; t=1658581244; x=1658667644; bh=YqvqGwlA/e
6gCagnd+hy/hVgIiqTyRdRzjq9aCUWpkk=; b=J14QtsZXqkltX5KucLESGfPTLf
4agHRocdAykVApu5XZ2VBbi/jhBo3gDVyxyngZ/RRspRGKxdm2OImcYrlfK9sgt2
AgRh+5ZvIzUGaOQn9CIlH/yk59YSnZukOzo0fmKpn/pQciSO71aUUMWu5rjqFu0J
LSC+PBebdcgekWuIB3RYfNeIF+xXveMBSZtHUWalZ5H/ySnZ1dAJVbBYj7+gOvX1
3sSxqkuadXK3fpLt0SzDymbewiDvZpqfTw47ngRo5DQD+wMhd9+Xl7U7rAmNy+wo
LR66mRrhLRkjj+OTu1UCbHhF0BUEeDOx5WL7EGbskcJuBeTE2o5O3UtZ/MYQ==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
messagingengine.com; h=cc:content-type:date:date:feedback-id
:feedback-id:from:from:in-reply-to:in-reply-to:message-id
:mime-version:references:reply-to:sender:subject:subject:to:to
:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=
fm3; t=1658581244; x=1658667644; bh=YqvqGwlA/e6gCagnd+hy/hVgIiqT
yRdRzjq9aCUWpkk=; b=EuRzAaNA1U4JNBcutbSjG22pancJoEDJATKh2AT1gfsQ
qIB5198ew+ffzlqzrtwFpGvLmF+T4iTw5EHuCYm32IVKlzOgC/7geX1g5+XlBszH
Zds9249y2EJu4QeTOJ+4oMPSdQaGqRSavHjMz4val9wLH+/VR1Pz101CWrpRrA0R
b8AOlMqapE5evb0rxqPjHTH6HTyaYLPoV07QsFQ3lNqNMcjobf7SgQ9kPKx3zYRS
neZJLMR+5NBDSREfJspUIFM994TueoZtDZdHZjHuWCblXz+v7RwkPwEWc1YN0KV3
k3omuCDroi/o1tzfv4lLal57EDTzMgBKYmkGNV5Ybg==
X-ME-Sender: <xms:-_DbYkzDcwpYfB5AEr_T9QC4W8lY6U_zQY-cYIZklR5svLL2OqV7vQ>
<xme:-_DbYoSLxq5ewaDgImBQcF78XuiZGrDMXNHIqIUB9xBKH86nrNAHP05k6ZLOIFgoJ
qpysbakkzeoO4kO>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddtgedgiedvucetufdoteggodetrfdotf
fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepfdetnhht
ohhnucfuhhgvvhgthhgvnhhkohdfuceorghnthhonhesshgrnhgtohguvghrrdgtohhmqe
enucggtffrrghtthgvrhhnpeeklefggfetudfghedtgeegjeduieeuleegfeelvefftdeg
tefgveeivefgieduieenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhlihhnuhigfh
houhhnuggrthhiohhnrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm
pehmrghilhhfrhhomheprghnthhonhesshgrnhgtohguvghrrdgtohhm
X-ME-Proxy: <xmx:-_DbYmVX8thpXaOvjfhX5ALmoDuU1lJkKYvdFVxE9wSSvr-myOxU8A>
<xmx:-_DbYihgs4WtGAIFmadArT1fleS3TGNurF-qcNIXvBh6Gv9DGskXNA>
<xmx:-_DbYmCl56bA540D7G9fWmJGMLeSjUI9f2MBaMX1hP82WVSWQVWFhw>
<xmx:_PDbYpPLhDmQtOxz_HSAJnNYpCWR7_yxO06XlQtmVmGlrPidVMFfiQ>
Feedback-ID: i4779463d:Fastmail
Received: by mailuser.nyi.internal (Postfix, from userid 501)
id 8C15F2A20075; Sat, 23 Jul 2022 09:00:43 -0400 (EDT)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.7.0-alpha0-757-gc3ad9c75d3-fm-20220722.001-gc3ad9c75
Mime-Version: 1.0
Message-Id: <2dcb598a-eac4-4fbf-8f38-a2b515331f8a@www.fastmail.com>
In-Reply-To: <3d864872-bc5c-40b0-9eab-2b38add2aa55@www.fastmail.com>
References: <3d864872-bc5c-40b0-9eab-2b38add2aa55@www.fastmail.com>
Date: Sat, 23 Jul 2022 06:00:22 -0700
From: "Anton Shevchenko" <anton@sancoder.com>
To: "Bitcoin Devs" <bitcoin-dev@lists.linuxfoundation.org>
Content-Type: text/plain
X-Mailman-Approved-At: Sat, 23 Jul 2022 13:10:22 +0000
Subject: Re: [bitcoin-dev] bitcoind -proxy=host:port doesn't work for
unroutable network
X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Bitcoin Protocol Discussion <bitcoin-dev.lists.linuxfoundation.org>
List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
<mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
X-List-Received-Date: Sat, 23 Jul 2022 13:05:52 -0000
Sorry to post here. Now I realize this is an implementation issue.
Raised an issue at github - https://github.com/bitcoin/bitcoin/issues/25684
-- Anton Shevchenko
On Fri, Jul 22, 2022, at 10:08 PM, Anton Shevchenko via bitcoin-dev wrote:
> Hello,
>
> Got unexpected behavior when trying to run bitcoind with -proxy setting.
> -proxy is used to connect to SOCKS5 proxy which is able to access some
> internal network.
> bitcoind is started with -noconnect option and network activity is
> absent (as it should be).
>
> Then I command bitcoin-cli to connect to node with address 10.x.y.z
> with the command
> bitcoin-cli addnode 10.x.y.z add
>
> Expected behavior is for bitcoind to initiate connection through proxy.
> Actual behavior is bitcoind trying to connect without using proxy.
>
> In the code:
> CConnman::ConnectNode calls GetProxy and GetProxy returns false because
> CNetAddr::GetNetwork returns NET_UNROUTABLE.
>
> My take is this is unexpected behavior at minimum and should be documented.
> Better way is to introduce another option just for the unroutable addresses:
> - connect locally (for compatibility reasons, default);
> - connect thru proxy;
> - don't connect to unroutable addresses.
>
>
> -- Anton Shevchenko
> _______________________________________________
> bitcoin-dev mailing list
> bitcoin-dev@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
|