Skip to content

Transports Guide

Check and manage the network transports Kunuleco uses.

Commands here are node verbs. Type them as shown over SSH, or in the Urchin client's command mode (add / in chat mode). Commands that start with / exist only in the client.


Transport Overview

Transport Purpose Notes
mDNS Local network discovery Built into the node. A sighting is a hint, and the signed hello decides who the peer is
Veilid Internet connectivity through private routes, without port forwarding Installed and started for you
Tor Reachability across NAT (not location privacy) Installed and started for you

The Urchin setup wizard installs Veilid and Tor, and the node starts both when it starts. Since 0.3.129 Kunuleco runs no IPFS (kubo) at all. If one fails to start, the node keeps running without it and says so in its log, for example [WARN] Tor not available - onion services disabled.

The CapTP messaging layer is the same whichever transport carries it.


Check Transport Status

transport
@node_processes

transport shows the state of mDNS, Veilid and Tor, and whether any transport is disabled or forced. @node_processes shows which daemons are running. In the Urchin client, /network opens a live network view.


mDNS (Local Network)

How It Works

mDNS announces your node on the local network. No configuration is required.

  • Service: _kunuleco._tcp.local.
  • Port: 4243 (the CapTP port, which peers dial)

A sighting on the local network only starts a dial. The signed CapTP hello decides who the other node is. Nothing listens on port 4242 any more.

Verify mDNS

@discover
@peers

@discover lists the peers discovered, and marks one as verified only after a signed hello. @peers lists connected peers across all transports.

Firewall Requirements

Allow:

  • UDP 5353 (mDNS multicast)
  • TCP 4243 (CapTP connections)

IPFS (removed in 0.3.129)

Kunuleco no longer runs IPFS. 0.3.111 stopped storing media in it, 0.3.127 stopped using it for connections, and 0.3.129 removed the kubo daemon, its binary and @ipfsid. The node keeps the bytes of each note itself, named by a content address (a hash of the bytes), and another node fetches them from the node it got the note from. An update removes the old bin/ipfs. At its next start the node removes the firewall rule an earlier node added for IPFS's swarm port (14001, or the port this install moved it to), unless something on the computer still holds that port, such as another install's IPFS. Removing the rule asks for administrator approval once (UAC on Windows, pkexec on Linux), and if you decline, the node asks again at each start. A full uninstall leaves the old data/ipfs folder in place, which you can delete yourself.


Veilid

How It Works

The node starts its own veilid-server and talks to it over Veilid's API, on port 15959 on an installed node (5959 without the installer's config.json). You do not start Veilid yourself.

Verify Veilid

@veilidstatus
@vpeers

@veilidstatus shows the Veilid connection status. @vpeers shows Veilid peers.

Troubleshooting Veilid

Not connecting:

  1. Run transport and @veilidstatus
  2. Wait for Veilid to attach to its network, which takes longer on the first start
  3. Check veilid-daemon.log in the node's logs directory

Time sync:

Veilid requires accurate system time. Turn on network time:

# Linux
sudo timedatectl set-ntp true

# macOS
sudo sntp -sS time.apple.com

Since 0.3.110 Kunuleco does not run on Intel Macs, so every transport here is for Apple Silicon Macs, Windows and Linux.


Tor

How It Works

The node starts its own Tor, with its own torrc under the installation's data/tor directory. You do not install or configure a system Tor.

Tor gives your node a persistent .onion address, which peers can reach across NAT. It does not hide where your node is.

Verify Tor

@torstatus
@toraddress

@torstatus shows the Tor status. @toraddress shows your .onion address.

Isolated Instance

Kunuleco uses its own ports:

Feature Default Kunuleco
SOCKS 9050 19050
Control 9051 19051

If your Tor asks for a control-port password, set TOR_CONTROL_PASSWORD for the node. See the configuration reference.

Troubleshooting Tor

Can't establish circuit:

  1. Run @torstatus
  2. Check the control port answers: nc -z localhost 19051
  3. Check tor-daemon.log in the node's logs directory
  4. The network may be blocking Tor

How a Connection Picks a Transport

When your node makes first contact, it tries a live LAN session, then the addresses an invite line carries, and from 5 seconds on what the directory lists for the host. The first way in that proves the host and gets an answer wins. The order is in Reference: Transports.

Force a Specific Transport

The node's owner can pin the next join to one transport:

transport force veilid
transport force none

transport force <mdns|veilid|tor> applies to the next join. transport force none clears it. Any other name, ipfs included, is refused as an unknown transport.


Disable a Transport

If a transport is causing issues, the node's owner can turn it off and on again:

transport disable veilid
transport enable veilid
transport enable all

transport disable and transport enable take mdns, veilid or tor, and transport enable all turns every transport back on and clears a forced one. Only the node's owner can change them. A setting applies to the whole node, for every session, and every signed-in client shows a disabled transport as down at once.

Since 0.2.240 the setting survives a restart. The node writes it to transports.json in its data directory and reads it at start-up before any transport starts. A Tor, Veilid or mDNS the owner switched off is not started. An mDNS that is off advertises nothing on the LAN, and a Tor that is off dials nobody, including the background reconnect that earlier releases kept running. If the node cannot read the file, it says so in node.log and starts every transport, so a damaged file never decides silently. Run transport disable <name> again to switch one off.

ipfs is refused as an unknown transport, and an IPFS disable saved by an earlier release is dropped when the node starts.

Since 0.3.0 switching Veilid off while the node runs takes effect at once. The node closes every Veilid connection that is up and sends nothing more over Veilid, so a Hall member's next line goes by Tor or another transport that is on. It also stops refreshing and publishing its Veilid route, so neither the DHT nor the bootstrap is told of a route the node will not answer on. Before 0.3.0 a Veilid connection already up kept carrying whispers after transport disable veilid. transport enable veilid refreshes and publishes the route at once and dials again the connections the disable closed.

Since 0.3.100 switching Tor off while the node runs also takes effect at once. The node closes every Tor connection that is up, its own dials and the connections that came in on its onion alike, sends nothing more over Tor, and refuses new connections to the onion while keeping its port. Before 0.3.100 a Tor connection made before the switch kept carrying messages until it dropped (TPT-154). transport enable tor lets Tor dial and accept connections again.

transport enable resumes a transport that is running. A Veilid or Tor the node started with switched off is not running, and since 0.3.158 neither is a Veilid that transport disable veilid stopped while it was still starting. Switching one of these on saves the setting, and the transport starts the next time the node restarts. The reply says so, and until the restart nothing goes over it. If one could not start when the node started, the reply says so instead, and node.log says why. If one is still starting, the reply says it needs no restart.

transport force is not saved, and a restart clears it.


Transport State in the Client

The node tells the Urchin client the state of each transport when you sign in, and again whenever one changes. The client's transport chips repaint by themselves, with no command typed. Each transport is ready, impaired or down, with a reason where there is one (verbs/transport_control.py:46-122, as of 0.2.241):

State Reason Meaning
ready The transport is up
ready no peer route Veilid is attached and holds no route to any peer yet, so it carries nothing until a route arrives. Before 0.2.241 this read impaired
down not running The transport's daemon is not running
down disabled The node's owner turned it off with transport disable
down detached, attaching or detaching Veilid's daemon runs and its core is not attached to the network

The client has a chip for Tor and Veilid, and none for mDNS. Its IPFS chip reads off since 0.3.129, because the node runs no IPFS. Each chip's mark and hover text read the row (client scenes/terminal/terminal_scene.gd:7704-7827):

Mark When Hover text
◆ ready, carrying peers <name>: carrying <n>
◇ ready, nobody on it, or Veilid with no peer route <name>: up, nobody on it, with — no route to any peer added for Veilid
✕ impaired or down <name>: cannot carry a message — <why>, such as the daemon is not running or the node's owner switched it off
· the node has not said yet <name>: the node has not said yet

Live voice rides Veilid only. When Veilid is down or impaired, the talk control greys and says why. Since 0.2.241 the client offers live voice when Veilid is attached with no peer route, and the node drops those frames until a route arrives, without telling you (captp/live_streams.py:521-527). A voice note still works in every state, because it goes through your node.

To see the same rows as text, run transport states, which answers with one line such as Transports: mdns ready, tor ready, veilid ready (no peer route). A plain-text session over TLS gets that line at sign-in and on each change. An SSH session receives no events.