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
WireGuard@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/wireguard