Mac 10.12 install OpenVPN client

Install OpenVPN client on Mac 10.12
Instructions :

1. There are many beautiful clients that can be installed under Mac, such as Tunnelblick and so on.

2. But here, the original version of OpenVPN is built directly, which is relatively cool.

Installation:

brew install openvpn
Tip: When installing openvpn, no soft link is created by default and can be created manually.

#Query the installation location
brew list openvpn #Create
a soft link
ln -s /usr/local/Cellar/openvpn/2.4.4/sbin/openvpn /usr/local/bin/openvpn
Configuration:

put 5 files

ca.crt client1. crt client1.key client.ovpn conf ta.key is
placed under /etc/openvpn (if not, manually create sudo mkdir /etc/openvpn)

and start:

sudo openvpn --daemon --cd /etc/openvpn --config client .ovpn --log-append /var/log/openvpn.log &

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325335366&siteId=291194637