Skip to content

Bug: Torguard port forwarding not working #1797

Open
@SnippetSpace

Description

@SnippetSpace

Is this urgent?

Yes

Host OS

Linux (truenas scale)

CPU arch

x86_64

VPN service provider

TorGuard

What are you using to run the container

Kubernetes

What is the version of Gluetun

3.35

What's the problem 🤔

I've been trying to get torguard to work with gluetun for the last 6 hours, after having tried this 2 months ago and abandoning. It simply doe snot work.

  1. Setting up torguard with VPN_SERVICE_PROVIDER=torguard and OPENVPN does not work. It keeps looping an error (see logs below).

  2. Setting up torguard with a custom wireguard configuration. This connects, but the port forwarding is broken. According to support it is a docker limitation: Torguard + Wireguard port forwarding #1282 but it works for other providers?

  3. setting up torguard with a custom openvpn provider. VPN is healthy, connects, port gets forwarded with FIREWALL_VPN_INPUT_PORTS but checking the ports online there is no open port. I've checked this with a public and dedicated IP.

With truenas scale's truechart apps only supporting gluetun and having no good vpn alternatives I'm stranded with a broken VPN implementation. Is there any way torguard support can be improved? Is ther any way I can fix port forwarding for a custom openvpn or wireguard implementation?

Share your logs

log for scenario 1:

INFO [vpn] starting
INFO [firewall] allowing VPN connection...
INFO [openvpn] OpenVPN 2.5.8 x86_64-alpine-linux-musl [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Nov  2 2022
INFO [openvpn] library versions: OpenSSL 3.1.1 30 May 2023, LZO 2.10
INFO [openvpn] TCP/UDP: Preserving recently used remote address: [AF_INET]206.217.216.9:1912
INFO [openvpn] UDP link local: (not bound)
INFO [openvpn] UDP link remote: [AF_INET]206.217.216.9:1912
INFO [healthcheck] program has been unhealthy for 21s: restarting VPN (see https://github.com/qdm12/gluetun/wiki/Healthcheck)
INFO [vpn] stopping

Share your configuration

using truecharts on truenas scale GUI:

scenario 1

VPN_SERVICE_PROVIDER: torguard
OPENVPN_USER: xxx
OPENVPN_PASSWORD: xxx
SERVER_COUNTRIES: netherlands
FIREWALL_VPN_INPUT_PORTS: 60000
FIREWALL_OUTBOUND_SUBNETS: 192.168.x.x/24

scenario 2:

VPN_SERVICE_PROVIDER: custom
VPN_TYPE: wireguard
VPN_ENDPOINT_IP: 75.x.x.x.x
VPN_ENDPOINT_PORT: 1337
WIREGUARD_PUBLIC_KEY: xxxxxxx
WIREGUARD_PRIVATE_KEY: xxxxxxxx
WIREGUARD_ADDRESSES: 10.x.x.x/24
SERVER_COUNTRIES: netherlands
FIREWALL_VPN_INPUT_PORTS: 60000
FIREWALL_OUTBOUND_SUBNETS: 192.168.x.x/24

scenario 3:

OPENVPN_CUSTOM_CONFIG: /gluetun/vpn.conf
VPN_SERVICE_PROVIDER: custom
OPENVPN_USER: xxx
OPENVPN_PASSWORD: xxx
FIREWALL_VPN_INPUT_PORTS: 60000
FIREWALL_OUTBOUND_SUBNETS: 192.168.x.x/24

vpn.config extract from torguard

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions