Total Pageviews

Saturday, 28 May 2016

mac上,运行brew install openvpn后,所显示的内容

If you have installed the Tuntap dependency as a source package you will
need to follow the instructions found in `brew info tuntap`. If you have
installed the binary Tuntap package, no further action is necessary.

For OpenVPN to work as a server, you will need to create configuration file
in /usr/local/etc/openvpn, samples can be found in /usr/local/Cellar/openvpn/2.3.8/share/doc/openvpn

To have launchd start openvpn at startup:
  sudo cp -fv /usr/local/opt/openvpn/*.plist /Library/LaunchDaemons
  sudo chown root /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist
Then to load openvpn now:
  sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.openvpn.plist
==> Summary
🍺  /usr/local/Cellar/openvpn/2.3.8: 72 files, 1.4M, built in 60 seconds

yudeMacBook-Air:~ brite$ sudo find / -name openvpn
/usr/local/Cellar/openvpn (此目录就是openvpn的安装目录)

yudeMacBook-Air:~ brite$ ln -s /usr/local/sbin/openvpn /usr/local/bin/openvpn
(这样即可直接运行openvpn.运行openvpn或openvpn --help查看使用说明)