OpenVPN on Ubuntu 17.10 will not authenticate - SIGTERM[soft,auth-failure]
OpenVPN serive will not connect. Here is the log:
Sat Jan 27 17:40:38 2018 WARNING: file '/etc/openvpn/login.txt' is group or others accessible
Sat Jan 27 17:40:38 2018 OpenVPN 2.4.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 3 $
Sat Jan 27 17:40:38 2018 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Sat Jan 27 17:40:38 2018 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Jan 27 17:40:44 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]209.205.122.194:1198
Sat Jan 27 17:40:44 2018 UDP link local: (not bound)
Sat Jan 27 17:40:44 2018 UDP link remote: [AF_INET]209.205.122.194:1198
Sat Jan 27 17:40:44 2018 [1b7db3b5e6b9282605edc646795be3b9] Peer Connection Initiated with [AF_INET]209.205.122.194:1198
Sat Jan 27 17:40:48 2018 AUTH: Received control message: AUTH_FAILED
Sat Jan 27 17:40:48 2018 SIGTERM[soft,auth-failure] received, process exiting
I have checked my username and password in the login.txt several times. I can log into the website with the credentials and connect on my Windows PC also so that is not the issue.
Sat Jan 27 17:40:38 2018 WARNING: file '/etc/openvpn/login.txt' is group or others accessible
Sat Jan 27 17:40:38 2018 OpenVPN 2.4.3 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Jul 3 $
Sat Jan 27 17:40:38 2018 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Sat Jan 27 17:40:38 2018 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Sat Jan 27 17:40:44 2018 TCP/UDP: Preserving recently used remote address: [AF_INET]209.205.122.194:1198
Sat Jan 27 17:40:44 2018 UDP link local: (not bound)
Sat Jan 27 17:40:44 2018 UDP link remote: [AF_INET]209.205.122.194:1198
Sat Jan 27 17:40:44 2018 [1b7db3b5e6b9282605edc646795be3b9] Peer Connection Initiated with [AF_INET]209.205.122.194:1198
Sat Jan 27 17:40:48 2018 AUTH: Received control message: AUTH_FAILED
Sat Jan 27 17:40:48 2018 SIGTERM[soft,auth-failure] received, process exiting
I have checked my username and password in the login.txt several times. I can log into the website with the credentials and connect on my Windows PC also so that is not the issue.
Comments
owned by root, group root, no permissions for anyone other than root.
the contents of the file should be exactly two lines, nothing more. 1st line is the account name. 2nd line is the password.
make sure your line termination characters are appropriate for your OS. use sudo cat -t -v /etc/openvpn/login.txt to make any extraneous control chars visible.
-rw-r--r-- 1 root root
I just change to:
After changing permissions I restarted the service
Then checked the status and still active (exited)
Thank you