haugene / vpn-configs-contrib

A collection of configs for various VPN providers
GNU General Public License v3.0
180 stars 744 forks source link

Tried 100 things but can't let it work... (VPNUNLIMITED CUSTOM .OVPN) #103

Closed poudenes closed 2 years ago

poudenes commented 2 years ago

Do you have the latest provider files?

Have you tested the provider files?

Can you create a PR for this config?

Provider details

Hi All,

I tried to let this work. I have created a custom .OVPN file at VPNunlimited portal. This OVPN file have a server specific for torrents. I mount the file as written in documents. But its unclear what to do with:

      OPENVPN_PROVIDER: custom
      OPENVPN_CONFIG: nl

Here is my compose:

version: '3.3'
services:
  transmission-openvpn:
    image: haugene/transmission-openvpn
    container_name: transmission
    hostname: transmission
    restart: always
    cap_add:
      - NET_ADMIN
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /volume1/data/torrents:/data:rw
      - /volume1/docker/transmission/ovpn/default.ovpn:/etc/openvpn/custom/default.ovpn

    environment:
      TZ: Europe/Amsterdam
      PUID: 1026
      PGID: 100
      OPENVPN_PROVIDER: custom
      OPENVPN_CONFIG: nl
      OPENVPN_USERNAME: username
      OPENVPN_PASSWORD: password
    ports:
       - 9091:9091

Anything else?

No response

pkishino commented 2 years ago

I don't see any problem, if using custom (should be CUSTOM per wiki) then the OPENVPN_CONFIG is ignored so you can remove that line.. are there any problems? I don't see any issue

poudenes commented 2 years ago

Changed to docker compose. Now frustum.ovpn is used. As I can see it is used because after "Starting OpenVPN using config frcustom.ovpn"

Starting container with revision: 8cc1870cc039201e0e2f8b7684a9f4e96ae03ab9
Creating TUN device /dev/net/tun
Using OpenVPN provider: CUSTOM
Running with VPN_CONFIG_SOURCE auto
No bundled config script found for CUSTOM. Defaulting to external config
Downloading configs from https://github.com/haugene/vpn-configs-contrib/archive/main.zip into /tmp/tmp.OKhXDYGgBX
Extracting configs to /tmp/tmp.Ia5uj235Vs
ERROR: Could not find any configs for provider CUSTOM in downloaded configs
Cleanup: deleting /tmp/tmp.OKhXDYGgBX and /tmp/tmp.Ia5uj235Vs
Starting OpenVPN using config frcustom.ovpn
Modifying /etc/openvpn/custom/frcustom.ovpn for best behaviour in this container
Modification: Point auth-user-pass option to the username/password file
Modification: Change ca certificate path
Modification: Change ping options
Modification: Update/set resolv-retry to 15 seconds
Modification: Change tls-crypt keyfile path
Modification: Set output verbosity to 3
Modification: Remap SIGUSR1 signal to SIGTERM, avoid OpenVPN restart loop
Setting OpenVPN credentials...

But still those servers are connected to:

Tue Apr 12 12:15:31 2022 [openvpn2.vpnunlimitedapp.com] Peer Connection Initiated with [AF_INET]xxx.xxx.xxx.xxx:1194
Tue Apr 12 12:15:33 2022 SENT CONTROL [openvpn2.vpnunlimitedapp.com]: 'PUSH_REQUEST' (status=1)
Tue Apr 12 12:15:38 2022 SENT CONTROL [openvpn2.vpnunlimitedapp.com]: 'PUSH_REQUEST' (status=1)
Tue Apr 12 12:15:43 2022 SENT CONTROL [openvpn2.vpnunlimitedapp.com]: 'PUSH_REQUEST' (status=1)

instead of fr.vpnunlimitedapp.com

poudenes commented 2 years ago

moment of writing I see progress... its downloading .. very slow.. so will continue with some tests

poudenes commented 2 years ago

Tried torrent with lots of seeders. Speed is great. Problem solved. Backup the docker compose for archive :)