PDF download Download Article
Stay safe online no matter what device you use by setting up OpenVPN
PDF download Download Article

Virtual Private Networks (VPNs) are increasing in popularity as more and more users seek anonymity online. OpenVPN is one of the more popular VPN solutions. It is compatible with most operating systems. You'll need a special client in order to connect to an OpenVPN server. You will also need configuration files from your VPN service provider.

Things You Should Know

  • When you sign up for OpenVPN, you will get login information to use in the client.
  • If you're using OpenVPN on Windows, you'll need to know if your OS is 32- or 64-bit.
  • To use the VPN you'll need to download the config files from OpenVPN.
Method 1
Method 1 of 5:

Windows

PDF download Download Article
  1. You'll need to use a connection program called a "client". The client handles the connection between your computer and the OpenVPN server. You can download the client from here . Use the "Installer" download link that matches your version of Windows.
    • You'll need to know if you are running a 32-bit or 64-bit version of Windows. Press ⊞ Win + Pause and look for the "System type" entry.
  2. Run the OpenVPN installer after downloading it. Confirm that you want to run it. Follow the instructions to proceed, and leave all of the settings at their default. All of the necessary services will be installed so that OpenVPN can function properly.
    Advertisement
  3. Any server that is running OpenVPN should provide you with a set of configuration files. One of the files may be a security certificate. The other file will contain the server information. There may be multiple server configuration files if your VPN service offers multiple servers. [1]
    • You can find these configuration files on your VPN service's Support page. The config files may come packaged in a ZIP file.
    • If you can't find the configuration files, you may still be able to connect. See Step 9 of this section.
  4. Copy the key and the configuration file(s) to the C:\Program Files\OpenVPN\config folder for OpenVPN. It may be located at C:\Program Files (x86)\OpenVPN\config instead.
  5. You must run OpenVPN as an administrator.
    • Make sure OpenVPN isn't already running before starting it this way.
  6. You'll see a list of servers based on the files that you copied into the OpenVPN config folder.
  7. You'll be prompted to enter your username and password for the server. You received these credentials when you signed up for the VPN service.
  8. You'll see a notification appear indicating that you are connected to the VPN server. Your internet traffic will now be sent through the VPN.
  9. You may still be able to connect and download the correct files.
    • Start OpenVPN and enter the IP address or hostname of the server. [2]
    • Enter your username and password when prompted.
    • Select your profile if prompted.
    • Select "Always" when prompted to accept the certificate.
  10. Advertisement
Method 2
Method 2 of 5:

Mac

PDF download Download Article
  1. You'll need a program called a "client" to connect. The OpenVPN organization does not provide a client for Mac. Tunnelblick is a free OpenVPN client designed for Mac. You can download Tunnelblick here . Select the "Latest" link to download the installer.
  2. This will open a new window. Right-click the Tunnelblick.app file and select "Open". Confirm that you want to open the program. Enter your administrator information to install Tunnelblick. [3]
  3. Every OpenVPN service should have configuration files available to download. These make setting up Tunnelblick much simpler. You can download the files from your VPN's support page.
  4. Start Tunnelblick once you've downloaded the files. You'll be prompted to select your new configuration files before the client can start. Click "I have configuration files" and then select "OpenVPN Configuration(s)". If the files are specifically for Tunnelblick, select "Tunnelblick VPN Configuration(s)" instead.
    • Select "Open Private Configurations Folder". This will open a new finder window.
    • Drag and drop all of your configuration files into the folder that opens.
  5. Select a server to connect to it.
    • You'll be prompted for your administrator password the first time that you connect to the server.
  6. Enter the username ad password you were assigned by the VPN service when prompted. You can choose to save these to your Keychain for easier logins.
  7. You may be prompted to download a security certificate upon connecting to the server. You'll need this certificate to connect. [4]
  8. Advertisement
Method 3
Method 3 of 5:

Linux

PDF download Download Article
  1. You'll need a client in order to connect to OpenVPN servers. Most distributions have an OpenVPN client available from the repository. The following instructions are for Ubuntu and other Debian distributions. The process is similar for others.
    • Open the Terminal and type sudo apt-get install openvpn . Enter your administrator password to start installing.
  2. Most VPN services will provide configuration files for OpenVPN. These files are necessary for OpenVPN to connect to the VPN service. You can find these files on the service's Support page.
    • The files will typically come in a ZIP archive. Extract the files to an easy-to-access folder.
  3. Return to the Terminal. If you extracted the files to your Home directory, you shouldn't need to change locations. If you extracted the files to a different directory, navigate to it in the Terminal. Enter the following command to start OpenVPN:
    • openvpn --config configFile .ovpn
  4. You'll be prompted for your VPN username and password. You got these credentials when you signed up for the VPN service. Your password will not appear as you type it.
  5. You'll see the Terminal update the status of the connection. When you see the message "Initialization Sequence Completed", you are connected. [5]
  6. Advertisement
Method 4
Method 4 of 5:

Android

PDF download Download Article
  1. This is the official OpenVPN client for Android. It can be downloaded for free from the Google Play Store. It does not require root access for your device.
  2. You should be able to find these files on the VPN service's support page. You may need a File Manager app to open the ZIP file and extract the files.
  3. Select OpenVPN Connect when prompted which app you want to open the file with.
  4. You'll need to enter your username and password into the login screen. Tap the "Save" box to log in easier next time.
  5. Your Android device will use the configuration file to connect to the VPN server. You can verify that the process worked by checking your public IP address. It should be that of the VPN server instead of your real IP. [6]
  6. Advertisement
Method 5
Method 5 of 5:

iPhone and iPad

PDF download Download Article
  1. You can download this for free from the iOS App Store. You don't need to be jailbroken to use the app.
  2. You'll need to email the configuration files to yourself from your computer. This will allow you to access them from your iOS device. Download the files from your VPN service's support page. Extract them if they are in ZIP or RAR format.
  3. Start a new email message on your computer. Attach the OpenVPN configuration files to the message. Send them to yourself so that you can open the email on your iOS device.
  4. Open the message that you sent to yourself and tap the configuration file that you want to use. Select "Open in OpenVPN".
  5. You received these login credentials when you signed up for the VPN service.
  6. You will be prompted to allow OpenVPN to enable the VPN connection. Allow it to proceed.
  7. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    How do you recommend people maintain their privacy online?
    Spike Baron
    Computer Repair Technician
    Spike Baron is a Network Engineer & Desktop Support Expert based in Los Angeles, California. He is the owner of Spike’s Computer Repair. With over 25 years of working experience in the tech industry, Spike specializes in PC and Mac computer repair, used computer sales, virus removal, data recovery, and hardware and software upgrades. He has worked as an IT Systems expert for numerous companies, including Huntington Health, Blackbox, Honda, and Manufacturers Bank. In his spare time, Spike also builds and restores computers. He has his CompTIA A+ certification for computer service technicians and is a Microsoft Certified Solutions Expert.
    Computer Repair Technician
    Expert Answer
    A Virtual Private Network masks your IP address from the world so when you're browsing, nobody knows where you're coming from. There are paid VPNs that are probably better than the free ones. Other than that, don't share your data too much, and don't click on attachments from anybody you don't know.
Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Name
      Please provide your name and last initial
      Thanks for submitting a tip for review!

      About This Article

      Thanks to all authors for creating a page that has been read 257,791 times.

      Reader Success Stories

      • Emkaay Mpho

        Oct 8, 2017

        "It helped me how to connect to an OpenVPN server. It's done and it may be exceptional."
      Share your story

      Is this article up to date?

      Advertisement