Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1YxCPl-0004VH-Tx for bitcoin-development@lists.sourceforge.net; Tue, 26 May 2015 10:48:53 +0000 Received-SPF: pass (sog-mx-3.v43.ch3.sourceforge.com: domain of gmail.com designates 74.125.82.47 as permitted sender) client-ip=74.125.82.47; envelope-from=mh.in.england@gmail.com; helo=mail-wg0-f47.google.com; Received: from mail-wg0-f47.google.com ([74.125.82.47]) by sog-mx-3.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1YxCPk-0000G1-A4 for bitcoin-development@lists.sourceforge.net; Tue, 26 May 2015 10:48:53 +0000 Received: by wgbgq6 with SMTP id gq6so93315896wgb.3 for ; Tue, 26 May 2015 03:48:46 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.180.212.3 with SMTP id ng3mr38641196wic.92.1432637326247; Tue, 26 May 2015 03:48:46 -0700 (PDT) Sender: mh.in.england@gmail.com Received: by 10.194.143.9 with HTTP; Tue, 26 May 2015 03:48:46 -0700 (PDT) In-Reply-To: <2558087.GVnsa68lBj@crushinator> References: <23111107.dfGN69SrR9@crushinator> <20150526051546.GB23502@savin.petertodd.org> <2558087.GVnsa68lBj@crushinator> Date: Tue, 26 May 2015 12:48:46 +0200 X-Google-Sender-Auth: eEnUhAUGe0xP2V4Up8kju28djak Message-ID: From: Mike Hearn To: Matt Whitlock Content-Type: multipart/alternative; boundary=001a11c356f4ec4ec40516f9de87 X-Spam-Score: -0.5 (/) 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 (mh.in.england[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message 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: 1YxCPk-0000G1-A4 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: Tue, 26 May 2015 10:48:54 -0000 --001a11c356f4ec4ec40516f9de87 Content-Type: text/plain; charset=UTF-8 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 > --001a11c356f4ec4ec40516f9de87 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Very interesting Matt.

For what it'= s worth, in future bitcoinj is very likely to bootstrap from Cartographer n= odes (signed HTTP) rather than DNS, and we're also steadily working tow= ards Tor by default. So this approach will probably stop working at some po= int. As breaking PorcFest would kind of suck, we might want a ZeroConf/Rend= ezvous solution in place so local LANs can capture Bitcoin traffic away fro= m Tor (with some notification to the user, presumably).



On Tue, May 26, 2015 at 7:47 AM, Matt Whitlock <<= a href=3D"mailto:bip@mattwhitlock.name" target=3D"_blank">bip@mattwhitlock.= name> wrote:
On Tuesday, 26 May 2015, at 1:15 am, Peter Todd w= rote:
> 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-develo= pment@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-de= velopment

--001a11c356f4ec4ec40516f9de87--