Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Wireguard configuration file with IPv6 Endpoint causes error #2698

Open
habchab opened this issue Feb 11, 2025 · 1 comment
Open

Bug: Wireguard configuration file with IPv6 Endpoint causes error #2698

habchab opened this issue Feb 11, 2025 · 1 comment

Comments

@habchab
Copy link

habchab commented Feb 11, 2025

Is this urgent?

No

Host OS

Rocky Linux release 9.5 (Blue Onyx)

CPU arch

x86_64

VPN service provider

Custom

What are you using to run the container

Podman

What is the version of Gluetun

Running version latest built on 2025-01-22T08:30:14.628Z (commit 13532c8)

What's the problem 🤔

Wireguard environment based configuration (WIREGUARD_ENDPOINT_IP=2607:9000:9000:13::b47f) with IPv6 works.
Wireguard configuration file (/gluetun/wireguard/wg0.conf) with IPv4 endpoint works.
Wireguard configuration file (/gluetun/wireguard/wg0.conf) with IPv6 endpoint causes error. See log.

(Yes I'm using Mullvad but I wish to use the wireguard configuration file.)

Thanks so much!

Share your logs (at least 10 lines)

$ podman run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=custom -e VPN_TYPE=wireguard -e PUID=0 -e PGID=0 -e TZ=US/Eastern --device=/dev/net/tun:/dev/net/tun --security-opt label=disable -e LOG_LEVEL="DEBUG" -v "/.config_wg:/gluetun" qmcgaw/gluetun
========================================
========================================
=============== gluetun ================
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================

Running version latest built on 2025-01-22T08:30:14.628Z (commit 13532c8)

🔧 Need help? ☕ Discussion? https://github.com/qdm12/gluetun/discussions/new/choose
🐛 Bug? ✨ New feature? https://github.com/qdm12/gluetun/issues/new/choose
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2025-02-10T21:55:53-05:00 ERROR reading VPN settings: VPN provider: server selection: files WIREGUARD_ENDPOINT_IP: ParseAddr("[2607"): unable to parse IP
2025-02-10T21:55:53-05:00 INFO Shutdown successful

Share your configuration

/ # cat /gluetun/wireguard/wg0.conf
[Interface]
PrivateKey = xxxx
Address = x.x.x.x/32,xxxx:xxxx:xxxx:xxxx::xxxx:xxxx/128
DNS = x.x.x.x

[Peer]
PublicKey = UUCBSYnGq+zEDqA6Wyse3JXv8fZuqKEgavRZTnCXlBg=
AllowedIPs = 0.0.0.0/0,::0/0
#Endpoint = 198.54.135.66:51820                    # <= works
Endpoint = [2607:9000:9000:13::b47f]:51820             # <= errors out
Copy link
Contributor

@qdm12 is more or less the only maintainer of this project and works on it in his free time.
Please:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant