macOS 10.10 (Yosemite) introduced the somewhat undocumented
framework. This exposes virtual network interfaces to userland applications.
There are a number of advantages of this over previous implementations:
- Unlike tuntaposx, this is builtin to MacOS X now and so is easier to package up and distribute for end users.
vmnetuses the XPC sandboxing interfaces and should make it easier to drop a hard dependency on running networking applications as
- Most significantly,
vmnetoptionally supports NATing network traffic to the outside world, which was previously unsupported.
These OCaml bindings are constructed against the documentation contained
<vmnet.h> header file in Yosemite, and may not be correct due to
the lack of any other example code. However, they do suffice to run
MirageOS applications that can connect to the
Note the application must be configured to use DHCP: static IPs are not supported.