Tundra

HexDocsLicensegithub actions badge

TUN device support for Elixir.

Tundra provides a simple API for creating and using TUN devices on Linux and Darwin.

As TUN device creation is a privileged operation on most systems, Tundra uses a server process to create and configure TUN devices. Once created, the device is represented within the runtime as a socket on Darwin and a NIF resource on Linux, with process-ownership semantics i.e.

Installation

If available in Hex, the package can be installed by adding tundra to your list of dependencies in mix.exs:

def deps do
  [
    {:tundra, "~> 0.1"}
  ]
end