[tahoe-dev] Friendnet tub.location and tub.port

Daira Hopwood davidsarah at leastauthority.com
Wed Jul 17 14:27:15 UTC 2013


On 12/07/13 10:48, Anders Genell wrote:
> Dear list!
> 
> I posted a related question recently and got som useful answers, but I am still somewhat confused as to what is required concerning incoming wan access for friendnet nodes. 
> 
> Our original idea was to just set tub.port on all nodes and make sure that port was forwarded through any routers/firewalls along the way. We would then expect the introducer to detect the IPs of incoming connections from nodes and announce each node with that IP combined with the corresponding port number, as set in each node's tub.port. It would however seem like we actually need to specifically set the tub.location IP address of each node for the nodes to "see" eachother. Without it all nodes see the introducer, and the introducer sees all nodes but the nodes don't see eachother. 
> 
> There have been suggestions here to let the introducer(s) handle IPs, and if I understand correctly that would work in more or less the way we assumed it already did?
> 
> Right now we have uglyhacked a script to update the tahoe.cfg file and restart the node whenever the IP changes, by regularly checking e.g. myexternalip.com. Most nodes will run on Raspberry Pi hardware so a bash script is sufficient, but a bit of python should make it more platform independent, I suppose. 
> 
> My question is, should we need to set both tub.location and tub.port?
> Should we need to uglyhack to update IP alternatively use som dyndns equivalent?
> The introducer detects incoming IPs anyway, couldn't that be reported back to the node?

Can you post the uglyhack script so that we can see precisely what it does,
and whether it would be worth Tahoe-LAFS doing something equivalent
automatically?

Yes, the introducer could report IPs back to the node; that is
https://tahoe-lafs.org/trac/tahoe-lafs/ticket/50 .

-- 
Daira Hopwood ⚥

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20130717/ba2d3dce/attachment.pgp>


More information about the tahoe-dev mailing list