Re: issue with connecting two local peers
Martin Schanzenbach <[email protected]> Sun, 15 Dec 2024 09:43:21 +0000
| Newsgroups | gmane.network.gnunet.bugs,gmane.network.gnunet.devel |
|---|---|
| Message-ID | <[email protected]> |
--=-eWAvN0XZcE7Q6dnOy0kT
Content-Type: multipart/alternative; boundary="=-trgDi8Z1fhybQkB4LyJM"
--=-trgDi8Z1fhybQkB4LyJM
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
There are two ways of doing this in gnunet.
The first is to do it manually, by starting two peers with different
configurations and having them connect.
But the proper way to do testing would be to use the (new) testing API.
Alas, there is no usable documentation for either right now.
BR
Martin
On Sat, 2024-12-14 at 18:12 +0100, Maxime Devos wrote:
> If you wish to start multiple peers on one machine, you probably need
> to adjust the configuration more.=20
> =C2=A0
> * 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 mig=
ht
> 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 ye=
t?
> I=E2=80=99m not sure this is how it works though =E2=80=93 not familiar w=
ith this,
> this is speculation.
> * I=E2=80=99m not sure if UDP ports are choosen automatically. If they
> aren=E2=80=99t,
> then there might be some kind of port conflic. In case of UDP
> (unidirectional), then the peers would be unable to verify each
> others 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.
> =C2=A0
> It would be nice to have official documentation on setting up this
> kind isolated one-machine, multiple peers network. It seems quite
> convenient for safely testing things out. (Though for full isolation,
> a =E2=80=98unix=E2=80=99 transport would be needed.)
> =C2=A0
> Best regards,
> Maxime Devos
--=-trgDi8Z1fhybQkB4LyJM
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<html><head><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1704359722;
mso-list-type:hybrid;
mso-list-template-ids:-1734688136 -1 68354051 68354053 68354049 68354051 6=
8354053 68354049 68354051 68354053;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;
mso-fareast-font-family:"Times New Roman";
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><style>pre,code,address {
margin: 0px;
}
h1,h2,h3,h4,h5,h6 {
margin-top: 0.2em;
margin-bottom: 0.2em;
}
ol,ul {
margin-top: 0em;
margin-bottom: 0em;
}
blockquote {
margin-top: 0em;
margin-bottom: 0em;
}
</style></head><body lang=3D"NL-BE" link=3D"blue" vlink=3D"#954F72" style=
=3D"word-wrap:break-word"><div>There are two ways of doing this in gnunet.<=
/div><div>The first is to do it manually, by starting two peers with differ=
ent configurations and having them connect.</div><div><br></div><div>But th=
e proper way to do testing would be to use the (new) testing API.</div><div=
>Alas, there is no usable documentation for either right now.</div><div><br=
></div><div>BR</div><div>Martin</div><div><br></div><div>On Sat, 2024-12-14=
at 18:12 +0100, Maxime Devos wrote:</div><blockquote type=3D"cite" style=
=3D"margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div=
class=3D"WordSection1"><p class=3D"MsoNormal">If you wish to start multipl=
e peers on one machine, you probably need to adjust the configuration more.=
</p><p class=3D"MsoNormal"><o:p> </o:p></p><ul style=3D"margin-top:0c=
m" type=3D"disc"><li class=3D"MsoListParagraph" style=3D"margin-left:0cm;ms=
o-list:l0 level1 lfo1">If things are still the same as when I last worked w=
ith this (and IIRC), some things are _<i>outside</i>_ GNUNET_HOME. There ar=
e some sockets =E2=80=A6 somewhere (I think under /tmp? Not sure where.). S=
o, GNUnet might be getting confused from this.</li><li class=3D"MsoListPara=
graph" style=3D"margin-left:0cm;mso-list:l0 level1 lfo1">Maybe wait a few s=
econds 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 p=
ort yet? I=E2=80=99m not sure this is how it works though =E2=80=93 not fam=
iliar with this, this is speculation.</li><li class=3D"MsoListParagraph" st=
yle=3D"margin-left:0cm;mso-list:l0 level1 lfo1">I=E2=80=99m not sure if UDP=
ports are choosen automatically. If they aren=E2=80=99t, then there might =
be some kind of port conflic. In case of UDP (unidirectional), then the pee=
rs would be unable to verify each others existence.</li><li class=3D"MsoLis=
tParagraph" style=3D"margin-left:0cm;mso-list:l0 level1 lfo1">Even if they =
are choosen automatically, this automation probably had NAT-punching in min=
d, not this.</li><li class=3D"MsoListParagraph" style=3D"margin-left:0cm;ms=
o-list:l0 level1 lfo1">For an isolated network, I think you also need to te=
ll GNUnet to bind to =E2=80=98localhost=E2=80=99 instead of everything.</li=
></ul><p class=3D"MsoNormal"><o:p> </o:p></p><p class=3D"MsoNormal">It=
would be nice to have official documentation on setting up this kind isola=
ted one-machine, multiple peers network. It seems quite convenient for safe=
ly testing things out. (Though for full isolation, a =E2=80=98unix=E2=80=99=
transport would be needed.)</p><p class=3D"MsoNormal"><o:p> </o:p></p=
><p class=3D"MsoNormal">Best regards,<br>Maxime Devos<o:p></o:p></p></div><=
/blockquote><div><br></div><div><span></span></div></body></html>
--=-trgDi8Z1fhybQkB4LyJM--
--=-eWAvN0XZcE7Q6dnOy0kT
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
iQJMBAABCAA2FiEEPREGPBD5jRS9JNFHCwmY74b1m2oFAmdepLkYHG1zY2hhbnpl
bmJhY2hAcG9zdGVvLmRlAAoJEAsJmO+G9ZtqaNMP/1SvvJDmehdLwenZ1asC0uYm
VUKZkJNdtFL+ZbjOb8hEz/GNOjLGr02XYV7DfCzbblZenlXAg+2SVEWTOrvpHRn1
wSLKhnhtOQUAHJ/94wk21g5e64WJ5XaNYhVBqMHO81AejN7IIKLqY7p+6SRHYp25
0hA60PW4wFKrRJH1LQOgTBSRtd4QjTo/mGPnaaN989UZLRWFtibZisnsTvMcEONn
z56hsMnXlbxxl4nrqIGnQOnt4hD7jGT5hmk+g0mPgR5hL0+wFYyqGTODwjL60mEP
lUtTAqlDVJXss4az4NNXZBKr5A5MrKKjWE6EKYNJ0IQi6nEzZan2D9jQu/RiPzKw
MjbBhzr6ep9rF4dySNFws32SC4CJg+Cev/WI/3CKo6CyadE8lsSRGZ32bZTDwzMJ
A2x0di5sQA4bEbt+OiwBxsK/ZV+1hPhdTJdqRiMJCiOzE32dVszmEIUUbCfFEhDX
yLt0xlpynq1XaDN2OkLseUeFMiqwyL2C5XEdDO/cGuDuFEEGk/lECRs2W+F2r4MZ
njhARFkuEtnIOhyoo8q7FV02j15aB1LyNVavXeTx9V1slEhIcf7WN8nRuNYErxlB
UNb6o0Gf142S0QZ8JvkzjCwWo1Xpf1QPzfrHYEIdDzwNm9bydoXcOPPmh69k6biL
fZ8ZMR3JlzyovN7/WKLS
=Pvor
-----END PGP SIGNATURE-----
--=-eWAvN0XZcE7Q6dnOy0kT--