You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great.
I have been testing the container this morning. The gluetun service does not pickup the custom.ovpn file in the /opt/gluetun-data folder.
It also seems changing the .env file has no effect on the service, as I tried to put a different wireguard conf file in the .env and the service continued to look for the ovpn file (which exists, but it still could not find)
Hmmm, i think i got it talking to the conf file now. Not sure what happened there, I was entering a journalctl -u gluetun.service which gives a different output. I'll continue troubleshooting as my conf file is not getting a connection to the vpn
I tried running it but ran into some issues. Maybe it's because I tested it with a free ProtonVPN configuration. This is my current .env file:
VPN_SERVICE_PROVIDER=protonvpn
VPN_TYPE=wireguard
WIREGUARD_PRIVATE_KEY=XXXXXXXXX
But I get this error in the logs:
Mar 10 22:29:09 gluetun systemd[1]: Started gluetun.service - Gluetun VPN Client.
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: =============== gluetun ================
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: =========== Made with ❤️ by ============
Mar 10 22:29:09 gluetun gluetun[23267]: ======= https://github.com/qdm12 =======
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: Running version unknown built on an unknown date (commit unknown)
Mar 10 22:29:09 gluetun gluetun[23267]: 🔧 Need help? ☕ Discussion? https://github.com/qdm12/gluetun/discussions/new/choose
Mar 10 22:29:09 gluetun gluetun[23267]: 🐛 Bug? ✨ New feature? https://github.com/qdm12/gluetun/issues/new/choose
Mar 10 22:29:09 gluetun gluetun[23267]: 💻 Email? quentin.mcgaw@gmail.com
Mar 10 22:29:09 gluetun gluetun[23267]: 💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z WARN You are using the old environment variable USER, please consider changing it to OPENVPN_USER
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] default route found: interface eth0, gateway 192.168.1.254, assigned IP 192.168.1.109 and family v4
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] local ethernet link found: eth0
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] local ipnet found: 192.168.1.0/24
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] local ipnet found: 2001:8a0:5ddc:3f00::/64
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] local ipnet found: fe80::/64
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [firewall] enabling...
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [firewall] enabled successfully
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [storage] merging by most recent 20901 hardcoded servers and 20901 servers read from /gluetun/servers.json
Mar 10 22:29:09 gluetun gluetun[23267]: @@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@.@@ @@@@@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@.@@@ @@@@@@@@==@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.@..@@ @@@@@@@=@..==@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@ @@@.@@.@@ @@@@@@===@@@@.=@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @...-@@ @@@@.@@.@@@ @@@ @@@@@@=======@@@=@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@@ @@@.-%@.+@@@@@@@@ @@@@@%============@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.--@..@@@@.-@@@@@@@==============@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@ @@@-@--@@.@@.---@@@@@==============#@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@ @@@.@@-@@.@@--@@@@@===============@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@.@--@@@@@@@@@@================@@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@..--@@*@@@@@@================@@@@+*@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.---@@.@@@@=================@@@@--@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@-.---@@@@@@================@@@@*--@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.:-#@@@@@@===============*@@@@.---@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.-------.@@@============@@@@@@.--@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@..--------:@@@=========@@@@@@@@.--@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.-@@@@@@@@@@@========@@@@@ @@@.--@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@.@@@@===============@@@@@ @@@@@@---@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@==============@@@@@@@@@@@@*@---@@@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@=============@@@@@ @@@...------------.*@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@%===========@@@@@@ @@@..------@@@@.-----.-@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@.=======@@@@@@ @@@.-------@@@@@@-.------=@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@@@===@@@@@@ @@.------@@@@ @@@@.-----@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@==@@@=@@@@@@@ @@@.-@@@@@@@ @@@@@@@--@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@@@@@@@ @@@@@@@@ @@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@@ @@@@ @@@@
Mar 10 22:29:09 gluetun gluetun[23267]:
Mar 10 22:29:09 gluetun gluetun[23267]: panic: runtime error: invalid memory address or nil pointer dereference
Mar 10 22:29:09 gluetun gluetun[23267]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8122ba]
Mar 10 22:29:09 gluetun gluetun[23267]: goroutine 19 [running]:
Mar 10 22:29:09 gluetun gluetun[23267]: github.com/qdm12/gluetun/internal/pprof.New({0x36678d114d78, 0x0, 0x0, {{0xe60c7b, 0xe}, {0x0, 0x0}, {0x1680b00, 0x36678d110b40}, 0xb2d05e00, ...}})
Mar 10 22:29:09 gluetun gluetun[23267]: github.com/qdm12/gluetun/internal/pprof/server.go:16 +0x1a
Mar 10 22:29:09 gluetun gluetun[23267]: main._main({0x16823f0, 0x36678d0a4050}, {{0xe58bb5, 0x7}, {0xe58bb5, 0x7}, {0xe618d7, 0xf}}, {0x36678cee80d0, 0x1, ...}, ...)
Mar 10 22:29:09 gluetun gluetun[23267]: ./main.go:259 +0x1205
Mar 10 22:29:09 gluetun gluetun[23267]: main.main.func2()
Mar 10 22:29:09 gluetun gluetun[23267]: ./main.go:99 +0x125
Mar 10 22:29:09 gluetun gluetun[23267]: created by main.main in goroutine 1
Mar 10 22:29:09 gluetun gluetun[23267]: ./main.go:98 +0x5d4
Mar 10 22:29:09 gluetun systemd[1]: gluetun.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Mar 10 22:29:09 gluetun systemd[1]: gluetun.service: Failed with result 'exit-code'.
Mar 10 22:29:09 gluetun systemd[1]: gluetun.service: Consumed 748ms CPU time, 79.4M memory peak.
I tried with both OpenVPN (without using the ovpn file) and with wireguard, and none of them seem to have worked, but I don't quite know what I might be doing wrong...
On my side it seems the error is the same, I made sure the .env file had the PPROF_ENABLED=no but still the error keeps happening in the pprof.new function. I tried with both openvpn configuration and wireguard configuration. Could it be the ProtonVPN provider? @Scales82 which provider are you using?
It also crashed after it saying it couldnt find /etc/alpine-release I ran touch /etc/alpine-release and it started working.
I use protonvpn profile with wireguard.
Now I see the tunnel up and running:
3: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1320 qdisc noqueue state UNKNOWN group default
link/none
inet x.x.x.x/32 scope global wg0
valid_lft forever preferred_lft forever
And I can ping 1.1.1.1 again and curl ifconfig.me to see the VPN public IP address.
Hope this helps.
I tried running it but ran into some issues. Maybe it's because I tested it with a free ProtonVPN configuration. This is my current .env file: VPN_SERVICE_PROVIDER=protonvpn VPN_TYPE=wireguard WIREGUARD_PRIVATE_KEY=XXXXXXXXX
But I get this error in the logs:
Mar 10 22:29:09 gluetun systemd[1]: Started gluetun.service - Gluetun VPN Client.
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: =============== gluetun ================
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: =========== Made with ❤️ by ============
Mar 10 22:29:09 gluetun gluetun[23267]: ======= https://github.com/qdm12 =======
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: ========================================
Mar 10 22:29:09 gluetun gluetun[23267]: Running version unknown built on an unknown date (commit unknown)
Mar 10 22:29:09 gluetun gluetun[23267]: 🔧 Need help? ☕ Discussion? https://github.com/qdm12/gluetun/discussions/new/choose
Mar 10 22:29:09 gluetun gluetun[23267]: 🐛 Bug? ✨ New feature? https://github.com/qdm12/gluetun/issues/new/choose
Mar 10 22:29:09 gluetun gluetun[23267]: 💻 Email? quentin.mcgaw@gmail.com
Mar 10 22:29:09 gluetun gluetun[23267]: 💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z WARN You are using the old environment variable USER, please consider changing it to OPENVPN_USER
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] default route found: interface eth0, gateway 192.168.1.254, assigned IP 192.168.1.109 and family v4
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] local ethernet link found: eth0
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] local ipnet found: 192.168.1.0/24
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] local ipnet found: 2001:8a0:5ddc:3f00::/64
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [routing] local ipnet found: fe80::/64
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [firewall] enabling...
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [firewall] enabled successfully
Mar 10 22:29:09 gluetun gluetun[23267]: 2026-03-10T22:29:09Z INFO [storage] merging by most recent 20901 hardcoded servers and 20901 servers read from /gluetun/servers.json
Mar 10 22:29:09 gluetun gluetun[23267]: @@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@.@@ @@@@@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@.@@@ @@@@@@@@==@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.@..@@ @@@@@@@=@..==@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@ @@@.@@.@@ @@@@@@===@@@@.=@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @...-@@ @@@@.@@.@@@ @@@ @@@@@@=======@@@=@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@@ @@@.-%@.+@@@@@@@@ @@@@@%============@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.--@..@@@@.-@@@@@@@==============@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@ @@@-@--@@.@@.---@@@@@==============#@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@ @@@.@@-@@.@@--@@@@@===============@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@.@--@@@@@@@@@@================@@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@..--@@*@@@@@@================@@@@+*@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.---@@.@@@@=================@@@@--@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@-.---@@@@@@================@@@@*--@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.:-#@@@@@@===============*@@@@.---@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.-------.@@@============@@@@@@.--@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@..--------:@@@=========@@@@@@@@.--@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@.-@@@@@@@@@@@========@@@@@ @@@.--@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@.@@@@===============@@@@@ @@@@@@---@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@==============@@@@@@@@@@@@*@---@@@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@=============@@@@@ @@@...------------.*@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@%===========@@@@@@ @@@..------@@@@.-----.-@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@.=======@@@@@@ @@@.-------@@@@@@-.------=@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@@@===@@@@@@ @@.------@@@@ @@@@.-----@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@==@@@=@@@@@@@ @@@.-@@@@@@@ @@@@@@@--@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@@@@@@@ @@@@@@@@ @@@@@@@
Mar 10 22:29:09 gluetun gluetun[23267]: @@@@@@@@ @@@@ @@@@
Mar 10 22:29:09 gluetun gluetun[23267]:
Mar 10 22:29:09 gluetun gluetun[23267]: panic: runtime error: invalid memory address or nil pointer dereference
Mar 10 22:29:09 gluetun gluetun[23267]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x8122ba]
Mar 10 22:29:09 gluetun gluetun[23267]: goroutine 19 [running]:
Mar 10 22:29:09 gluetun gluetun[23267]: github.com/qdm12/gluetun/internal/pprof.New({0x36678d114d78, 0x0, 0x0, {{0xe60c7b, 0xe}, {0x0, 0x0}, {0x1680b00, 0x36678d110b40}, 0xb2d05e00, ...}})
Mar 10 22:29:09 gluetun gluetun[23267]: github.com/qdm12/gluetun/internal/pprof/server.go:16 +0x1a
Mar 10 22:29:09 gluetun gluetun[23267]: main._main({0x16823f0, 0x36678d0a4050}, {{0xe58bb5, 0x7}, {0xe58bb5, 0x7}, {0xe618d7, 0xf}}, {0x36678cee80d0, 0x1, ...}, ...)
Mar 10 22:29:09 gluetun gluetun[23267]: ./main.go:259 +0x1205
Mar 10 22:29:09 gluetun gluetun[23267]: main.main.func2()
Mar 10 22:29:09 gluetun gluetun[23267]: ./main.go:99 +0x125
Mar 10 22:29:09 gluetun gluetun[23267]: created by main.main in goroutine 1
Mar 10 22:29:09 gluetun gluetun[23267]: ./main.go:98 +0x5d4
Mar 10 22:29:09 gluetun systemd[1]: gluetun.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Mar 10 22:29:09 gluetun systemd[1]: gluetun.service: Failed with result 'exit-code'.
Mar 10 22:29:09 gluetun systemd[1]: gluetun.service: Consumed 748ms CPU time, 79.4M memory peak.
I tried with both OpenVPN (without using the ovpn file) and with wireguard, and none of them seem to have worked, but I don't quite know what I might be doing wrong...
On my side it seems the error is the same, I made sure the .env file had the PPROF_ENABLED=no but still the error keeps happening in the pprof.new function. I tried with both openvpn configuration and wireguard configuration. Could it be the ProtonVPN provider? @Scales82 which provider are you using?
It also crashed after it saying it couldnt find /etc/alpine-release I ran touch /etc/alpine-release and it started working. I use protonvpn profile with wireguard.
Now I see the tunnel up and running:
3: wg0: <POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1320 qdisc noqueue state UNKNOWN group default
link/none
inet x.x.x.x/32 scope global wg0
valid_lft forever preferred_lft forever
And I can ping 1.1.1.1 again and curl ifconfig.me to see the VPN public IP address. Hope this helps.
This worked! I used via wireguard private key :) Thanks!
same fix worked for me on torguard. have not tested anything else yet. would like to add a tailscale node to this, use as an exit node via the gluetun VPN if anyone knows how to?
Activity
nikp79 commentedon Mar 10, 2026
Awesome thank you!
Scales82 commentedon Mar 10, 2026
Great! note there is a typo in the quoted script. its gluetun not ton.
MickLesk commentedon Mar 10, 2026
Right, i Change it tomorrow, its copied from the Request
Scales82 commentedon Mar 10, 2026
Great.
I have been testing the container this morning. The gluetun service does not pickup the custom.ovpn file in the /opt/gluetun-data folder.
It also seems changing the .env file has no effect on the service, as I tried to put a different wireguard conf file in the .env and the service continued to look for the ovpn file (which exists, but it still could not find)
MickLesk commentedon Mar 10, 2026
After Service restart?
Scales82 commentedon Mar 10, 2026
yes after service restart. unless I'm doing that incorrectly. I'm just running a
sudo systemctl restart gluetunMickLesk commentedon Mar 10, 2026
Whats the Output after restart If you Hit journalctl -u gluetun -f?
Scales82 commentedon Mar 10, 2026
Hmmm, i think i got it talking to the conf file now. Not sure what happened there, I was entering a
journalctl -u gluetun.servicewhich gives a different output. I'll continue troubleshooting as my conf file is not getting a connection to the vpntiagodenoronha commentedon Mar 10, 2026
I tried running it but ran into some issues. Maybe it's because I tested it with a free ProtonVPN configuration. This is my current .env file:
VPN_SERVICE_PROVIDER=protonvpn
VPN_TYPE=wireguard
WIREGUARD_PRIVATE_KEY=XXXXXXXXX
But I get this error in the logs:
I tried with both OpenVPN (without using the ovpn file) and with wireguard, and none of them seem to have worked, but I don't quite know what I might be doing wrong...
9 remaining items
Scales82 commentedon Mar 12, 2026
I’m using torguard. But I’m yet to try the new script as I’ve been travelling last 24 hours. Will report back when I get a chance in next 48
combro2k commentedon Mar 12, 2026
I found out what it is, I added:
It also crashed after it saying it couldnt find
/etc/alpine-releaseI rantouch /etc/alpine-releaseand it started working.I use protonvpn profile with wireguard.
Now I see the tunnel up and running:
And I can ping
1.1.1.1again and curlifconfig.meto see the VPN public IP address.Hope this helps.
combro2k commentedon Mar 12, 2026
see my fix above
tiagodenoronha commentedon Mar 12, 2026
This worked! I used via wireguard private key :) Thanks!
MickLesk commentedon Mar 12, 2026
anything what i should do in the static script, or was the issue an wrong conf?
combro2k commentedon Mar 12, 2026
I can't tell if its a general issue or a spefic one bound to wireguard. I think it wouldnt do any harm to include at least the
part as it clearly needs it in order to start, at least for me then.
Scales82 commentedon Mar 15, 2026
same fix worked for me on torguard. have not tested anything else yet. would like to add a tailscale node to this, use as an exit node via the gluetun VPN if anyone knows how to?
github-actions commentedon Mar 16, 2026
A PR has been created for gluetun: community-scripts/ProxmoxVE#12976
michelroegl-brunner commentedon Mar 16, 2026
Merged with #12976 in ProxmoxVE
github-actions commentedon Mar 16, 2026
Files deleted with PR #1583