RE: issue with connecting two local peers

Maxime Devos <[email protected]> Sat, 14 Dec 2024 18:12:56 +0100
Newsgroups gmane.network.gnunet.bugs
Message-ID <[email protected]>
--_A925FA57-62B3-491B-A971-02E19B3BF792_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

If you wish to start multiple peers on one machine, you probably need to ad=
just the configuration more.=20

=E2=80=A2 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.
=E2=80=A2 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 th=
ough =E2=80=93 not familiar with this, this is speculation.
=E2=80=A2 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 case =
of UDP (unidirectional), then the peers would be unable to verify each othe=
rs existence.
=E2=80=A2 Even if they are choosen automatically, this automation probably =
had NAT-punching in mind, not this.
=E2=80=A2 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 kind iso=
lated one-machine, multiple peers network. It seems quite convenient for sa=
fely testing things out. (Though for full isolation, a =E2=80=98unix=E2=80=
=99 transport would be needed.)

Best regards,
Maxime Devos

--_A925FA57-62B3-491B-A971-02E19B3BF792_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of=
fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta ht=
tp-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta name=
=3DGenerator content=3D"Microsoft Word 15 (filtered medium)"><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></head><body lang=3DNL-BE link=3Dblue vlink=3D"#954F72" style=3D=
'word-wrap:break-word'><div class=3DWordSection1><p class=3DMsoNormal>If yo=
u wish to start multiple peers on one machine, you probably need to adjust =
the configuration more. </p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><ul s=
tyle=3D'margin-top:0cm' type=3Ddisc><li class=3DMsoListParagraph style=3D'm=
argin-left:0cm;mso-list:l0 level1 lfo1'>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 cla=
ss=3DMsoListParagraph style=3D'margin-left:0cm;mso-list:l0 level1 lfo1'>May=
be 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 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 this, this is speculation.</li><li class=3DMsoL=
istParagraph style=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, th=
en there might be some kind of port conflic. In case of UDP (unidirectional=
), then the peers would be unable to verify each others existence.</li><li =
class=3DMsoListParagraph style=3D'margin-left:0cm;mso-list:l0 level1 lfo1'>=
Even if they are choosen automatically, this automation probably had NAT-pu=
nching in mind, not this.</li><li class=3DMsoListParagraph style=3D'margin-=
left:0cm;mso-list:l0 level1 lfo1'>For an isolated network, I think you also=
 need to tell GNUnet to bind to =E2=80=98localhost=E2=80=99 instead of ever=
ything.</li></ul><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNo=
rmal>It would be nice to have official documentation on setting up this kin=
d isolated one-machine, multiple peers network. It seems quite convenient f=
or safely testing things out. (Though for full isolation, a =E2=80=98unix=
=E2=80=99 transport would be needed.)</p><p class=3DMsoNormal><o:p>&nbsp;</=
o:p></p><p class=3DMsoNormal>Best regards,<br>Maxime Devos<o:p></o:p></p></=
div></body></html>=

--_A925FA57-62B3-491B-A971-02E19B3BF792_--