Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YxYOP-000897-QE for bitcoin-development@lists.sourceforge.net; Wed, 27 May 2015 10:16:57 +0000 Received-SPF: pass (sog-mx-2.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; envelope-from=lrossouw@gmail.com; helo=mail-lb0-f174.google.com; Received: from mail-lb0-f174.google.com ([209.85.217.174]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YxYOO-0003Zh-7x for bitcoin-development@lists.sourceforge.net; Wed, 27 May 2015 10:16:57 +0000 Received: by lbbuc2 with SMTP id uc2so3816133lbb.2 for ; Wed, 27 May 2015 03:16:49 -0700 (PDT) X-Received: by 10.152.4.72 with SMTP id i8mr21248388lai.32.1432721809816; Wed, 27 May 2015 03:16:49 -0700 (PDT) MIME-Version: 1.0 References: <23111107.dfGN69SrR9@crushinator> <20150526051546.GB23502@savin.petertodd.org> <2558087.GVnsa68lBj@crushinator> In-Reply-To: From: Louis Rossouw Date: Wed, 27 May 2015 10:16:49 +0000 Message-ID: To: Mike Hearn , Matt Whitlock Content-Type: multipart/alternative; boundary=089e014942488943ea05170d8a9d X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (lrossouw[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1YxYOO-0003Zh-7x Cc: Bitcoin Dev Subject: Re: [Bitcoin-development] Zero-Conf for Full Node Discovery X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2015 10:16:57 -0000 --089e014942488943ea05170d8a9d Content-Type: text/plain; charset=UTF-8 Also think it would be useful. Created an issue for it some time back: https://github.com/bitcoin/bitcoin/issues/3802 I think nodes don't "only" have to connect to LAN nodes. Especially with headers first. They can still connect to other nodes as well. Having said that security is problematic in any case on a hotel wifi or similar. All traffic can be spoofed. With HF they'd be loading most of the data from the LAN node though. This will help people having multiple nodes at home reduce bandwidth and improve sync without difficult setup. On Tue, 26 May 2015 at 12:50 Mike Hearn wrote: > Very interesting Matt. > > For what it's worth, in future bitcoinj is very likely to bootstrap from > Cartographer nodes (signed HTTP) rather than DNS, and we're also steadily > working towards Tor by default. So this approach will probably stop working > at some point. As breaking PorcFest would kind of suck, we might want a > ZeroConf/Rendezvous solution in place so local LANs can capture Bitcoin > traffic away from Tor (with some notification to the user, presumably). > > > > On Tue, May 26, 2015 at 7:47 AM, Matt Whitlock > wrote: > >> On Tuesday, 26 May 2015, at 1:15 am, Peter Todd wrote: >> > On Tue, May 26, 2015 at 12:52:07AM -0400, Matt Whitlock wrote: >> > > On Monday, 25 May 2015, at 11:48 pm, Jim Phillips wrote: >> > > > Do any wallets actually do this yet? >> > > >> > > Not that I know of, but they do seed their address database via DNS, >> which you can poison if you control the LAN's DNS resolver. I did this for >> a Bitcoin-only Wi-Fi network I operated at a remote festival. We had well >> over a hundred lightweight wallets, all trying to connect to the Bitcoin >> P2P network over a very bandwidth-constrained Internet link, so I poisoned >> the DNS and rejected all outbound connection attempts on port 8333, to >> force all the wallets to connect to a single local full node, which had >> connectivity to a single remote node over the Internet. Thus, all the >> lightweight wallets at the festival had Bitcoin network connectivity, but >> we only needed to backhaul the Bitcoin network's transaction traffic once. >> > >> > Interesting! >> > >> > What festival was this? >> >> The Porcupine Freedom Festival ("PorcFest") in New Hampshire last summer. >> I strongly suspect that it's the largest gathering of Bitcoin users at any >> event that is not specifically Bitcoin-themed. There's a lot of overlap >> between the Bitcoin and liberty communities. PorcFest draws somewhere >> around 1000-2000 attendees, a solid quarter of whom have Bitcoin wallets on >> their mobile devices. >> >> The backhaul was a 3G cellular Internet connection, and the local Bitcoin >> node and network router were hosted on a Raspberry Pi with some Netfilter >> tricks to restrict connectivity. The net result was that all Bitcoin nodes >> (lightweight and heavyweight) on the local Wi-Fi network were unable to >> connect to any Bitcoin nodes except for the local node, which they >> discovered via DNS. I also had provisions in place to allow outbound >> connectivity to the API servers for Mycelium, Blockchain, and Coinbase >> wallets, by feeding the DNS resolver's results in real-time into a >> whitelisting Netfilter rule utilizing IP Sets. >> >> For your amusement, here's the graphic for the banner that I had made to >> advertise the network at the festival (*chuckle*): >> http://www.mattwhitlock.com/bitcoin_wifi.png >> >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y >> _______________________________________________ >> Bitcoin-development mailing list >> Bitcoin-development@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bitcoin-development >> > > > ------------------------------------------------------------------------------ > One dashboard for servers and applications across Physical-Virtual-Cloud > Widest out-of-the-box monitoring support with 50+ applications > Performance metrics, stats and reports that give you Actionable Insights > Deep dive visibility with transaction tracing using APM Insight. > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > --089e014942488943ea05170d8a9d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, 26 May 2015 at 12:50 Mik= e Hearn <mike@plan99.net> wrot= e:
Very interesting Matt= .

For what it's worth, in future bitcoinj is very li= kely to bootstrap from Cartographer nodes (signed HTTP) rather than DNS, an= d we're also steadily working towards Tor by default. So this approach = will probably stop working at some point. As breaking PorcFest would kind o= f suck, we might want a ZeroConf/Rendezvous solution in place so local LANs= can capture Bitcoin traffic away from Tor (with some notification to the u= ser, presumably).



On Tue, May 26, 2015 at 7:47 AM, = Matt Whitlock <bip@mattwhitlock.name> wrote:
On Tuesday, 26 May 2015, at 1:15 am, Peter= Todd wrote:
> On Tue, May 26, 2015 at 12:52:07AM -0400, Matt Whitlock wrote:
> > On Monday, 25 May 2015, at 11:48 pm, Jim Phillips wrote:
> > > Do any wallets actually do this yet?
> >
> > Not that I know of, but they do seed their address database via D= NS, which you can poison if you control the LAN's DNS resolver. I did t= his for a Bitcoin-only Wi-Fi network I operated at a remote festival. We ha= d well over a hundred lightweight wallets, all trying to connect to the Bit= coin P2P network over a very bandwidth-constrained Internet link, so I pois= oned the DNS and rejected all outbound connection attempts on port 8333, to= force all the wallets to connect to a single local full node, which had co= nnectivity to a single remote node over the Internet. Thus, all the lightwe= ight wallets at the festival had Bitcoin network connectivity, but we only = needed to backhaul the Bitcoin network's transaction traffic once.
>
> Interesting!
>
> What festival was this?

The Porcupine Freedom Festival ("PorcFest") in New Ha= mpshire last summer. I strongly suspect that it's the largest gathering= of Bitcoin users at any event that is not specifically Bitcoin-themed. The= re's a lot of overlap between the Bitcoin and liberty communities. Porc= Fest draws somewhere around 1000-2000 attendees, a solid quarter of whom ha= ve Bitcoin wallets on their mobile devices.

The backhaul was a 3G cellular Internet connection, and the local Bitcoin n= ode and network router were hosted on a Raspberry Pi with some Netfilter tr= icks to restrict connectivity. The net result was that all Bitcoin nodes (l= ightweight and heavyweight) on the local Wi-Fi network were unable to conne= ct to any Bitcoin nodes except for the local node, which they discovered vi= a DNS. I also had provisions in place to allow outbound connectivity to the= API servers for Mycelium, Blockchain, and Coinbase wallets, by feeding the= DNS resolver's results in real-time into a whitelisting Netfilter rule= utilizing IP Sets.

For your amusement, here's the graphic for the banner that I had made t= o advertise the network at the festival (*chuckle*): http://www.mattwhitloc= k.com/bitcoin_wifi.png

---------------------------------------------------------------------------= ---
One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Bitcoin-development mailing list
Bitcoin-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-de= velopment

---------------------------------------------------------------------------= ---
One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y____= ___________________________________________
Bitcoin-development mailing list
Bitcoin-development@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-de= velopment
--089e014942488943ea05170d8a9d--