No --management Password is Accepted
Posted: Sun Jul 30, 2023 7:35 am
Hello all.
This is all about OpenVPN server. Running v2.6.5 on windows 10.
Throughout all of these maneuvers I stop OpenVPN server, futz with the files, then start OpenVPN server.
Reading the server log, I saw something like "management without password is dangerous".
I had this in my server config:
management localhost 1195
At this point I could do "telnet localhost 1195" and gain access to the management interface.
I changed my server config to:
management localhost 11194 manage-pw.txt
I start OpenVPN server as a daemon. The config files are in "C:\Program Files\OpenVPN\config-auto".
I created "manage-pw.txt" in Editpadlite with "abc" on the first line of the file followed by NO carriage return.
I copied the "manage-pw.txt" file to "C:\Program Files\OpenVPN\config-auto" and started OpenVPN.
Now, when I do "telnet localhost 1195" it prompts for a password.
I enter "abc" and it fails and prompts again and fails and prompts for a third time and fails and then it's done.
No access.
I have tried numerous character strings in the "manage-pw.txt" file.
All fail to grant access.
I removed the .txt portion of the file name.
Now the file is named "manage-pw" and the server config was changed to "management localhost 11194 manage-pw"
No change, "abc" password still does not grant access.
I moved the "manage-pw" out of the "C:\Program Files\OpenVPN\config-auto" and OpenVPN complained big-time and failed to start.
With the "manage-pw" file in the right place, i.e. "C:\Program Files\OpenVPN\config-auto", OpenVPN starts correctly and does not complain about anything related to the --management interface.
I have tried everything that I can think of to make password access to the management interface work successfully.
Does anyone see what I am doing wrong or could this be a bug.
Thank You
This is all about OpenVPN server. Running v2.6.5 on windows 10.
Throughout all of these maneuvers I stop OpenVPN server, futz with the files, then start OpenVPN server.
Reading the server log, I saw something like "management without password is dangerous".
I had this in my server config:
management localhost 1195
At this point I could do "telnet localhost 1195" and gain access to the management interface.
I changed my server config to:
management localhost 11194 manage-pw.txt
I start OpenVPN server as a daemon. The config files are in "C:\Program Files\OpenVPN\config-auto".
I created "manage-pw.txt" in Editpadlite with "abc" on the first line of the file followed by NO carriage return.
I copied the "manage-pw.txt" file to "C:\Program Files\OpenVPN\config-auto" and started OpenVPN.
Now, when I do "telnet localhost 1195" it prompts for a password.
I enter "abc" and it fails and prompts again and fails and prompts for a third time and fails and then it's done.
No access.
I have tried numerous character strings in the "manage-pw.txt" file.
All fail to grant access.
I removed the .txt portion of the file name.
Now the file is named "manage-pw" and the server config was changed to "management localhost 11194 manage-pw"
No change, "abc" password still does not grant access.
I moved the "manage-pw" out of the "C:\Program Files\OpenVPN\config-auto" and OpenVPN complained big-time and failed to start.
With the "manage-pw" file in the right place, i.e. "C:\Program Files\OpenVPN\config-auto", OpenVPN starts correctly and does not complain about anything related to the --management interface.
I have tried everything that I can think of to make password access to the management interface work successfully.
Does anyone see what I am doing wrong or could this be a bug.
Thank You