How to Put a Password in OpenVPN Config


OpenVPN is an open-source VPN (virtual private network) product. OpenVPN allows users to create a secure connection to another network or node. It can traverse firewalls and NAT's (network address translators), which makes it especially useful in corporate environments where these technologies are employed. Secure connections use either TLS (transport layer security) or its predecessor SSL (secure sockets layer) encryption protocols to ensure no eavesdropping can occur. Custom authentication can also be implemented to further validate the identity of the connecting user.

  • Navigate to the OpenVPN configuration file on the client side computer ("client.conf" on Linux/BSD/Unix or "client.opvn" on Windows.)

  • Open the configuration file with a text editor, ensuring that the file is not read-only.

  • Enter a new line into the configuration file, and then type "auth-user-pass."

  • Save the configuration file. The client will now be able to accept username and password requests from OpenVPN servers.

  • Open the configuration file on the OpenVPN server's machine.

  • Insert "auth-user-pass-verify" on a new line followed by a space and the perl script used to authenticate connecting clients. This line should then end with "via-file." Using a sample script called "," for example, the line would read: "auth-user-pass-verify via-file."

Tips & Warnings

  • To force the server to only use accept username/password authentication, type "client-cert-not-required" into the server's OpenVPN configuration file.

Related Searches


  • Photo Credit Jupiterimages/ Images
Promoted By Zergnet


You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!