安装OpenVPN
bash
brew install openvpn
创建软连接
查看vpn安装路径
bash
brew list openvpn
创建软连接
bash
ln -s /usr/local/Cellar/openvpn/2.5.7/sbin/openvpn /usr/local/bin/openvpn
查看版本验证是否成功
bash
openvpn --version
配置文件client.ovpn
bash
sudo cp /usr/local/etc/openvpn/client.conf /etc/openvpn/client.ovpn
连接VPN
bash
sudo openvpn --config /Users/yvan/client.ovpn
OK