You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon launch, the container fails out with the error message "Options error: unknown X.509 name type: /etc/openvpn/custom/name-prefix"
The problem is that the startup script seems to be changing the provider ovpn file from: verify-x509-name ca name-prefix (which is correct)
to: verify-x509-name ca /etc/openvpn/ivpn/name-prefix
Expected Behavior
It should not modify this line in the file.
How have you tried to solve the problem?
I've grabbed the config, and manually modified it (then set to read-only) to remove the offending change and it started successfully
echo 'Repository is already cloned, checking for update'
Repository is already cloned, checking for update
git -C /config/vpn-configs-contrib pull
Already up to date.
git -C /config/vpn-configs-contrib checkout main
Already on 'main'
Your branch is up to date with 'origin/main'.
++ find /config/vpn-configs-contrib/openvpn -type d -name ivpn
echo 'Found configs for IVPN in /config/vpn-configs-contrib/openvpn/ivpn, will replace current content in /etc/openvpn/ivpn'
Found configs for IVPN in /config/vpn-configs-contrib/openvpn/ivpn, will replace current content in /etc/openvpn/ivpn
echo 'Modifying /etc/openvpn/ivpn/Canada-Toronto.ovpn for best behaviour in this container'
Modifying /etc/openvpn/ivpn/Canada-Toronto.ovpn for best behaviour in this container
CONFIG_MOD_USERPASS=1
CONFIG_MOD_CA_CERTS=1
CONFIG_MOD_PING=1
CONFIG_MOD_RESOLV_RETRY=1
CONFIG_MOD_TLS_CERTS=1
CONFIG_MOD_VERBOSITY=3
CONFIG_MOD_REMAP_USR1=1
CONFIG_MOD_FAILURE_SCRIPT=1
[[ 1 == \1 ]]
echo 'Modification: Point auth-user-pass option to the username/password file'
Modification: Point auth-user-pass option to the username/password file
sed -i 's#auth-user-pass.*#auth-user-pass /config/openvpn-credentials.txt#g' /etc/openvpn/ivpn/Canada-Toronto.ovpn
[[ 1 == \1 ]]
echo 'Modification: Change ca certificate path'
Modification: Change ca certificate path
++ dirname /etc/openvpn/ivpn/Canada-Toronto.ovpn
config_directory=/etc/openvpn/ivpn
sed -i -E 's#ca\s+(./)#ca /etc/openvpn/ivpn/#g' /etc/openvpn/ivpn/Canada-Toronto.ovpn
sed -i -E 's#tls-crypt\s+(./)#tls-crypt /etc/openvpn/ivpn/#g' /etc/openvpn/ivpn/Canada-Toronto.ovpn
[[ 3 -gt 0 ]]
[[ 3 -gt 9 ]]
echo 'Modification: Set output verbosity to 3'
Modification: Set output verbosity to 3
sed -i '/^verb.*$/d' /etc/openvpn/ivpn/Canada-Toronto.ovpn
sed -i '$q' /etc/openvpn/ivpn/Canada-Toronto.ovpn
echo 'verb 3'
[[ 1 == \1 ]]
echo 'Modification: Remap SIGUSR1 signal to SIGTERM, avoid OpenVPN restart loop'
Modification: Remap SIGUSR1 signal to SIGTERM, avoid OpenVPN restart loop
sed -i '/^remap-usr1.*$/d' /etc/openvpn/ivpn/Canada-Toronto.ovpn
sed -i '$q' /etc/openvpn/ivpn/Canada-Toronto.ovpn
echo 'remap-usr1 SIGTERM'
[[ 1 == \1 ]]
echo 'Modification: Updating status for config failure detection'
Modification: Updating status for config failure detection
++ sed -n 's/^; status (.*)/\1/p' /etc/openvpn/ivpn/Canada-Toronto.ovpn
CONFIG_STATUS=
[[ '' == \u\n\k\n\o\w\n ]]
[[ '' != \f\a\i\l\u\r\e ]]
CONFIG_STATUS=unknown
sed -i '/^; status.*$/d' /etc/openvpn/ivpn/Canada-Toronto.ovpn
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?
Docker run config used
docker run --name=transmission
--cap-add=NET_ADMIN
-v /z/transmission:/data
-v /z/transmission-config:/config
-v /etc/localtime:/etc/localtime:ro
--security-opt seccomp=unconfined
-e "OPENVPN_PROVIDER=IVPN"
-e "OPENVPN_CONFIG=Canada-Toronto"
-e "OPENVPN_USERNAME=CREDredactedCRED"
-e "OPENVPN_PASSWORD=CREDredactedCRED"
-e "CREATE_TUN_DEVICE=true"
-e "DEBUG=true"
-e "TRANSMISSION_RATIO_LIMIT=1"
-e "TRANSMISSION_RATIO_LIMIT_ENABLED=true"
-e "TRANSMISSION_DOWNLOAD_DIR=/data/complete"
-e "TRANSMISSION_SPEED_LIMIT_UP=512"
-e "TRANSMISSION_SPEED_LIMIT_UP_ENABLED=true"
-e "TRANSMISSION_PEER_PORT=40078"
-e "LOCAL_NETWORK=123.123.123.0/24"
-e PGID=1000 -e PUID=1000
-p 9091:9091
--restart=always
-d haugene/transmission-openvpn:5.3.1
Current Behavior
Upon launch, the container fails out with the error message "Options error: unknown X.509 name type: /etc/openvpn/custom/name-prefix"
The problem is that the startup script seems to be changing the provider ovpn file from:
verify-x509-name ca name-prefix
(which is correct)to:
verify-x509-name ca /etc/openvpn/ivpn/name-prefix
Expected Behavior
It should not modify this line in the file.
How have you tried to solve the problem?
I've grabbed the config, and manually modified it (then set to read-only) to remove the offending change and it started successfully
Log output
Starting container with revision: 07f5a2b
TRANSMISSION_HOME is currently set to: /config/transmission-home
Creating TUN device /dev/net/tun
Using OpenVPN provider: IVPN
Running with VPN_CONFIG_SOURCE auto
No bundled config script found for IVPN. Defaulting to external config
Will get configs from https://github.com/haugene/vpn-configs-contrib.git
++ git -C /config/vpn-configs-contrib remote -v
++ head -1
++ awk '{print $2}'
++ sed -e 's/https://github.com///' -e s/.git//
Repository is already cloned, checking for update
Already up to date.
Already on 'main'
Your branch is up to date with 'origin/main'.
++ find /config/vpn-configs-contrib/openvpn -type d -name ivpn
Found configs for IVPN in /config/vpn-configs-contrib/openvpn/ivpn, will replace current content in /etc/openvpn/ivpn
Starting OpenVPN using config Canada-Toronto.ovpn
Modifying /etc/openvpn/ivpn/Canada-Toronto.ovpn for best behaviour in this container
Modification: Point auth-user-pass option to the username/password file
Modification: Change ca certificate path
++ dirname /etc/openvpn/ivpn/Canada-Toronto.ovpn
Modification: Change ping options
Modification: Update/set resolv-retry to 15 seconds
Modification: Change tls-crypt keyfile path
++ dirname /etc/openvpn/ivpn/Canada-Toronto.ovpn
Modification: Set output verbosity to 3
Modification: Remap SIGUSR1 signal to SIGTERM, avoid OpenVPN restart loop
Modification: Updating status for config failure detection
++ sed -n 's/^; status (.*)/\1/p' /etc/openvpn/ivpn/Canada-Toronto.ovpn
Setting OpenVPN credentials...
Options error: unknown X.509 name type: /etc/openvpn/ivpn/name-prefix
Use --help for more information.
HW/SW Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: