Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

TLS Handshake failed - restart loop #177

Open
aarianmm opened this issue Apr 15, 2023 · 7 comments
Open

TLS Handshake failed - restart loop #177

aarianmm opened this issue Apr 15, 2023 · 7 comments

Comments

@aarianmm
Copy link

aarianmm commented Apr 15, 2023

version: "2"
services:
bittorrentvpn:
image: dyonr/qbittorrentvpn
container_name: qbittorrentvpn
privileged: true
environment:
- VPN_TYPE=openvpn
- VPN_USERNAME=myusername
- VPN_PASSWORD=mypassword
- ENABLE_SSL=no
- PUID=1000 #optional
- PGID=1000 #optional
- WEBUI_PORT_ENV=8080 #optional
- INCOMING_PORT_ENV=8999 #optional
- VPN_ENABLED=yes
- LAN_NETWORK=192.168.0.0/24
- NAME_SERVERS=8.8.8.8,8.8.4.4
ports:
- 8080:8080
- 8999:8999
- 8999:8999/udp
volumes:
- /home/myname/.config:/config
- /home/myname/Downloads:/downloads
restart: unless-stopped

The process ends up in a loop that iterates with increasing delay. I believe it is an openvpn issue, but I've tried two different config files (both of which work normally) and my credentials are correct.
image

image

Is the issue related to port 1195 used by openvpn?

@DyonR
Copy link
Owner

DyonR commented Apr 15, 2023

Are you sure that your .ovpn file contains the proper certificate? Or contains one atleast

@aarianmm
Copy link
Author

I got new .ovpn files from my provider and the issue still persists. The .ovpn files work normally and definitely contain the proper certificates. (I have scribbled out the actual certificate).

Screenshot 2023-04-15 at 19 10 20

@aarianmm
Copy link
Author

The .ovpn files work normally- I tested them just now. The username and password used are the same- when used normally they work as desired. I also tried exposing port 1195 in the yml file- this didn't do anything. Could it be related to iptables?

Screenshot 2023-04-15 at 19 32 53

@aarianmm
Copy link
Author

the issue occurs the same even if I input my login credentials wrong.

@aarianmm
Copy link
Author

@DyonR anything else you suggest?

@aarianmm
Copy link
Author

any issues with the docker compose file? @DyonR

@s01ice
Copy link

s01ice commented Jul 10, 2023

@DyonR I have the same issue. Well the .ovpn has by default an scramble option, see line 11 but if I remove that line I get into the same loop.

2023-07-10 16:23:35.703049 [INFO] Starting OpenVPN...
Options error: Unrecognized option or missing or extra parameter(s) in /config/openvpn/DK_Copenhagen_OB_UDP.ovpn:11: scramble (2.5.1)
Use --help for more information.

See below .ovpn file:
explicit-exit-notify
proto udp
remote dk2-auto-udp-obf.dns2use.com 1210
client
verb 1
dev tun
auth-user-pass credentials.conf
persist-key
persist-tun
nobind
scramble obfuscate z7+B4h{&
compress

-----BEGIN CERTIFICATE-----
...

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

No branches or pull requests

3 participants