Skip to main content

TUN to UDP tunnel (unoptimized)

This setup connects two nodes with a TUN interface on each, and sends the packets as plain UDP over a single connection, without Raft. There is no loss recovery and no latency budget, which makes it a baseline to compare the optimized tunnel against.

Requirements​

  • Two nodes, a client and a server, that can reach each other.
  • NanoPing running as root on both (sudo np up), or on Linux with the capabilities to create a TUN interface.

Once the client has sent its first packet, traffic flows both ways.

Client pipeline​

Client pipeline

The client reads packets from tun0 (10.0.0.1) and sends them to the server.

  1. Download the client pipeline.
  2. On the client node, open Pipelines, click Add, choose From File and upload the file.
  3. In the Peer Writer, set Remote Address to the server's address and port.

Server pipeline​

Server pipeline

The server receives the packets on UDP Local and delivers them to tun1 (10.0.0.2).

  1. Download the server pipeline.
  2. On the server node, open Pipelines, click Add, choose From File and upload the file.
  3. In UDP Local, set Address to the address and port the server listens on. 0.0.0.0 listens on every interface.

Start the server pipeline, then the client pipeline.

warning

These pipelines do not encrypt or authenticate the traffic. Use them for testing and evaluation only.

Next steps​