Bitcointalk · Setting up multiple bitcoin machines behind NAT

中本聪,2010 年 2 月 16 日

SN-0303 已核对来源,附原文与上下文。

阅读语言
中文译文

目前还没有实现这个功能的端口设置。这是尚未实现的功能。你只能把 NAT 的端口转发设到其中一台计算机。(我之前说过 NAT 端口转换什么的,但那行不通,其他节点不知道要连到那个端口)

倘若愿意,作为一个小优化,你可以让其余计算机这样运行: bitcoin -connect=<第一台计算机的 IP>

这样它们的全部网络通信都经由第一台计算机,而不必各自单独连到网上取同样的信息。这能节省带宽,不过一开始带宽占用就不大,故除非你有海量计算机,否则影响不大。

为了在第一台宕机时保有冗余,可以让两台向外连接、其余连接到这两台。头两台正常运行,其余这样运行: bitcoin -connect= -connect=

ORIGINAL · 英文原文
Right now there isn't a port number setting to do that.  It's a feature yet to be implemented.  You can only set up your NAT to port-forward to one of the computers.  (I said something earlier about NAT port translation, but that wouldn't work, other nodes wouldn't know to connect to that port)

If you want, as a small optimization, you could run the rest of your computers as:
bitcoin -connect=<the IP of the first computer>

so they get all their network communication from the first computer and don't all connect over the net individually for the same information.  This saves bandwidth, although it doesn't use much bandwidth to begin with, so it wouldn't really matter unless you had tons of computers.

For redundancy in case the first computer goes down, you could have two that connect out and the rest connect to both of them.  The first two are run normally, the rest are run like:
bitcoin -connect=<IP1> -connect=<IP2>
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0303