How are Username & Password stored in the configuration file (.ovpn)?

This article refers to the configuration file (.ovpn) for the mdex control centre device or DevicePro SIM tunnel.

Contents:
Configuration file (.ovpn) including Username and Password
Manually edit Username and Password
Remove Username and Password

 

Configuration file (.ovpn) including Username and Password

The configuration file (.ovpn) can be downloaded directly from the portal. 

The Username and Password of the respective OpenVPN device are already included in the configuration file (.ovpn) in this section:

# Option 1:
# Enter below the 'account data' from the OpenVPN device (overwrite Username & Password) and remove all semicolons (;):
<auth-user-pass>
Username
Password
</auth-user-pass>

 

Example:

Username: i0123456
Password: abcdefghijklm

# Option 1:
# Enter below the 'account data' from the OpenVPN device (overwrite Username & Password) and remove all semicolons (;):
<auth-user-pass>
i0123456
abcdefghijklm
</auth-user-pass>

When establishing the OpenVPN connection with this configuration file (.ovpn), manual entry of the login details (Username & Password) is no longer necessary.

Please note that the connection using the configuration file (.ovpn) with pre-set login credentials (username & password) is allowed for only one client at a time. If multiple clients connect simultaneously with the same credentials, the connection will be regularly interrupted for all!

 

Manually edit Username and Password

If, for example, the password was changed afterwards, the current configuration file (.ovpn) can be downloaded directly from the portal, see above.

Alternatively, the login details can also be manually adjusted directly in the configuration file in the following section by updating Username and/or Password with the current data. 

# Option 1:
# Enter below the 'account data' from the OpenVPN device (overwrite Username & Password) and remove all semicolons (;):
<auth-user-pass>
Username
Password
</auth-user-pass>

 

Remove Username and Password

If no fixed login details are to be stored in the configuration file (.ovpn), this can be manually disabled by commenting out the corresponding parameters <auth-user-pass> and </auth-user-pass> with a semicolon. It is also recommended to neutralise the "Username" and "Password" and comment them out with a semicolon as well, see example:

# Option 1:
# Enter below the 'account data' from the OpenVPN device (overwrite Username & Password) and remove all semicolons (;):

;<auth-user-pass>
;Username
;Password
;</auth-user-pass>

When establishing the OpenVPN connection, the Username and Password of the OpenVPN device must be entered. 

Was this article helpful?
0 out of 0 found this helpful

Articles in this section