qdm12/gluetun-wiki

AirVPN: IPv6 only vs IPv4 only but not both?

Opened this issue · 3 comments

URL to the Wiki page

https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/airvpn.md

What's missing?

First, from the AirVPN config page:

⚠️ WIREGUARD_ADDRESSES may only contain an IPv6 address (such as ff:ff.../128) if your container setup supports IPv6. To do so, see the IPv6 document. Otherwise, remove the IPv6 address from WIREGUARD_ADDRESSES.

And second, from the IPv6 page:

Wireguard: modify the WIREGUARD_ADDRESSES value to have both an IPv4 and IPv6 address. Note if you only set an IPv6 Wireguard address, all IPv4 traffic won't go through which is undesirable.

Does this mean that gluetun either only supports IPv4 or IPv6 when it comes to AirVPN, but not both?

I think it can support both if you enable ipv6 in Docker as shown in the page you mentioned. I wasn't successful and simply disabled ipv6 like so:

    sysctls:
      - net.ipv6.conf.all.disable_ipv6=1

Does this mean that gluetun either only supports IPv4 or IPv6 when it comes to AirVPN, but not both?

From my day to day usage both IPv4 and IPv6 can be enabled at the same time, and I can see both IPv4 and IPv6 peers in qbittorrent.

WIREGUARD_ADDRESSES may only contain an IPv6 address (such as ff:ff.../128) if your container setup supports IPv6. To do so, see the IPv6 document. Otherwise, remove the IPv6 address from WIREGUARD_ADDRESSES.

Means you can only add an IPv6 address if your setup supports IPv6. You can have an IPv4 address always.

Wireguard: modify the WIREGUARD_ADDRESSES value to have both an IPv4 and IPv6 address. Note if you only set an IPv6 Wireguard address, all IPv4 traffic won't go through which is undesirable.

Means you should really set both an ipv4 and ipv6 address to tunnel both ip families.

so it's IPv4 OR (IPv4 and IPv6).
Please let me know if you feel something could be reworded to be clearer 😉