4.0 KiB
4.0 KiB
Client Setup: OpenVPN over SSL
Table of Contents
Windows
- Configure
stunnel- Download and install stunnel
- Start
stunnelby launchingstunnel GUI startfrom the Start Menu - Locate the
stunnelicon in the Task Bar, right click, and selectEdit Configuration - Copy everything in
stunnel.confand paste into thestunnelconfiguration file. Save and close it after editing. - Right click on the
stunnelicon again, and selectReload Configuration
- Configure OpenVPN
- Download and install OpenVPN
- Start
OpenVPN GUIfrom 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
stunnelicon in the Task Bar, right click, and selectExit
- Locate the OpenVPN icon in the Task Bar, right click, and select
MacOS
-
Configure
stunnel-
Install Homebrew
-
Install
stunnelvia Homebrew by running this inTerminal:brew install stunnel -
Configure and start
stunnel# In order to run these, you need to log in to your Mac with an administrator account. # When prompted for password, enter the password of the current user, # Run this in the directory that contains 'stunnel.conf' sudo cp stunnel.conf /usr/local/etc/stunnel/stunnel.conf # Start stunnel sudo stunnel
-
-
Configure OpenVPN
- Download and install Tunnelblick
- Locate your OVPN file in
Finder, and double-click to open it. - Locate the
Tunnelblickicon on the top-right corner. Click on it, and select the server you want to connect to.
-
To disconnect
- Locate the
Tunnelblickicon on the top-right corner. Click on it, and selectDisconnect All. - To stop
stunnel, run this inTerminal:sudo killall stunnel
- Locate the
Linux
-
Install
stunnelandopenvpnon your device.# Debian/Ubuntu sudo apt install -y stunnel openvpn # CentOS/RHEL sudo yum install -y epel-release sudo yum install -y stunnel openvpn # Fedora sudo dnf install -y stunnel openvpn -
Configure and start
stunnel# Run this in the directory that contains 'stunnel.conf' sudo cp stunnel.conf /etc/stunnel/ # Start stunnel sudo stunnel -
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 # Stop stunnel sudo killall stunnel
Android
- OpenVPN is supported on Android, but OpenVPN over SSL support isn't very good.
- If you installed OpenVPN without SSL, see Client Setup: OpenVPN
iOS
- OpenVPN is supported on iOS, but OpenVPN over SSL is not supported.
- If you installed OpenVPN without SSL, see Client Setup: OpenVPN
Troubleshooting
-
If you're unable to connect to your server with OpenVPN...
-
Please check if
stunnelis running on your device.- On Windows, check if the
stunnelicon is present in the Task Bar (bottom right). - Run this to check on MacOS or Linux (both client and server)
# You should see stunnel in the output ps -A | grep stunnel - On Windows, check if the
-
Also check if both
stunneland OpenVPN are running on your server.# You should see stunnel in the output ps -A | grep stunnel # 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
-