MyNixOS website logo

This option allows you to define interfaces encapsulating IP packets within IP packets; which should be automatically created.

For example, this allows you to create 4in6 (RFC 2473) or IP within IP (RFC 2003) tunnels.

Declarations
Type
attribute set of (submodule)
Default
{ }
Example
{
  wan4in6 = {
    remote = "2001:db8::1";
    local = "2001:db8::3";
    dev = "wan6";
    encapsulation.type = "4in6";
    encapsulation.limit = 0;
  };
}