Skip to main content

Crate tunnet_core

Crate tunnet_core 

Source

Re-exports§

pub use agent_config::TunnetConfig;
pub use agent_config::load_dns;
pub use agent_config::load_firewall;
pub use secret_store::AgentSecrets;
pub use secret_store::NetworkSecrets;
pub use secret_store::SealPolicy;
pub use secret_store::SealTier;
pub use secret_store::load_agent;
pub use secret_store::persist_agent;
pub use acl::AclEngine;
pub use acl::SelfIdentity;
pub use acl_hook::AclHook;
pub use control::ManagementClient;
pub use control::SignedClient;
pub use control::UnauthedClient;
pub use identity::AgentIdentity;
pub use iroh_pool::ConnPool;
pub use node::DirectNetworkRuntime;
pub use node::CoreNode;
pub use node::CoreNodeConfig;
pub use node::KillSshHook;
pub use routing::PeerInfo;
pub use routing::RoutingTable;
pub use send::SendConfig;
pub use send::SendManager;
pub use send::TransferDirection;
pub use send::TransferRecord;
pub use send::TransferStatus;
pub use serve::ServeAcl;
pub use serve::ServeManager;
pub use state::CliAuthTokens;
pub use state::DirectState;
pub use state::ManagedState;
pub use state::NodeMode;
pub use state::PersistedState;
pub use state::StatePaths;
pub use stream::StreamHandler;
pub use stream::TUNNEL_STREAM_ALPN;
pub use stream::dial_stream;
pub use stream::serve_stream_acceptor;
pub use stream::serve_stream_connection;
pub use stream_proxy::stream_handler;
pub use tunnel::TunnelManager;
pub use tunnet_common as common;

Modules§

acl
acl_hook
Connection-level ACL via iroh EndpointHooks.
agent_config
Unified agent configuration (tunnet.toml) - single source of truth for node, Direct networks, firewall, DNS, connect allowlist, logging, mDNS, and updates.
control
coordinator
Local coordinator: the first process on a machine owns the iroh endpoint; subsequent processes connect as clients and proxy open_stream / list_peers.
direct
Direct mode: P2P mesh without a control plane.
dns_stub
PeerDNS stub resolver - answers A/AAAA/PTR/SOA/NS for mesh names and hostname routes, forwards everything else to upstream resolvers.
identity
ipc
Agent IPC v2 - local request/response protocol for the Tunnet CLI.
iroh_pool
Connection pool with optional on-demand (idle suspend / reconnect) behavior.
known_hosts
Rewrite the Tunnet known_hosts file from peer membership host keys.
mdns_relay
Cross-LAN mDNS/DNS-SD service relay over the Tunnet mesh.
node
ping
Mesh ping - QUIC RTT over the existing stream ALPN.
recording
Dial / accept helpers for SSH session recording streams.
routing
secret_store
Tiered encryption at rest for agent secrets (identity, network PSK, tickets, auth).
send
P2P file transfer via iroh-blobs + Tunnet offer ALPN.
serve
Tunnet Serve - TLS (or TCP) reverse proxy on the mesh interface → upstream.
state
stream
stream_proxy
Inbound stream acceptor: TCP-proxy to the destination in the stream header. Used when a client opens a stream to a subnet/hostname-route target via this gateway.
sync
tunnel
Agent-side reverse tunnel manager - dials a public relay over iroh and forwards relay-opened streams to a configurable upstream (default localhost).
ws_client