Re: network from scratch

t3sserakt <[email protected]> Tue, 1 Nov 2022 12:28:36 +0000
Newsgroups gmane.network.gnunet.general
Message-ID <[email protected]>
On 01.11.22 13:24, [email protected] wrote:
> On Tue, Nov 01, 2022 at 12:18:21PM +0000, t3sserakt wrote:
>> On 01.11.22 12:35, [email protected] wrote:
>>> On Tue, Nov 01, 2022 at 09:19:38AM +0000, t3sserakt wrote:
>>>>> ------------------------------
>>>>>
>>>>> Message: 2
>>>>> Date: Mon, 31 Oct 2022 15:45:15 +0000
>>>>> From:[email protected]
>>>>> To: Martin Schanzenbach<[email protected]>
>>>>> Cc:[email protected],[email protected]
>>>>> Subject: Re: network from scratch
>>>>> Message-ID:<Y1/[email protected]>
>>>>> Content-Type: text/plain; charset=us-ascii
>>>>>
>>>>> Aha so adding -f to the gnunet-peer -s -g makes it output the hello.
>>>>>
>>>>> And that URI is accepted by gnunet-peer -p
>>>>>
>>>>> Now the peer is listed with gnunet-peer (-f)
>>>>>
>>>>> Now peer A and B has both peer A and B in their peerinfo lists.
>>>>>
>>>>> However, the peer A is still not being sent by the hostlist (after retstarting
>>>>> the nodes), still only the Y924 is being sent.
>>>>>
>>>>> Then I changed the URIs fromgnunet://hello-friend  tognunet://hello.
>>>>> Now the peers get sent with the hostlist.
>>>> I do not get why - in F2F mode - you are doing that. What is the content of
>>>> friends.txt?
>>>>
>>> AFAIU, the friends.txt file is supposed to hold one public key per line
>>> of nodes that one allows connections from.
>> Means peer A has the hello of peer B in its friends.txt and vice versa?!
>>>> Can you please elaborate more on your use case.
>>>>
>>> Simply to bootstrap a fully private network.
>>>
>>> What made it problematic was the forced connection of the bundled peer.
>>> That's why I tried F2F mode, but it turns out that comes with its own caveats in
>>> terms of how the modules behave.
>>>
>>> The solution was to, as Martin suggested, delete the entry in the
>>> $PREFIX/share/gnunet/hellos/* dir. When starting two peers from scratch
>>> they automatically find each other (at least when running on the same
>>> interface, that's what i tried so far). I don't think the hellos dir is clearly
>>> documented, or if it is, I missed it...
>> My expectation was, that theĀ  entries in the friends.txt should be
>> sufficient and no hostlist server is needed. I will check in the code.
>>
> Does that mean that friends.txt need to contain hello uris and NOT just
> the public keys?
>
> This is not really documented either, at least sufficiently for my
> feeble mind.
My fault. You are right. Only the peer public keys.
OpenPGP_0x524982A0100F7490.asc (application/pgp-keys, 3 KB)
-----BEGIN PGP PUBLIC KEY BLOCK-----

xsFNBFjU+EYBEACWxwqPk31erHNOsh4XEh/7wrwXodo5rGWwlmjfSdilGO7nWCLm
UWhZwxA4g7amO6V4xFEf4WUETywg43eEgD+IUrMEuKRnD3SXRZGSkT61YiLkvBy9
VsVWmYEz7k1qElVSmgb/iy8yIVmMXO+y8s+rWgI4xgiT+byYFBZ0BGa3yKtt+P3W
tnDwwVE1em35KAvzjc8lQr5vxescJ2BcDzQuJ8sRT32Sq0RZ9rer3QnrIIYxlGUV
V/Z18SxnqoN3P5o6DomkfEjEmrt6VCn7JqCVarbPQ4Hw92EuVSP3eVyYcVMbxV1P
sPl/ZmPqbQHCfk5AjqyualHJPARK53ahtLsbxDvqcuX8cD3nc8lvR14TA0qfoloU
G4BApXYN171fVuEuZCLk+yX9JAFFw84IhaoIdmgCbdKkyhaDgsHbdAfJzmHn38fo
HK/RIYLp4LZOMMJ/h9k3c0QpJ/WZb7MPsgp6gsRbpDolRUYx61O2Kj8p4f2d7K2z
F6Vpp5OnugKmDOO2rIG64BrJh4exASigdvVcLPsytopup5YLdnq9ddh+zD/xDEzV
+iZhYCsNdAbOIRAkI2LR/F1aEFuv12+duGnwsmrgjDisT10zavf7tlHoOQP0B/sc
jhtLfEWo3JNPPmt9p7IMY8hIcsoEU66KnsXLlZGYp6b/UYPcFvON9GsU2wARAQAB
zRp0M3NzZXJha3QgPHQzc3NAcG9zdGVvLmRlPsLBdwQTAQgAIQUCWNT4RgIbAwUL
CQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAKCRBSSYKgEA90kGyJEACQf50mYFuxz6ex
FmX1x4zcxtZHVfbM2QZ4aG+brOH3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