Page 1 of 1
File name as an AUTHENTICATION method
Posted: Wed Apr 06, 2022 9:56 pm
by glacier
Hi
I'm looking for a way to make .OVPN config name as an authentication method.
like, for instance:
The main config is "New York-TCP.ovpn" (and it's without a user and password).
I want that if the name changed to "New York.ovpn", the config would stops working and refuse to connect.
So,
is there a way to authenticate the file name by adding a line to the .ovpn config?
Thanks for your help
Re: File name as an AUTHENTICATION method
Posted: Thu Apr 07, 2022 10:11 pm
by imjebran
Hello,
Renaming or coming OpenVPN conf is very common, this shouldn't impact any of the parameters that have been mentioned in a config file.
You simply have to copy the current config file with a new name and correct config extension.
On which OS you are connecting to the server?
Regards.
Re: File name as an AUTHENTICATION method
Posted: Fri Apr 08, 2022 12:10 pm
by glacier
Well, I'm using OpenVPN profiles on Android, so a name-based authentication would be ideal.
Is there a way to make OVPN profile authenticate the file name before connecting by adding a line to the.ovpn config?
People usually don't spend a lot of time on the config by copying it to their PC and copy everything aside from the auth line codes, but it's super easy for them to change the file name.
I'm publishing my OpenVPN configs to a Telegram group for people in Iran (usually normal VPNs don't work there, so we mostly use OpenVPN) and that's why authentication with file name is important for me, so others can't remove my channel id from the file name and my channel gets some support.
As a result, I'm looking for a method to use file name as an authentication method.
Thank you for your assistance.
Re: File name as an AUTHENTICATION method
Posted: Fri Apr 15, 2022 11:26 am
by glacier
Any help with my problem?