Tun
Creates and configures a TUN (network TUNnel) interface on the host system. A TUN interface operates at the network layer (Layer 3) of the OSI model and emulates a point-to-point network device. It provides a virtual IP interface that allows the pipeline to send and receive raw IP packets as if they were arriving from or destined to a physical network interface. TUN interfaces are commonly used for implementing virtual private networks (VPNs), IP tunneling, and other Layer 3 routing or forwarding mechanisms, where packet-level manipulation is required. Note, see also the TAP component for Layer 2 Ethernet frame handling.
Tags: NETWORKING
, IO
, INGRESS
Field | Type | Optional | Description | Default Value |
---|---|---|---|---|
Input | String | No | ||
Output | String | No | ||
Interface Name | String | No | Name of the TUN interface to be created (e.g., tun0). | tun0 |
Ip | String | No | IP address to assign to the TUN interface. | 10.0.0.1 |
Netmask | String | Yes | Subnet mask to configure for the TUN interface. | 255.255.255.0 |
Is Default Route | Bool | Yes | Whether to set the TUN interface as the system's default network route. | false |
Generic Offload | Bool | Yes | Enable generic segmentation offload (GSO) for the TUN interface, which can improve performance in certain workloads. | false |
Mtu | Uint32 | Yes | Maximum Transmission Unit (MTU) to configure for the TUN interface. | 1280 |