File name as an AUTHENTICATION method

This forum is for general conversation and user-user networking.

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

Post Reply
glacier
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 06, 2022 9:28 pm

File name as an AUTHENTICATION method

Post by glacier » Wed Apr 06, 2022 9:56 pm

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

User avatar
imjebran
OpenVPN Power User
Posts: 75
Joined: Tue Jul 03, 2012 10:38 am

Re: File name as an AUTHENTICATION method

Post by imjebran » Thu Apr 07, 2022 10:11 pm

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.

glacier
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 06, 2022 9:28 pm

Re: File name as an AUTHENTICATION method

Post by glacier » Fri Apr 08, 2022 12:10 pm

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.

glacier
OpenVpn Newbie
Posts: 3
Joined: Wed Apr 06, 2022 9:28 pm

Re: File name as an AUTHENTICATION method

Post by glacier » Fri Apr 15, 2022 11:26 am

Any help with my problem?

Post Reply