qdm12 / gluetun-wiki

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

Docker Hub image qmcgaw/gluetun:latest #48

Closed elliotks closed 3 months ago

elliotks commented 3 months ago

Hello,

After updating to qmcgaw/gluetun:latest - breaks integration with SOCKS5 serjs/go-socks5-proxy

SOCKS5 proxy error. Address: 10.1.8.37:1080. Message: "Connection reset by peer".

qmcgaw/gluetun:latest DIGEST:sha256:63220ec07e40bdf5fdbfe0a6d39d0468ee25c93bd2b31b0e12005cd230b44b8e

My current compose file, had to switch to qmcgaw/gluetun:v3
DIGEST:sha256:e15ede3ce007e3f6e3f6532c7d8d6051f4bb0dca4bb3c5edd7aa3316916e9990

for it to work again.

version: "3"
services:
  gluetun:
    image: qmcgaw/gluetun:v3
    container_name: gluetun
    # line above must be uncommented to allow external containers to connect.
    # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md#external-container-to-gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
    # Specify ports to access other containers inside glutun network.
      - 8888:8888/tcp # HTTP proxy
    # - 8388:8388/tcp # Shadowsocks
    # - 8388:8388/udp # Shadowsocks
      - 1080:1080 #socks5 proxy
    volumes:
      - glutun_data:/gluetun
    restart: unless-stopped
    environment:
      # See https://github.com/qdm12/gluetun-wiki/tree/main/setup#setup
      # providers https://github.com/qdm12/gluetun/blob/master/internal/constants/providers/providers.go
      - VPN_SERVICE_PROVIDER=${VPN_SERVICE_PROVIDER}
      - VPN_TYPE=${VPN_TYPE}
      # OpenVPN:
      - OPENVPN_USER=${OPENVPN_USER}
      - OPENVPN_PASSWORD=${OPENVPN_PASSWORD}
      # update manually with glutun_update 
      # docker run --rm -v gluton_gluton_data:/gluetun qmcgaw/gluetun update -enduser -providers "private internet access"
      - SERVER_REGIONS=${SERVER_REGIONS}
      # Wireguard:
      # - WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU=
      # - WIREGUARD_ADDRESSES=10.64.222.21/32
      # Timezone for accurate log times
      - TZ=${TZ}
      # Server list updater
      # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md#update-the-vpn-servers-list
      # default is 24h
      - UPDATER_PERIOD=${UPDATER_PERIOD}
      - HTTPPROXY=${HTTPPROXY}
    env_file:
      - stack.env
  socks5:
    image: serjs/go-socks5-proxy:latest
    depends_on:
      - gluetun
    network_mode: "service:gluetun"
    restart: unless-stopped
  #xyz:
  #  image: xyz
  #  container_name: xyz
  #  network_mode: "service:gluetun"
  # Add the following to another docker-compose.yaml 
  #  network_mode: "container:gluetun"

volumes:
  glutun_data:

I didn't have more time to review this repo to blame anything yet.

Manny8787 commented 3 months ago

My container updated via watchtower and afterwards would not start. The only thing that worked for me was to change to image: qmcgaw/gluetun:v3 Thank you for this