From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 94cb3eb6 for ; Wed, 20 Sep 2017 12:48:19 +0000 (UTC) Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 7e83e77e for ; Wed, 20 Sep 2017 12:48:19 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id c4b3354f for ; Wed, 20 Sep 2017 13:07:22 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 77c5dbe1 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Wed, 20 Sep 2017 13:07:21 +0000 (UTC) Received: by mail-oi0-f54.google.com with SMTP id 199so2517943oii.11 for ; Wed, 20 Sep 2017 06:15:33 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: "Jason A. Donenfeld" Date: Wed, 20 Sep 2017 15:15:32 +0200 Message-ID: Subject: Re: Multihomed server issue To: WireGuard mailing list Content-Type: text/plain; charset="UTF-8" Cc: Jan De Landtsheer List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hey again, It turns out that our new semantics -- of rejecting only if the src IP doesn't belong to _any_ interface, as opposed to the specific interface -- nicely map to Linux's PKTINFO interface for userspace. In working with Mathias on the Go implementation, I produced the following code snippet that shows this sticky-socket technique using pure-userspace facilities: https://git.zx2c4.com/WireGuard/tree/contrib/examples/sticky-sockets/sticky-sockets.c Just FYI, if anybody is curious. Jason