From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=0.7 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FORGED_YAHOO_RCVD,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DAD30C43441 for ; Wed, 10 Oct 2018 13:31:54 +0000 (UTC) Received: from krantz.zx2c4.com (krantz.zx2c4.com [192.95.5.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2A1DD2087A for ; Wed, 10 Oct 2018 13:31:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=yahoo.com header.i=@yahoo.com header.b="M0rTb83k" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A1DD2087A Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=yahoo.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=wireguard-bounces@lists.zx2c4.com Received: from krantz.zx2c4.com (localhost [IPv6:::1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 523fa73e; Wed, 10 Oct 2018 13:30:34 +0000 (UTC) Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 5f50d6b5 for ; Wed, 10 Oct 2018 13:30:31 +0000 (UTC) Received: from sonic303-20.consmr.mail.ir2.yahoo.com (sonic303-20.consmr.mail.ir2.yahoo.com [77.238.178.201]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 67197c8b for ; Wed, 10 Oct 2018 13:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1539178291; bh=QwlM3CA/KzIXRjm6G0MXUbuXAouN32yKelOVSNm9OPM=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=M0rTb83kqjO1CGhCY6N3dHM5U4/Q1X0RKUfXstLotpQTentSfcET3lIEs8Ohk2GobP3HJTZPZvn6+xNEhUtqJXqDyfpYjgYLW7fpcakAvSKNXHruULrZB+7PJ5BOVl0BciZOl6ItNAHvlEsbmBGk2BUs9a4+gZxLVDnQwbRAz4DHDSpcc031rTr4qPXAcpxvTYPuA8VKNWs01DDjn/IgqMmNcEIGyfMGP46lhCylD6eATSP0U735d2Y4wvdyOTadBSIvQfmYtmpHkdzcz/4+24P7SO+1KaSX4OAyORrX938BwLr8918FFnqYe2A2I/uUUglu046KbULFKaHCvU/Cow== X-YMail-OSG: 5Bakiq0VM1kNyyFC_k6vKLeamrDPn533_WWEUB_v71bw6TLbt.29c8QadHiG4aN SYZqMVZr.eZh0iptUm_TM_DSjbk_ggfih87JNXp9N3l0xdzIC63vQDOARkCK5x44lAbQmVcOKEoY wgavjWvbUCqdDh3J6sqsmvnEfi7GDNcSV4hj8EYY5.tmEgOTmqbNHnTGS5LwL9mhsipfu90vjndM DYyvx.B1ONoAX_TKI_EflyNAJ5TenpB_bNOpVcxpSOEVPwU0nebeNTJckAzC26iEXrkDEc8e8_nr Gu61Quo0q5Xk5HQXcnsG8L4P_s3N2YSHFQCKt7qEHLAnIqqQpXyINI4DQw6MBesfOuxELPfBbuyv EB64BpvGn3qmqgoYG_N2RwuoxUoVFBKZLVdcch7AEddZPUEe4DwAFiRM8Dbz56OJveQ6iKX8rV_3 eI7Ay_qYwuS6qcSDpa6hmffyy_tSibfDnbfOozn45jPKRyro7_WLw09_HvEhHDFV6ERpj7LrqfcS R5ln_q_tSQam0VYZsUuTEeMg42nKNUHF69CCa56Sy_siaoL9wpwYxbvjc4Sl6TKV2nkYfM3D3hTg _gAp2A8osz_KkQHXvgTLLUx02eT14EwrtgcQPLb6srQrRS.Tz3mOc4.r9pbL6sP.BaZ.xl0NzX1a ICV8r7oA7AEQc9FKNU7oOS2w2Dbsl7TMjfrmPpRSCzmcPMlsWprQKRtPsOwF.6fPz78Yg6SiaUNK LcoEkWriUcpJQm7MeQnzMNgZR6xvfH5PfvtWz9TP_AMNFeYw0HvuA_38ozPvScjr47GhTSPc.5.g N6xzQ5s1VuYxqItI_DfTA7zX8t8nRO6FJKxYQIA0MUhleV44MHZA3DfeRwiuVqM.MAQUXHYPbgLU o2RV_HFJiLJvU4QTrcgKgskyhyf_k3u9rdQYwJEbbEpiJOjOk2R8lGMJ_7Yw4GpEjw.nbMcgUK8v 9TcmtE58ZIAOSsGrCBn3am3mNefMptMxHmuDeldRe2iRs1yKH1womjqp35uLDpMeQnzQ02YAB4Xf 4HmygB0D5Y5ImUTm2CV5fw9O_MuYwH.Y8Fq7CvNjrpJEt8jmh4b0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Wed, 10 Oct 2018 13:31:31 +0000 Received: from 82-197-199-141.dsl.cambrium.nl (EHLO [192.168.20.251]) ([82.197.199.141]) by smtp418.mail.ir2.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID cc61dc9d7759a4eec6618f13c034df86 for ; Wed, 10 Oct 2018 13:31:29 +0000 (UTC) Subject: Re: Wireguard not coming up on DD-wrt To: "wireguard@lists.zx2c4.com" References: <163f39a3-0fb5-3645-b6bd-3ddd797c158b@yahoo.com> <796625c4-d114-1b5f-ea79-97b91e682549@newmedia-net.de> <18dc8d48-b5e9-7ce6-844b-d43af06c6af7@yahoo.com> <08ebe77e-c66f-a356-8a42-e0a0d920a2a8@newmedia-net.de> From: "Dennis van J." Message-ID: <2cee2aba-17a6-44dc-0598-24fdb8d50408@yahoo.com> Date: Wed, 10 Oct 2018 15:31:28 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <08ebe77e-c66f-a356-8a42-e0a0d920a2a8@newmedia-net.de> Content-Language: nl X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.15 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0286511989538916163==" Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" This is a multi-part message in MIME format. --===============0286511989538916163== Content-Type: multipart/alternative; boundary="------------27FFAA6D216BABB95A70A356" Content-Language: nl This is a multi-part message in MIME format. --------------27FFAA6D216BABB95A70A356 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit It is running on a TP-LINK WDR-4300 (v1). Op 10-10-2018 om 09:06 schreef Sebastian Gottschall: > > > Am 10.10.2018 um 08:00 schrieb Dennis van J.: >> >> Hi Sebastian, >> >> I took care of the FW problems. An iptables --list shows that the udp >> port is open. >> >> DD-wrt is running using: Firmware:DD-WRT v3.0-r36645 std (08/19/18). >> > okay and finally. which hardware do you run it? >> >> Cheers, >> >> Dennis >> >> >> Op 9-10-2018 om 18:29 schreef Sebastian Gottschall: >>> >>> just to make sure. since i'm updating wireguard in dd-wrt very often >>> to the latest state of art code from git. which dd-wrt version did >>> you use for establishing the connection? >>> >>> did you also take care about usual firewall problems? by default the >>> the firewall is closed on wan, so no inbound connection is possible >>> >>> >>> Sebastian >>> >>> Am 09.10.2018 um 17:06 schrieb Dennis van J.: >>>> >>>> Hi all, >>>> >>>> I have setup Wireguard on a Gentoo box, compiled it into the kernel >>>> using instructions on the wireguard website. Got my mobile to >>>> connect using 4G to this box fine, so I wanted to test further with >>>> a friend of mine who has a DD-wrt installation on his router. >>>> Wireguard is integrated into the DD-wrt build, we set it up, but >>>> the tunnel does not come up. On the server I only see this: >>>> >>>> Oct  9 16:45:34 omega kernel: [178809.449718] wireguard: wg0: >>>> Receiving handshake initiation from peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:34 omega kernel: [178809.449721] wireguard: wg0: >>>> Sending handshake response to peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:34 omega kernel: [178809.450130] wireguard: wg0: >>>> Keypair 32179 destroyed for peer 10 >>>> Oct  9 16:45:34 omega kernel: [178809.450131] wireguard: wg0: >>>> Keypair 32180 created for peer 10 >>>> Oct  9 16:45:39 omega kernel: [178814.519668] wireguard: wg0: >>>> Receiving handshake initiation from peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:39 omega kernel: [178814.519671] wireguard: wg0: >>>> Sending handshake response to peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:39 omega kernel: [178814.520062] wireguard: wg0: >>>> Keypair 32180 destroyed for peer 10 >>>> Oct  9 16:45:39 omega kernel: [178814.520063] wireguard: wg0: >>>> Keypair 32181 created for peer 10 >>>> Oct  9 16:45:44 omega kernel: [178819.579701] wireguard: wg0: >>>> Receiving handshake initiation from peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:44 omega kernel: [178819.579704] wireguard: wg0: >>>> Sending handshake response to peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:44 omega kernel: [178819.580094] wireguard: wg0: >>>> Keypair 32181 destroyed for peer 10 >>>> Oct  9 16:45:44 omega kernel: [178819.580095] wireguard: wg0: >>>> Keypair 32182 created for peer 10 >>>> Oct  9 16:45:50 omega kernel: [178824.910142] wireguard: wg0: >>>> Receiving handshake initiation from peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:50 omega kernel: [178824.910145] wireguard: wg0: >>>> Sending handshake response to peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:50 omega kernel: [178824.910535] wireguard: wg0: >>>> Keypair 32182 destroyed for peer 10 >>>> Oct  9 16:45:50 omega kernel: [178824.910536] wireguard: wg0: >>>> Keypair 32183 created for peer 10 >>>> Oct  9 16:45:55 omega kernel: [178829.950001] wireguard: wg0: >>>> Receiving handshake initiation from peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:55 omega kernel: [178829.950003] wireguard: wg0: >>>> Sending handshake response to peer 10 (x.169.86.x:22300) >>>> Oct  9 16:45:55 omega kernel: [178829.950406] wireguard: wg0: >>>> Keypair 32183 destroyed for peer 10 >>>> Oct  9 16:45:55 omega kernel: [178829.950407] wireguard: wg0: >>>> Keypair 32184 created for peer 10 >>>> >>>> Port on the server is open (since the 4G test works). We can reach >>>> the 22300 port on his side. Checked the pub/private keys as well. >>>> >>>> wg show on server: >>>> >>>> interface: wg0 >>>>   public key: >>>>   private key: (hidden) >>>>   listening port: 51820 >>>> >>>> peer: >>>>   endpoint: x.200.39.x:8971 >>>>   allowed ips: 0.0.0.0/0 >>>>   latest handshake: 8 hours, 1 minute, 43 seconds ago >>>>   transfer: 384.24 KiB received, 2.74 MiB sent >>>> >>>> peer: >>>>   endpoint: x.169.86.x:22300 >>>>   allowed ips: 192.168.1.0/24, 10.100.0.3/32 >>>>   transfer: 2.00 MiB received, 1.24 MiB sent >>>> >>>> On DD-wrt router: >>>> >>>> interface: oet1 >>>>   public key: >>>>   private key: (hidden) >>>>   listening port: 22300 >>>> >>>> peer: >>>>   endpoint: x.197.199.x:51820 >>>>   allowed ips: 0.0.0.0/0 >>>>   transfer: 0 B received, 777.43 KiB sent >>>>   persistent keepalive: every 25 seconds >>>> >>>> We are trying to get logging to work on that DD-wrt box, that >>>> should contain some more clues but maybe any of you have an idea? >>>> >>>> Cheers, >>>> >>>> Dennis >>>> >>>> >>>> >>>> _______________________________________________ >>>> WireGuard mailing list >>>> WireGuard@lists.zx2c4.com >>>> https://lists.zx2c4.com/mailman/listinfo/wireguard >> >> >> _______________________________________________ >> WireGuard mailing list >> WireGuard@lists.zx2c4.com >> https://lists.zx2c4.com/mailman/listinfo/wireguard --------------27FFAA6D216BABB95A70A356 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

It is running on a TP-LINK WDR-4300 (v1).


Op 10-10-2018 om 09:06 schreef Sebastian Gottschall:


Am 10.10.2018 um 08:00 schrieb Dennis van J.:

Hi Sebastian,

I took care of the FW problems. An iptables --list shows that the udp port is open.

DD-wrt is running using: Firmware: DD-WRT v3.0-r36645 std (08/19/18).

okay and finally. which hardware do you run it?

Cheers,

Dennis


Op 9-10-2018 om 18:29 schreef Sebastian Gottschall:

just to make sure. since i'm updating wireguard in dd-wrt very often to the latest state of art code from git. which dd-wrt version did you use for establishing the connection?

did you also take care about usual firewall problems? by default the the firewall is closed on wan, so no inbound connection is possible


Sebastian

Am 09.10.2018 um 17:06 schrieb Dennis van J.:

Hi all,

I have setup Wireguard on a Gentoo box, compiled it into the kernel using instructions on the wireguard website. Got my mobile to connect using 4G to this box fine, so I wanted to test further with a friend of mine who has a DD-wrt installation on his router. Wireguard is integrated into the DD-wrt build, we set it up, but the tunnel does not come up. On the server I only see this:

Oct  9 16:45:34 omega kernel: [178809.449718] wireguard: wg0: Receiving handshake initiation from peer 10 (x.169.86.x:22300)
Oct  9 16:45:34 omega kernel: [178809.449721] wireguard: wg0: Sending handshake response to peer 10 (x.169.86.x:22300)
Oct  9 16:45:34 omega kernel: [178809.450130] wireguard: wg0: Keypair 32179 destroyed for peer 10
Oct  9 16:45:34 omega kernel: [178809.450131] wireguard: wg0: Keypair 32180 created for peer 10
Oct  9 16:45:39 omega kernel: [178814.519668] wireguard: wg0: Receiving handshake initiation from peer 10 (x.169.86.x:22300)
Oct  9 16:45:39 omega kernel: [178814.519671] wireguard: wg0: Sending handshake response to peer 10 (x.169.86.x:22300)
Oct  9 16:45:39 omega kernel: [178814.520062] wireguard: wg0: Keypair 32180 destroyed for peer 10
Oct  9 16:45:39 omega kernel: [178814.520063] wireguard: wg0: Keypair 32181 created for peer 10
Oct  9 16:45:44 omega kernel: [178819.579701] wireguard: wg0: Receiving handshake initiation from peer 10 (x.169.86.x:22300)
Oct  9 16:45:44 omega kernel: [178819.579704] wireguard: wg0: Sending handshake response to peer 10 (x.169.86.x:22300)
Oct  9 16:45:44 omega kernel: [178819.580094] wireguard: wg0: Keypair 32181 destroyed for peer 10
Oct  9 16:45:44 omega kernel: [178819.580095] wireguard: wg0: Keypair 32182 created for peer 10
Oct  9 16:45:50 omega kernel: [178824.910142] wireguard: wg0: Receiving handshake initiation from peer 10 (x.169.86.x:22300)
Oct  9 16:45:50 omega kernel: [178824.910145] wireguard: wg0: Sending handshake response to peer 10 (x.169.86.x:22300)
Oct  9 16:45:50 omega kernel: [178824.910535] wireguard: wg0: Keypair 32182 destroyed for peer 10
Oct  9 16:45:50 omega kernel: [178824.910536] wireguard: wg0: Keypair 32183 created for peer 10
Oct  9 16:45:55 omega kernel: [178829.950001] wireguard: wg0: Receiving handshake initiation from peer 10 (x.169.86.x:22300)
Oct  9 16:45:55 omega kernel: [178829.950003] wireguard: wg0: Sending handshake response to peer 10 (x.169.86.x:22300)
Oct  9 16:45:55 omega kernel: [178829.950406] wireguard: wg0: Keypair 32183 destroyed for peer 10
Oct  9 16:45:55 omega kernel: [178829.950407] wireguard: wg0: Keypair 32184 created for peer 10

Port on the server is open (since the 4G test works). We can reach the 22300 port on his side. Checked the pub/private keys as well.

wg show on server:

interface: wg0
  public key: <pubkey server>
  private key: (hidden)
  listening port: 51820

peer: <pubkey of mobile>
  endpoint: x.200.39.x:8971
  allowed ips: 0.0.0.0/0
  latest handshake: 8 hours, 1 minute, 43 seconds ago
  transfer: 384.24 KiB received, 2.74 MiB sent

peer: <pubkey of dd-wrt>
  endpoint: x.169.86.x:22300
  allowed ips: 192.168.1.0/24, 10.100.0.3/32
  transfer: 2.00 MiB received, 1.24 MiB sent

On DD-wrt router:

interface: oet1
  public key: <pubkey dd-wrt>
  private key: (hidden)
  listening port: 22300

peer: <pubkey of server>
  endpoint: x.197.199.x:51820
  allowed ips: 0.0.0.0/0
  transfer: 0 B received, 777.43 KiB sent
  persistent keepalive: every 25 seconds

We are trying to get logging to work on that DD-wrt box, that should contain some more clues but maybe any of you have an idea?

Cheers,

Dennis



_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard


_______________________________________________
WireGuard mailing list
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard

--------------27FFAA6D216BABB95A70A356-- --===============0286511989538916163== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ WireGuard mailing list WireGuard@lists.zx2c4.com https://lists.zx2c4.com/mailman/listinfo/wireguard --===============0286511989538916163==--