From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: ds@fastmail.fm Received: from krantz.zx2c4.com (localhost [127.0.0.1]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 86e68169 for ; Mon, 20 Nov 2017 10:53:10 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id b01a03b5 for ; Mon, 20 Nov 2017 10:53:10 +0000 (UTC) Message-Id: <1511175481.615775.1178300464.09F18D48@webmail.messagingengine.com> From: ds@fastmail.fm To: "Jason A. Donenfeld" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="_----------=_15111754816157752" Subject: Re: disabling ipv6 with wg-quick Date: Mon, 20 Nov 2017 11:58:01 +0100 References: <1510826689.1349863.1174432192.27EE87E6@webmail.messagingengine.com> In-Reply-To: Cc: WireGuard mailing list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. --_----------=_15111754816157752 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" Thanks, removing all ipv6 addresses from configs works. I was looking for a switch in wg-quick so I can use the same configs in different networks but I work around this by editing the confs. Thanks again. On Thu, Nov 16, 2017, at 13:28, Jason A. Donenfeld wrote: > Remove the v6 addresses from Address= and AllowedIPs=, and then > you'll be set.> > -- > Sent from my telephone. > > On Nov 16, 2017 11:04 AM, wrote: >> Hi, >> >> Is there a way to disable ipv6 when using wg-quick? >> >> If I have the following line on my conf file: >> >> Address = xx.xx.x.39/32,xxxx:xxxx:xxx:bb01::327/128 >> >> wg-quick will fail with the following error: >> >> ~ 2 wg-quick up mullvad-se2 >> [#] ip link add mullvad-se2 type wireguard >> [#] wg setconf mullvad-se2 /dev/fd/63 >> [#] ip address add xx.xx.x.39/3 dev mullvad-se2 >> [#] ip address add xxxx:xxxx:xxx:bb01::327/128 dev mullvad-se2 >> RTNETLINK answers: Permission denied >> >> I have ip6 disabled in my system. >> >> Removing xxxx:xxxx:xxx:bb01::327/128 works, but wg-quick still >> sets ups>> some ipv6 routes `ip -6 ..` etc. >> >> Is there a way to use ipv4 only with wg-quick? >> >> Thanks. >> >> _______________________________________________ >> WireGuard mailing list >> WireGuard@lists.zx2c4.com >> https://lists.zx2c4.com/mailman/listinfo/wireguard --_----------=_15111754816157752 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="utf-8"
Thanks, removing all ipv6 addresses from configs works.

I was looking for a switch in wg-quick so I can use the same configs in different networks but I work around this by editing the confs.

Thanks again.
 


On Thu, Nov 16, 2017, at 13:28, Jason A. Donenfeld wrote:
Remove the v6 addresses from Address= and AllowedIPs=, and then you'll be set.

--
Sent from my telephone.

On Nov 16, 2017 11:04 AM, <ds@fastmail.fm> wrote:
Hi,

Is there a way to disable ipv6 when using wg-quick?

If I have the following line on my conf file:

Address = xx.xx.x.39/32,xxxx:xxxx:xxx:bb01::327/128

wg-quick will fail with the following error:

 ~ 2   wg-quick up mullvad-se2
[#] ip link add mullvad-se2 type wireguard
[#] wg setconf mullvad-se2 /dev/fd/63
[#] ip address add  xx.xx.x.39/3 dev mullvad-se2
[#] ip address add xxxx:xxxx:xxx:bb01::327/128 dev mullvad-se2
RTNETLINK answers: Permission denied

I have ip6 disabled in my system.

Removing xxxx:xxxx:xxx:bb01::327/128 works, but wg-quick still sets ups
some ipv6 routes `ip -6 ..` etc.

Is there a way to use ipv4 only with wg-quick?

Thanks.

_______________________________________________
WireGuard mailing list

--_----------=_15111754816157752--