How to Put a Password in OpenVPN Config

Save

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 "auth-pam.pl," for example, the line would read: "auth-user-pass-verify auth-pam.pl 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.

References

  • Photo Credit Jupiterimages/Photos.com/Getty Images
Promoted By Zergnet

Comments

You May Also Like

Related Searches

Check It Out

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

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