Issue related with auto-login

This forum is for admins who are looking to build or expand their OpenVPN setup.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
goroldi
OpenVpn Newbie
Posts: 9
Joined: Sat Oct 20, 2018 4:17 pm

Issue related with auto-login

Post by goroldi » Tue Mar 24, 2020 12:07 am

Hi,

I`m running openVPN (2.4.3) on linux

Client config
client
dev tun
proto udp
remote xxxxxxx

nobind
auth-user-pass /etc/openvpn/auth.txt
resolv-retry infinite

auth SHA512
cipher AES-256-CBC
comp-lzo
verb 2
mute-replay-warnings
remote-cert-tls server
persist-key
persist-tun


I genrate a auth.txt file with my credentials


If I use openvpn --config /etc/openvpn/client.ovpn comand is working fine.

Code: Select all

Tue Mar 24 00:56:34 2020 WARNING: file '/etc/openvpn/auth.txt' is group or others accessible
Tue Mar 24 00:56:34 2020 OpenVPN 2.4.3 arm-oe-linux-gnueabi [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH/PKTINFO] [AEAD] built on Aug 16 2018
But if I use

/etc/init.d/openvpn start comand

every time is asking for credentials.


So Is any diference betwen them?


Thanks in avance

goroldi
OpenVpn Newbie
Posts: 9
Joined: Sat Oct 20, 2018 4:17 pm

Re: Issue related with auto-login

Post by goroldi » Tue Mar 24, 2020 9:02 pm

Any idea?? I'm lost and I dont know what to do.

Post Reply