qdm12 / gluetun

VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.
https://hub.docker.com/r/qmcgaw/gluetun
MIT License
7.35k stars 348 forks source link

Bug: fast locally but slow remotely #1610

Open KaKi87 opened 1 year ago

KaKi87 commented 1 year ago

Is this urgent?

Yes

Host OS

Debian Bullseye

CPU arch

x86_64

VPN service provider

NordVPN

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version latest built on 2023-05-10T09:05:10.273Z (commit 4bb77eb)

What's the problem 🤔

Downloading (e.g. using curl or aria2c) through the HTTP proxy is fast locally but slow remotely :

Without proxy With proxy
Local 5 MB/s 10 MB/s
Remote 80 MB/s 1 MB/s

Since remote speed without proxy is greater than local speed with proxy, I'd expect that remote with proxy would be at least as fast as local with proxy.

Share your logs

No output during speedtest (except write: broken pipe when interrupting, which I assume is normal).

Share your configuration

version: "3"
services:
  gluetun:
    restart: always
    image: qmcgaw/gluetun
    # container_name: gluetun
    # line above must be uncommented to allow external containers to connect. See https://github.com/qdm12/gluetun/wiki/Connect-a-container-to-gluetun#external-container-to-gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - <port>:8888/tcp # HTTP proxy
    volumes:
      - <path>:/gluetun
    environment:
      # See https://github.com/qdm12/gluetun/wiki
      - VPN_SERVICE_PROVIDER=nordvpn
      - VPN_TYPE=openvpn
      # OpenVPN:
      - OPENVPN_USER=<user>
      - OPENVPN_PASSWORD=<pass>
      - SERVER_REGIONS=France
      # Wireguard:
      # - WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU=
      # - WIREGUARD_ADDRESSES=10.64.222.21/32
      # Timezone for accurate log times
      - TZ=Europe/Paris
      # Server list updater. See https://github.com/qdm12/gluetun/wiki/Updating-Servers#periodic-update
      - UPDATER_PERIOD=24h
      - UPDATER_VPN_SERVICE_PROVIDERS=nordvpn
      - HTTPPROXY=on
      - HTTPPROXY_USER=<user>
      - HTTPPROXY_PASSWORD=<pass>
      - HTTPPROXY_STEALTH=on

Thanks

KaKi87 commented 1 year ago

@qdm12 up please, thanks

qdm12 commented 1 year ago

Are your two machines in the same physical network?

KaKi87 commented 1 year ago

No