Can't get openvpn-credentials to work #2078
Unanswered
locutus2000
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Not a container issue..
as you are using keys you need to sort the Password for them as the log says |
Beta Was this translation helpful? Give feedback.
3 replies
-
Hmm, haven’t used like that before so would need to look it up tomorrow perhaps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a pinned issue for this?
Is there an existing or similar issue/discussion for this?
Is there any comment in the documentation for this?
Is this related to a provider?
Are you using the latest release?
Have you tried using the dev branch latest?
Config used
transmission-openvpn:
cap_add:
- NET_ADMIN
volumes:
- d:/:/data
- d:/Docker/vpn/:/etc/openvpn/custom/
- d:/Docker/vpn/openvpn-credentials.txt:/config/openvpn-credentials.txt
environment:
- OPENVPN_PROVIDER=CUSTOM
- OPENVPN_USERNAME=None
- OPENVPN_PASSWORD=None
- LOCAL_NETWORK=192.168.0.0/24
- TRANSMISSION_DOWNLOAD_DIR=/data/Downloads/complete
- TRANSMISSION_DOWNLOAD_QUEUE_SIZE=500
- TRANSMISSION_IDLE_SEEDING_LIMIT=1
- TRANSMISSION_RATIO_LIMIT=0
- TRANSMISSION_WATCH_DIR=/data/NZB
- TRANSMISSION_WATCH_DIR_ENABLED=true
- PUID=1000
- PGID=1000
logging:
driver: json-file
options:
max-size: 10m
ports:
- '9091:9091'
image: haugene/transmission-openvpn
Current Behavior
I can see that the container rewriters the default.ovpn file to point it to the user/pass file but I still get this error. But even when I just put in the username and password I get the same error.
Expected Behavior
I was expecting a succesful connection.
How have you tried to solve the problem?
I tried to add user and pass to the docker-compose file. I changed the password to contain only alfanumerics.
Log output
Starting container with revision: 25b9724
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.OJrY1QayHN
Extracting configs to /tmp/tmp.b8LGh2fLOt
ERROR: Could not find any configs for provider CUSTOM in downloaded configs
Cleanup: deleting /tmp/tmp.OJrY1QayHN and /tmp/tmp.b8LGh2fLOt
No VPN configuration provided. Using default.
Modifying /etc/openvpn/custom/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
Found existing OPENVPN credentials at /config/openvpn-credentials.txt
adding route to local network 192.168.0.0/24 via 172.21.0.1 dev eth0
Thu Nov 25 08:42:50 2021 OpenVPN 2.4.7 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 19 2021
Thu Nov 25 08:42:50 2021 library versions: OpenSSL 1.1.1f 31 Mar 2020, LZO 2.10
Thu Nov 25 08:42:50 2021 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Nov 25 08:42:50 2021 neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Private Key Password:'. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
Thu Nov 25 08:42:50 2021 Exiting due to fatal error
Environment
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions