Member-only story
Stunnel + Tunnelblick Client on macOS
Connect your OpenVPN through Stunnel on MacOS
Pre-requisites
This article assumes already have Stunnel and OpenVPN server installed somewhere. If not, you can read how I setup my Stunnel and OpenVPN on Ubuntu 16.04 or 18.04.
Installing Tunnelblick
Tunnelblick is an OpenVPN client for macOS. We will use it as our OpenVPN client for macOS. Download and install from this here.
Install Stunnel
To install stunnel, we’ll install it through brew. If you don’t have brew installed on your macOS, head on over to brew homepage and copy the installation script.
Once you have brew installed, install stunnel with the following command.
$ brew install stunnel
Setup OpenVPN client configuration
First let’s set up the openpvn configuration file. Before we start, you should have these information ready.
- The IP address of the server your OpenVPN resides.
- The
ca.crt
file that your server generated. - The
your-vpn-server.key
andyour-vpn-server.crt
files respectively.