Open Izakun opened 3 weeks ago
Okay here is the actual issue: 2024-08-24 15:32:22 neither stdin nor stderr are a tty device and you have neither a controlling tty nor systemd - can't ask for 'Enter Auth Username:'. If you used --daemon, you need to use --askpass to make passphrase-protected keys work, and you can not use --auth-nocache.
You can lookup how to hardcode passwords onto a .ovpn file. I have while very insecure hard coded into the .ovpn file.
The file not found part is some kind of error in my code (I see the same thing on my end)
I create a PR for add this feature : https://github.com/MapGuy11/homeassistant-openvpn-client-addon/pull/2
But I still have an error, my vpn disconnects and reconnects every 2 min without errors My .ovpn look's like this ;
client
remote 123.456.789.123 12345
proto udp
nobind
dev-type tap
pull
dev tap0
ping 10
ping-restart 120
auth-user-pass
auth-retry interact
mssfix 1452
explicit-exit-notify 3
cipher AES-128-CBC
remote-cert-tls server
verify-x509-name "C=FR, O=Freebox SA, CN=Freebox OpenVPN server XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# use tls-remote instead of verify-x509-name for deprecated openssl
# tls-remote "/C=FR/O=Freebox_SA/CN=Freebox_OpenVPN_server_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
...
And on my VPN server supervisor I see 2 or 3 connection for the same profil :
Have you an idea ?
Hmm
This is what my config looks like I use OpnSense as my VPN host. But previously used just Ubuntu without any issues.
dev tun
persist-tun
persist-key
auth SHA1
client
resolv-retry infinite
remote .connorhackenberg.tech 51863 udp
lport 0
verify-x509-name "C=US, ST=, L=, O=Connor Hackenberg IT Solutions, emailAddress=, CN=opnvpntest" subject
remote-cert-tls server
compress stub
route-nopull
route 192.168.1.74 255.255.255.255
route 192.168.1.180 255.255.255.255
<ca>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1
Hi,
Ill try to connect my HAOS to an OpenVPN server. I put my .ovpn in the config directory but when i start the addon i get this error :
Have you any idea to fix that ? My file name is
client.ovpn
.Thank's for help