Tethering the hard way.
It turns out that Apple doesn't allow you to use <net/if_utun.h>
unless you pay them a lot of money. Unfortunately you can't use tunemu either.
Apple refuses to allow people to use the VPN framework unless they sign some sort of NDA: http://blog.michael.kuron-germany.de/2010/09/ios-4-1-undocumented-vpn-api-used-by-cisco-anyconnect/
Install GNU libtool and automake:
$ brew install libtool automake
Generate a static key and place it in /configuration
:
$ openvpn --genkey --secret static.key
Build the dependencies:
$ bash build-libssl.sh
$ bash build-openvpn.sh
To clean the Submodules/openvpn
build folder:
$ cd /Submodules/openvpn
$ git clean -f && git clean -f -X
Simplest OpenVPN setup: Static Key Mini-HOWTO