Skip to main content

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

FieldTypeOptionalDescriptionDefault Value
InputStringNo
OutputStringNo
Interface NameStringNoName of the TUN interface to be created (e.g., tun0).tun0
IpStringNoIP address to assign to the TUN interface.10.0.0.1
NetmaskStringYesSubnet mask to configure for the TUN interface.255.255.255.0
Is Default RouteBoolYesWhether to set the TUN interface as the system's default network route.false
Generic OffloadBoolYesEnable generic segmentation offload (GSO) for the TUN interface, which can improve performance in certain workloads.false
MtuUint32YesMaximum Transmission Unit (MTU) to configure for the TUN interface.1280