How to put a password in openvpn config

Written by paul nelson
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to put a password in openvpn config
OpenVPN allows for secure connections on the Internet. (Jupiterimages/Photos.com/Getty Images)

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.

Skill level:
Moderate

Other People Are Reading

Instructions

  1. 1

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

  2. 2

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

  3. 3

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

  4. 4

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

  5. 5

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

  6. 6

    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 and warnings

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

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.