原始文献 / 论坛帖 / Re: Setting up multiple bitcoin machines behind NAT
Re: Setting up multiple bitcoin machines behind NAT
Bitcointalk · 2010-02-16 01:34:56 UTC
目前还没有端口号设置能做这个。这功能还没实现。你的 NAT 只能端口转发到其中一台电脑。(我之前说过 NAT 端口转换,但那行不通,其他节点不知道连那个端口。)
如果你想,顺手做个小优化,其余电脑可以这样跑:
bitcoin -connect=<第一台电脑的 IP>
这样它们的所有网络通信都走第一台电脑,不用每台都单独连外网拿同样的信息。省带宽,不过本来带宽用得也不多,除非你有成吨的电脑,否则无所谓。
为了第一台电脑挂掉时有冗余,可以让两台往外连,其余的连这两台。前两台正常跑,其余的这样跑:
bitcoin -connect=<IP1> -connect=<IP2>
英文原文
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>
