Return-Path: lazyvirus@gmx.com Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 98ec6045 for ; Tue, 2 May 2017 17:07:57 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id e7a2ba82 for ; Tue, 2 May 2017 17:07:57 +0000 (UTC) Date: Tue, 2 May 2017 19:17:26 +0200 From: Bzzzz To: "Jason A. Donenfeld" Subject: Re: wg-quick can't down my vpn I/F and DNS problem Message-ID: <20170502191726.7d23b7d7@msi.defcon1> In-Reply-To: References: <20170502172752.4e234cd8@msi.defcon1> <20170502185455.4e88561e@msi.defcon1> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 2 May 2017 19:08:10 +0200 "Jason A. Donenfeld" wrote: > DNS is solved using the PostUp line. See the man page example -- `man > wg-quick`. OK, I'm gonna see that. > For your down error, can you send precise command line output? Here's the startup: # ./SERVER_WG_UP.sh=20 D=C3=A9marrage du SERVEUR VPN WireGuard [#] ip link add vpnserver type wireguard [#] wg setconf vpnserver /dev/fd/63 [#] ip address add 10.11.12.1/24 dev vpnserver [#] ip link set vpnserver up [#] wg set vpnserver fwmark 51820 [#] ip -4 route add 0.0.0.0/0 dev vpnserver table 51820 [#] ip -4 rule add not fwmark 51820 table 51820 [#] ip -4 rule add table main suppress_prefixlength 0 SERVEUR VPN WireGuard d=C3=A9marr=C3=A9 The ifconfig output: vpnserver Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.11.12.1 P-t-P:10.11.12.1 Mask:255.255.255.0 UP POINTOPOINT RUNNING NOARP MTU:1420 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:4 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1=20 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) The wg show vpnserver command output: # wg show vpnserver interface: vpnserver public key: =E2=80=A6 private key: (hidden) preshared key: (hidden) listening port: 1194 fwmark: 0xca6c peer: =E2=80=A6 allowed ips: 0.0.0.0/0 And finally the down command output: # wg-quick down vpnserver wg-quick: `vpnserver' is not a WireGuard interface Jean-Yves