1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-24 14:06:07 +03:00
openvpn-install/Documentation/client-ovpn.md
2018-07-24 23:25:48 -04:00

3.0 KiB

Client Setup: OpenVPN

Table of Contents

Windows

  • Configure OpenVPN
    • Download and install OpenVPN
    • Start OpenVPN GUI from the Start Menu
    • Locate the OpenVPN icon in the Task Bar, right click, and select Import file...
    • Select your OVPN file
    • Right click on the OpenVPN icon again, and select Connect
  • To disconnect
    • Locate the OpenVPN icon in the Task Bar, right click, and select Disconnect
    • Locate the stunnel icon in the Task Bar, right click, and select Exit

MacOS

  • Configure OpenVPN
    • Download and install Tunnelblick
    • Locate your OVPN file in Finder, and double-click to open it.
    • Locate the Tunnelblick icon on the top-right corner. Click on it, and select the server you want to connect to.
  • To disconnect
    • Locate the Tunnelblick icon on the top-right corner. Click on it, and select Disconnect All.
    • To stop stunnel, run this in Terminal: sudo killall stunnel

Linux

  • Install openvpn on your device.

    # Debian/Ubuntu
    sudo apt install -y openvpn
    
    # CentOS/RHEL
    sudo yum install -y epel-release
    sudo yum install -y openvpn
    
    # Fedora
    sudo dnf install -y openvpn
    
  • Connect to OpenVPN

    # Run this in the directory that contains your OVPN file
    # Replace 'client' with your OVPN filename
    openvpn --config client.ovpn
    
  • To disconnect

    # Stop OpenVPN
    sudo killall openvpn
    

Android

  • Download OpenVPN for Android from Google Play Store
  • Transfer your OVPN file to your device.
  • Click on the import icon (between + and Menu icon), and select your OVPN file.
  • Click on the check mark to confirm import.
  • Click on a profile name to connect.
    • If you see a connection request popup, select Connect or OK.
  • To disconnect: Select the VPN connection notification in your notification center, and click Disconnect in the popup.

iOS

  • Download OpenVPN Connect from App Store
  • Send the OVPN file as an attachment to yourself via email, and open it in your email app on the iOS device.
    • If you see a popup with a list of different apps, select OpenVPN Connect.
  • Click on the switch next to Connection, make sure it's at the ON position.
  • To disconnect: click on the switch next to Connection, make sure it's at the OFF position.

Troubleshooting

  • If you're unable to connect to your server with OpenVPN...

    • Check if OpenVPN is running on your server.

      # You should see openvpn in the output
      ps -A | grep openvpn
      
    • If you still can't connect, try removing and reinstalling OpenVPN on your server.

      • Run the install script and select Uninstall
      • Run the install script again and make sure you enter the correct information.