mirror of
https://github.com/Nyr/openvpn-install.git
synced 2024-11-28 07:56:07 +03:00
3.0 KiB
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 selectExit
- Locate the OpenVPN icon in the Task Bar, right click, and select
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 selectDisconnect All
. - To stop
stunnel
, run this inTerminal
:sudo killall stunnel
- Locate the
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+
andMenu
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, selectConnect
orOK
.
- If you see a
- To disconnect: Select the
VPN connection
notification in your notification center, and clickDisconnect
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
.
- If you see a popup with a list of different apps, select
- Click on the switch next to
Connection
, make sure it's at theON
position. - To disconnect: click on the switch next to
Connection
, make sure it's at theOFF
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.
- Run the install script and select
-