Openvpn not starting

i am unable to start openvpn, i am a newbie in openwrt , this is the log that i am getting,

Sun Jan 14 08:48:16 2024 daemon.warn openvpn(OVPN)[8339]: --cipher is not set. Previous OpenVPN version defaulted to BF-CBC as fallback when cipher negotiation failed in this case. If you need this fallback please add '--data-ciphers-fallback BF-CBC' to your configuration and/or add BF-CBC to --data-ciphers.
Sun Jan 14 08:48:16 2024 daemon.notice openvpn(OVPN)[8339]: OpenVPN 2.5.8 mipsel-openwrt-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD]
Sun Jan 14 08:48:16 2024 daemon.notice openvpn(OVPN)[8339]: library versions: OpenSSL 3.0.12 24 Oct 2023, LZO 2.10
Sun Jan 14 08:48:16 2024 daemon.err openvpn(OVPN)[8339]: 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.
Sun Jan 14 08:48:16 2024 daemon.notice openvpn(OVPN)[8339]: Exiting due to fatal errorPreformatted text

Are you setting up and OpenVPN client to a commercial VPN provider?
If so which one?

Are you needing a username and password?

Please post your openvpn config file

i got this from kaspersky vpn, i got the file ovpn file and username, password

but i didnt found any entry to enter username and password to authenticate
its not for any corporate use

client
dev tun
proto udp
remote location-pub-kl--uae-dubai.aura-servers.com 1194
auth-user-pass
remote-cert-tls server
nobind

-----BEGIN CERTIFICATE-----
MIIB7DCCAXKgAwIBAgIRAImsCCeIk7Cfz2vQwCgYIKoZIzj0EAwMwHzEd
MBsGA1UEAxMUQXVyYSBPcGVuVlBO

  • List item

gQ0EwIBcNMjIwNDE0MDIzMjMxWhgP
MjEyMjAzMjEwMjQyMzFaMB8xHTAbBgNVBAMTFEF1cmEgT3BlblZQTiBQcm9kIENB
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEore/Hd92oexpocIap707HnmgDTNBpXui
h3voC+eifqHa/zZzEWhmJOR47XHtIwoiKcdNYLUR5ZjzRimTHfG7MMwiqSYYOAoz
ndumky/t1rNZiw1uv0RgRkDMl0+55AyEAf8EBAMCAQYwHQYD
VR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMBIGA1UdEwEB/wQIMAYBAf8CAQEw
KQYDVR0OBCIEIOQ+yvwLQ26tIt+dn4zzMnB5Gw/HUHRW3ceraoHgR5zwMAoGCCqG
SM49BAMDA2gAMGUCMQCe7/VMEZhBfXREq56t5y8goZ2cwq3b3p
V9SgV5MPox+WO3h7aBsCMEXOhv29t/u0G0TNGBQpizfvMHTj/HG6Tt98lLnobspr
/Sqee+a/79MLcVg2HC8CWw==

The presence of this line suggests you require a path to file containing your credentials to log into your vpn provider.

https://openwrt.org/docs/guide-user/services/vpn/openvpn/client-luci#b_upload_a_openvpn_config_file

Set your username and password in the GUI box and change the openvpn config file:
auth-user-pass <enter-path-filename>

what you should enter instead of is shown in the GUI in my case it would be (see screenhot below)
auth-user-pass /etc/openvpn/ks_ro.auth

sir, i only have user name and password,,, not any auth file... so how i can do that

In the OpenVPN GUI click Edit:

See: https://openwrt.org/docs/guide-user/services/vpn/openvpn/client-luci#b_upload_a_openvpn_config_file

If you are done reboot the router to take effect

yes i open that, after that... where i need to enter username and password .?

: example: login-119c98f49b1b6294ef7f4dfssdfsda6e83a32939
password-2a5050fa293b16b6edfer970c7f24aa3bc

this is i have

In the box which says:
Section to add an optional 'auth-user-pass' file with your credentials
username on the first line
password on the second line
As shown in my earlier screenshot

this is how i enter.. can you check it sir?

Correct and then modify the line with auth-user-pass in the window above and change it to
auth-user-pass /etc/openvpn/ovpn.auth
the path and filename are specified in your screenshot after `credentials'

Save and reboot your router

I hope those are not the real username and password otherwise delete the screenshot and/or ask for new credentials

thanks finally i did it !!!

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.