Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS problem #2836

Open
7 of 8 tasks
MrAurel opened this issue May 7, 2024 · 5 comments
Open
7 of 8 tasks

DNS problem #2836

MrAurel opened this issue May 7, 2024 · 5 comments

Comments

@MrAurel
Copy link

MrAurel commented May 7, 2024

Is there a pinned issue for this?

  • I have read the pinned issues and could not find my issue

Is there an existing or similar issue/discussion for this?

  • I have searched the existing issues
  • I have searched the existing discussions

Is there any comment in the documentation for this?

  • I have read the documentation, especially the FAQ and Troubleshooting parts

Is this related to a provider?

  • I have checked the provider repo for issues
  • My issue is NOT related to a provider

Are you using the latest release?

  • I am using the latest release

Have you tried using the dev branch latest?

  • I have tried using dev branch

Docker run config used

version: '3.3'
services:
transmission-openvpn:
cap_add:
- NET_ADMIN
volumes:
- '/volume1/docker/transmission-openvpn/data/:/data'
- '/volume1/docker/transmission-openvpn/config/path/:/config'
environment:
- OPENVPN_PROVIDER=NORDVPN
- OPENVPN_CONFIG=france
- OPENVPN_USERNAME=*********
- OPENVPN_PASSWORD=********
- LOCAL_NETWORK=192.168.1.0/24
- NORDVPN_COUNTRY=FR
logging:
driver: json-file
options:
max-size: 10m
ports:
- '9091:9091'
image: haugene/transmission-openvpn
container_name: transmission-vpn
dns:
- '8.8.8.8'
- '8.8.4.4'
security_opt:
- seccomp:unconfined

Current Behavior

Cannot start

Expected Behavior

Start

How have you tried to solve the problem?

I see the pinned post #2410 but it cannot resolve my problem

Log output

Starting container with revision: 07f5a2b
TRANSMISSION_HOME is currently set to: /config/transmission-home
/etc/openvpn/start.sh: line 51: 10 Aborted (core dumped) nslookup ${HEALTH_CHECK_HOST:-"google.com"} > /dev/null 2>&1
WARNING: initial DNS resolution test failed
Creating TUN device /dev/net/tun
Using OpenVPN provider: NORDVPN
Running with VPN_CONFIG_SOURCE auto
Provider NORDVPN has a bundled setup script. Defaulting to internal config
Executing setup script for NORDVPN
/etc/openvpn/nordvpn/..

HW/SW Environment

- OS:DSM 7
- Docker:26.1.1

Anything else?

No response

@pkishino
Copy link
Collaborator

pkishino commented May 8, 2024

Any reason you didn’t post the whole log?

@pilotman28
Copy link

I'm having the same problem.

Starting container with revision: 07f5a2b
TRANSMISSION_HOME is currently set to: /config/transmission-home
WARNING: Deprecated. Found old default transmission-home folder at /data/transmission-home, setting this as TRANSMISSION_HOME. This might break in future versions.
We will fallback to this directory as long as the folder exists. Please consider moving it to /config/transmission-home
Creating TUN device /dev/net/tun
Using OpenVPN provider: PRIVADO
Running with VPN_CONFIG_SOURCE auto
No bundled config script found for PRIVADO. Defaulting to external config
Will get configs from https://github.com/haugene/vpn-configs-contrib.git
Repository is already cloned, checking for update
Already up to date.
Already on 'main'
Your branch is up to date with 'origin/main'.
Found configs for PRIVADO in /config/vpn-configs-contrib/openvpn/privado, will replace current content in /etc/openvpn/privado
No VPN configuration provided. Using default.
Modifying /etc/openvpn/privado/default.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
Modification: Updating status for config failure detection
Setting OpenVPN credentials...
adding route to local network 10.0.2.0/24 via 172.17.0.1 dev eth0
2024-05-22 10:52:02 DEPRECATED OPTION: --cipher set to 'AES-256-CBC' but missing in --data-ciphers (AES-256-GCM:AES-128-GCM). Future OpenVPN version will ignore --cipher for cipher negotiations. Add 'AES-256-CBC' to --data-ciphers or change --cipher 'AES-256-CBC' to --data-ciphers-fallback 'AES-256-CBC' to silence this warning.
2024-05-22 10:52:02 OpenVPN 2.5.9 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Sep 29 2023
2024-05-22 10:52:02 library versions: OpenSSL 3.0.2 15 Mar 2022, LZO 2.10
2024-05-22 10:52:02 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
2024-05-22 10:52:02 RESOLVE: Cannot resolve host address: ams-005.vpn.privado.io:1194 (Name or service not known)
2024-05-22 10:52:02 RESOLVE: Cannot resolve host address: ams-005.vpn.privado.io:1194 (Name or service not known)

@jrlambs
Copy link

jrlambs commented Jun 6, 2024

I had this same issue (specifically with privado, and the exact same url). that appears to be the default config, but they have a bunch of other servers. I went to privado's site and had it generate an ovpn file for me.. when I opened it up it gave me a different url to use. specifically atl-007.vpn.privado.io (but I think it was based on a location I selected). anyway... I then found this documentation about setting the OPENVPN_CONFIG env variable. you can use the variable to select which available config for your provider you want to use.

basically I just added this line to my docker-compose file under environment variables and now it works.

OPENVPN_CONFIG=atl-007

Documentation here: https://haugene.github.io/docker-transmission-openvpn/run-container/

The documentation walks you through how you can figure out what options are available to put in that spot for your vpn provider. Look at #2 under "Things to Remember"

@jhaury
Copy link

jhaury commented Jun 20, 2024

... I went to privado's site and had it generate an ovpn file for me.. when I opened it up it gave me a different url to use. specifically atl-007.vpn.privado.io (but I think it was based on a location I selected). anyway... I then found this documentation about setting the OPENVPN_CONFIG env variable. you can use the variable to select which available config for your provider you want to use.

basically I just added this line to my docker-compose file under environment variables and now it works.

OPENVPN_CONFIG=atl-007

You are my hero! My transmission has been down for a minute and this was the fix. I did the same thing, I went to Privado's website and logged in and created an ovpn file and extracted the server from the file. Mine was dfw-062 (Dallas).

Many thanks!

@pilotman28
Copy link

There is a script which is provided with the image to help with this. The script is located at, 'config/vpn-configs-contrib/openvpn/privado/updateConfigs.sh'. The only customization necessary here is to change which '.opvn' file is symlinked to 'default.opvn' to be whatever you wish. I'll submit a code change to the shell script to take an argument if given to make it easily changed but in the mean time the shell script can be modified directly to be to your liking, 'ln -s atl-007.opvn default.ovpn' in my case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants