Re: torrent sharing
Stu Midgley <[email protected]> Thu, 14 Sep 2017 22:13:09 +0800
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CAEM1RsXCWRpg925XMWuYnx_wQ_do2aYa6ipWnQ=BN0Z5uMjxGg@mail.gmail.com> |
--===============6652846823564023788== Content-Type: multipart/alternative; boundary="001a1147f3dc7e6442055926e129" --001a1147f3dc7e6442055926e129 Content-Type: text/plain; charset="UTF-8" What I'm trying to do is use bittorrent for the booting of our cluster (to get the 2GB image out to the compute nodes). The idea being that the nodes can feed each other parts of the image rather than all of them trying to download it from a single (or small number) of servers. Thanks. On Thu, Sep 14, 2017 at 10:11 PM, Stu Midgley <[email protected]> wrote: > That would be great, thanks. > > On Thu, Sep 14, 2017 at 10:05 PM, Alexander V. Lukyanov <[email protected]> > wrote: > >> On Thu, Sep 14, 2017 at 09:56:19PM +0800, Stu Midgley wrote: >> > and of course... their was a similar test in dht-bootstrap . >> > >> > I have removed both tests and they at least talk to each other. >> >> I think I'll make a new setting allowing DHT and bittorrent to private >> networks (off by default). >> >> -- >> Alexander. >> >> > On Thu, Sep 14, 2017 at 9:48 PM, Stu Midgley <[email protected]> wrote: >> > >> > > Right... and line 743,1131 in DHT.cc and 575,586 in Torrent.cc >> > > >> > > I modified the is_private function in network.cc to >> > > >> > > bool sockaddr_u::is_private() const >> > > >> > > { >> > > >> > > if(sa.sa_family==AF_INET) >> > > >> > > { >> > > >> > > unsigned char *a=(unsigned char *)&in.sin_addr; >> > > >> > > return (0==1); >> > > >> > > } >> > > >> > > #if INET6 >> > > >> > > if(family()==AF_INET6) { >> > > >> > > return IN6_IS_ADDR_SITELOCAL(&in6.sin6_addr) >> > > >> > > || IN6_IS_ADDR_LINKLOCAL(&in6.sin6_addr); >> > > >> > > } >> > > >> > > #endif >> > > >> > > return false; >> > > >> > > } >> > > >> > > >> > > >> > > and it still didn't work. >> > > >> > > >> > > On Thu, Sep 14, 2017 at 9:25 PM, Alexander V. Lukyanov <[email protected]> >> > > wrote: >> > > >> > >> On Thu, Sep 14, 2017 at 09:12:40PM +0800, Stu Midgley wrote: >> > >> > Thanks for the quick response. >> > >> > >> > >> > I started the bootstrap-dht and the lftp client and server on the >> single >> > >> > machine (172.16.250.40) which is a machine without external access >> to >> > >> the >> > >> > internet (hence why I want to run my own dht bootstrap service. >> > >> ... >> > >> > I don't see lftp contacting the bootstrap service. >> > >> >> > >> It appears that lftp refuses to talk DHT to private IP addresses (see >> > >> DHT.cc:296). I don't know if that's correct, but I was thinking about >> > >> security of private networks when I coded this. >> > >> >> > >> -- >> > >> Alexander. >> > >> >> > > >> > > >> > > >> > > -- >> > > Dr Stuart Midgley >> > > [email protected] >> > > >> > >> > >> > >> > -- >> > Dr Stuart Midgley >> > [email protected] >> >> > _______________________________________________ >> > lftp mailing list >> > [email protected] >> > http://univ.uniyar.ac.ru/mailman/listinfo/lftp >> > > > > -- > Dr Stuart Midgley > [email protected] > -- Dr Stuart Midgley [email protected] --001a1147f3dc7e6442055926e129 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac= e,monospace">What I'm trying to do is use bittorrent for the booting of= our cluster (to get the 2GB image out to the compute nodes).=C2=A0 The ide= a being that the nodes can feed each other parts of the image rather than a= ll of them trying to download it from a single (or small number) of servers= .</div><div class=3D"gmail_default" style=3D"font-family:monospace,monospac= e"><br></div><div class=3D"gmail_default" style=3D"font-family:monospace,mo= nospace">Thanks.</div></div><div class=3D"gmail_extra"><br><div class=3D"gm= ail_quote">On Thu, Sep 14, 2017 at 10:11 PM, Stu Midgley <span dir=3D"ltr">= <<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<= /a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:= 0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><d= iv class=3D"gmail_default" style=3D"font-family:monospace,monospace">That w= ould be great, thanks.</div></div><div class=3D"HOEnZb"><div class=3D"h5"><= div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu, Sep 14, 20= 17 at 10:05 PM, Alexander V. Lukyanov <span dir=3D"ltr"><<a href=3D"mail= to:[email protected]" target=3D"_blank">[email protected]</a>></span> wrote:<br><b= lockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px = #ccc solid;padding-left:1ex"><span>On Thu, Sep 14, 2017 at 09:56:19PM +0800= , Stu Midgley wrote:<br> > and of course... their was a similar test in dht-bootstrap .<br> ><br> > I have removed both tests and they at least talk to each other.<br> <br> </span>I think I'll make a new setting allowing DHT and bittorrent to p= rivate<br> networks (off by default).<br> <br> --<br> =C2=A0 =C2=A0Alexander.<br> <div><div class=3D"m_1817870852929177599h5"><br> > On Thu, Sep 14, 2017 at 9:48 PM, Stu Midgley <<a href=3D"mailto:sdm= [email protected]" target=3D"_blank">[email protected]</a>> wrote:<br> ><br> > > Right... and line 743,1131 in DHT.cc and 575,586 in Torrent.cc<br= > > ><br> > > I modified the is_private function in network.cc to<br> > ><br> > > bool sockaddr_u::is_private() const<br> > ><br> > > {<br> > ><br> > >=C2=A0 =C2=A0 if(sa.sa_family=3D=3DAF_INET)<br> > ><br> > >=C2=A0 =C2=A0 {<br> > ><br> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0unsigned char *a=3D(unsigned char *)&am= p;in.sin_addr;<br> > ><br> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0return (0=3D=3D1);<br> > ><br> > >=C2=A0 =C2=A0 }<br> > ><br> > > #if INET6<br> > ><br> > >=C2=A0 =C2=A0 if(family()=3D=3DAF_INET6) {<br> > ><br> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0return IN6_IS_ADDR_SITELOCAL(&in6.s= in<wbr>6_addr)<br> > ><br> > >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|| IN6_IS_ADDR_LINKLOCAL(= &in6.sin<wbr>6_addr);<br> > ><br> > >=C2=A0 =C2=A0 }<br> > ><br> > > #endif<br> > ><br> > >=C2=A0 =C2=A0 return false;<br> > ><br> > > }<br> > ><br> > ><br> > ><br> > > and it still didn't work.<br> > ><br> > ><br> > > On Thu, Sep 14, 2017 at 9:25 PM, Alexander V. Lukyanov <<a hre= f=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>><br> > > wrote:<br> > ><br> > >> On Thu, Sep 14, 2017 at 09:12:40PM +0800, Stu Midgley wrote:<= br> > >> > Thanks for the quick response.<br> > >> ><br> > >> > I started the bootstrap-dht and the lftp client and serv= er on the single<br> > >> > machine (172.16.250.40) which is a machine without exter= nal access to<br> > >> the<br> > >> > internet (hence why I want to run my own dht bootstrap s= ervice.<br> > >> ...<br> > >> > I don't see lftp contacting the bootstrap service.<b= r> > >><br> > >> It appears that lftp refuses to talk DHT to private IP addres= ses (see<br> > >> DHT.cc:296). I don't know if that's correct, but I wa= s thinking about<br> > >> security of private networks when I coded this.<br> > >><br> > >> --<br> > >>=C2=A0 =C2=A0 Alexander.<br> > >><br> > ><br> > ><br> > ><br> > > --<br> > > Dr Stuart Midgley<br> > > <a href=3D"mailto:[email protected]" target=3D"_blank">sdm900@gmai= l.com</a><br> > ><br> ><br> ><br> ><br> > --<br> > Dr Stuart Midgley<br> > <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= </a><br> <br> </div></div>> ______________________________<wbr>_________________<br> > lftp mailing list<br> > <a href=3D"mailto:[email protected]" target=3D"_blank">[email protected].= ru</a><br> > <a href=3D"http://univ.uniyar.ac.ru/mailman/listinfo/lftp" rel=3D"nore= ferrer" target=3D"_blank">http://univ.uniyar.ac.ru/mailm<wbr>an/listinfo/lf= tp</a><br> </blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class= =3D"m_1817870852929177599gmail_signature" data-smartmail=3D"gmail_signature= "><div dir=3D"ltr"><div><font face=3D"monospace, monospace">Dr Stuart Midgl= ey<br><a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]= m</a></font></div></div></div> </div> </div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>= <div class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div dir= =3D"ltr"><div><font face=3D"monospace, monospace">Dr Stuart Midgley<br><a h= ref=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a></fon= t></div></div></div> </div> --001a1147f3dc7e6442055926e129-- --===============6652846823564023788== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp --===============6652846823564023788==--