qdm12 / gluetun-wiki

Home to the Markdown Wiki page for Gluetun
MIT License
269 stars 31 forks source link

Feedback: IPv6 #70

Open Vexz00 opened 1 month ago

Vexz00 commented 1 month ago

I'm referring to this: ⚠️ IPv6 is an experimental Docker feature, no thorough test was done to ensure there is no IP/DNS leak with Gluetun configured with IPv6. Feel free to create an issue or pull request if you have some testing done and can confirm. Wiki-source

tl;dr: IPv6 with Gluetun works fine and there's no DNS leak from what I can tell.

Longer version:

Here's my docker compose script that I used:

version: "3.9"

services:
  gluetun:
    image: qmcgaw/gluetun:v3.38
    container_name: Gluetun_VPN
    network_mode: "bridge"
    cap_add:
      - NET_ADMIN
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=0
    environment:
      - VPN_SERVICE_PROVIDER=mullvad
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY=<MY PRIVATE KEY>
      - WIREGUARD_ADDRESSES=10.66.243.129/32,fc00:bbbb:bbbb:bb01::3:f380/128
      - SERVER_CITIES=Zurich
    ports:
      - 1080:1080
    restart: always

  socks5:
    image: serjs/go-socks5-proxy:latest
    container_name: Go-Socks5-Proxy
    network_mode: "service:gluetun"
    depends_on:
      - gluetun
    restart: always

The proxy settings in Firefox were set accordingly to connect to the docker container.

Results: