Re: issue with connecting two local peers

gogo gogo <[email protected]> Sat, 14 Dec 2024 22:30:11 +0100
Newsgroups gmane.network.gnunet.general
Message-ID <CAHYwvPjPPXW6tUprBV7BOVqhGMtEG+1ekxXApOiE-gmkz98NnQ@mail.gmail.com>
--000000000000aa685d062941a738
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

notice that the command

gnunet-dht-get -c peer2.conf -k KEY

correctly receive its own put request.


Le sam. 14 d=C3=A9c. 2024 =C3=A0 22:20, gogo gogo <[email protected]> a =
=C3=A9crit :

> Hello,
>
> Sorry for insisting so much! I just can not wait! I would love to use
> gnunet! :)
>
> Le sam. 14 d=C3=A9c. 2024 =C3=A0 21:16, gogo gogo <[email protected]> =
a =C3=A9crit :
>
>> I really would love to see a configuration file example please!
>>
>>
>> - for example for the socket, do you recommend:
>> UNIXPATH =3D /tmp/gnunet-service-transport.sock
>>
>> but then for which peer(s)
>>
>> - I doubt for the second point
>>
>> - Could you tell me how please?
>>
>> - I am confused
>>
>> - I have already set http://localhost:8080/ . Should I do same for the s=
econd peers peer2.conf please?
>>
>>
>> Le sam. 14 d=C3=A9c. 2024 =C3=A0 21:01, gogo gogo <[email protected]>=
 a =C3=A9crit :
>>
>>> Hi maxime,
>>>
>>> I think there is already an official doc I was referring to
>>> https://docs.gnunet.org/latest/developers/tutorial.html#how-to-connect-=
manually
>>> and this is where I am stuck.
>>>
>>> Could you provide a configuration file example please?
>>>
>>> Le sam. 14 d=C3=A9c. 2024 =C3=A0 18:12, Maxime Devos <maximedevos@telen=
et.be> a
>>> =C3=A9crit :
>>>
>>>> If you wish to start multiple peers on one machine, you probably need
>>>> to adjust the configuration more.
>>>>
>>>>
>>>>
>>>>    - If things are still the same as when I last worked with this (and
>>>>    IIRC), some things are _*outside*_ GNUNET_HOME. There are some
>>>>    sockets =E2=80=A6 somewhere (I think under /tmp? Not sure where.). =
So, GNUnet might
>>>>    be getting confused from this.
>>>>    - Maybe wait a few seconds after doing =E2=80=98gnunet-arm [=E2=80=
=A6] -s=E2=80=99, instead
>>>>    of the &&. Maybe the TCP or UDP transports haven=E2=80=99t choosen =
a port yet? I=E2=80=99m
>>>>    not sure this is how it works though =E2=80=93 not familiar with th=
is, this is
>>>>    speculation.
>>>>    - I=E2=80=99m not sure if UDP ports are choosen automatically. If t=
hey
>>>>    aren=E2=80=99t, then there might be some kind of port conflic. In c=
ase of UDP
>>>>    (unidirectional), then the peers would be unable to verify each oth=
ers
>>>>    existence.
>>>>    - Even if they are choosen automatically, this automation probably
>>>>    had NAT-punching in mind, not this.
>>>>    - For an isolated network, I think you also need to tell GNUnet to
>>>>    bind to =E2=80=98localhost=E2=80=99 instead of everything.
>>>>
>>>>
>>>>
>>>> It would be nice to have official documentation on setting up this kin=
d
>>>> isolated one-machine, multiple peers network. It seems quite convenien=
t for
>>>> safely testing things out. (Though for full isolation, a =E2=80=98unix=
=E2=80=99 transport
>>>> would be needed.)
>>>>
>>>>
>>>>
>>>> Best regards,
>>>> Maxime Devos
>>>>
>>>

--000000000000aa685d062941a738
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>notice that the command</div><div><br></div><div><pre=
>gnunet-dht-get -c peer2.conf -k KEY<br><br></pre><pre>correctly receive it=
s own put request.<br></pre></div></div><br><div class=3D"gmail_quote gmail=
_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0sam. 14 d=
=C3=A9c. 2024 =C3=A0=C2=A022:20, gogo gogo &lt;<a href=3D"mailto:gogo246475=
@gmail.com">[email protected]</a>&gt; a =C3=A9crit=C2=A0:<br></div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:=
1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div>Hello,</=
div><div><br></div><div>Sorry for insisting so much! I just can not wait! I=
 would love to use gnunet! :)</div></div><br><div class=3D"gmail_quote"><di=
v dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0sam. 14 d=C3=A9c. 2024 =C3=A0=C2=
=A021:16, gogo gogo &lt;<a href=3D"mailto:[email protected]" target=3D"_=
blank">[email protected]</a>&gt; a =C3=A9crit=C2=A0:<br></div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px s=
olid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><pre>I really woul=
d love to see a configuration file example please!<br></pre><pre><br>- for =
example for the socket, do you recommend:<br>UNIXPATH =3D /tmp/gnunet-servi=
ce-transport.sock<br></pre><pre>but then for which peer(s)<br></pre><pre>- =
I doubt for the second point<br></pre><pre>- Could you tell me how please?<=
br></pre><pre>- I am confused<br></pre><pre>- I have already set <a href=3D=
"http://localhost:8080/" target=3D"_blank">http://localhost:8080/</a> . Sho=
uld I do same for the second peers peer2.conf please?</pre></div><br><div c=
lass=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0sam. 14 =
d=C3=A9c. 2024 =C3=A0=C2=A021:01, gogo gogo &lt;<a href=3D"mailto:gogo24647=
[email protected]" target=3D"_blank">[email protected]</a>&gt; a =C3=A9crit=C2=
=A0:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px=
 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D=
"ltr"><div>Hi maxime,</div><div><br></div><div>I think there is already an =
official doc I was referring to <a href=3D"https://docs.gnunet.org/latest/d=
evelopers/tutorial.html#how-to-connect-manually" target=3D"_blank">https://=
docs.gnunet.org/latest/developers/tutorial.html#how-to-connect-manually</a>=
 and this is where I am stuck.</div><div><br></div><div>Could you provide a=
 configuration file example please?<br></div></div><br><div class=3D"gmail_=
quote"><div dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0sam. 14 d=C3=A9c. 2024=
 =C3=A0=C2=A018:12, Maxime Devos &lt;<a href=3D"mailto:maximedevos@telenet.=
be" target=3D"_blank">[email protected]</a>&gt; a =C3=A9crit=C2=A0:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div lang=3D"=
NL-BE"><div><p class=3D"MsoNormal">If you wish to start multiple peers on o=
ne machine, you probably need to adjust the configuration more. </p><p clas=
s=3D"MsoNormal"><u></u>=C2=A0<u></u></p><ul style=3D"margin-top:0cm" type=
=3D"disc"><li style=3D"margin-left:0cm">If things are still the same as whe=
n I last worked with this (and IIRC), some things are _<i>outside</i>_ GNUN=
ET_HOME. There are some sockets =E2=80=A6 somewhere (I think under /tmp? No=
t sure where.). So, GNUnet might be getting confused from this.</li><li sty=
le=3D"margin-left:0cm">Maybe wait a few seconds after doing =E2=80=98gnunet=
-arm [=E2=80=A6] -s=E2=80=99, instead of the &amp;&amp;. Maybe the TCP or U=
DP transports haven=E2=80=99t choosen a port yet? I=E2=80=99m not sure this=
 is how it works though =E2=80=93 not familiar with this, this is speculati=
on.</li><li style=3D"margin-left:0cm">I=E2=80=99m not sure if UDP ports are=
 choosen automatically. If they aren=E2=80=99t, then there might be some ki=
nd of port conflic. In case of UDP (unidirectional), then the peers would b=
e unable to verify each others existence.</li><li style=3D"margin-left:0cm"=
>Even if they are choosen automatically, this automation probably had NAT-p=
unching in mind, not this.</li><li style=3D"margin-left:0cm">For an isolate=
d network, I think you also need to tell GNUnet to bind to =E2=80=98localho=
st=E2=80=99 instead of everything.</li></ul><p class=3D"MsoNormal"><u></u>=
=C2=A0<u></u></p><p class=3D"MsoNormal">It would be nice to have official d=
ocumentation on setting up this kind isolated one-machine, multiple peers n=
etwork. It seems quite convenient for safely testing things out. (Though fo=
r full isolation, a =E2=80=98unix=E2=80=99 transport would be needed.)</p><=
p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><p class=3D"MsoNormal">Best r=
egards,<br>Maxime Devos<u></u><u></u></p></div></div></div></blockquote></d=
iv>
</blockquote></div>
</blockquote></div>
</blockquote></div>

--000000000000aa685d062941a738--