Skip to content
zyvoraiPublic

About

netctl: async network configuration for Linux, in Rust

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

netctl

CI Release License: Zyvor Production Rust

Book a demo 30-day PoC Quickstart

netctl — async network configuration for Linux

Configure Linux networks like systemctl.

A network configuration CLI for Linux with a systemctl-style interface. Links and addresses over netlink; systemd-networkd, systemd-resolved and systemd-hostnamed over D-Bus; declarative YAML/TOML apply with dry-run, profiles, history rollback, backups and doctor diagnostics.

Rust, async-first · 17 subcommands · Declarative YAML/TOML apply · History and rollback · TUI dashboard

📖 User docs — installation, declarative apply, and troubleshooting.


Why netctl

When this happens… netctl gives you…
Every host change is a string of ip commands nobody can review netctl apply a YAML or TOML file, with --dry-run first and validate offline
A change goes wrong and nobody remembers the previous state netctl history with rollback to an entry, plus named backup create / restore / export
You switch between known-good setups (lab, bench, maintenance) netctl profile save, load, list and show, and diff a profile against current
"Is it the network or the host?" takes an hour netctl doctor diagnostics and netctl test for connectivity, DNS and ping
Scripts scrape human-readable output --json on show, JSON stats, and export to YAML, TOML or JSON
You want to watch interfaces while you work netctl tui dashboard and netctl watch with a refresh interval

Capabilities at a glance: Configure, Declare, Recover, Observe


How it fits together

One CLI with netlink and systemd underneath: netctl, netctl-core, netctl-netlink and netctl-dbus

Architecture

Workspace crates: netctl (CLI), netctl-core, netctl-netlink, netctl-dbus, netctl-config, netctl-types.


Quickstart

Requires Rust 1.75+ to build, and root or CAP_NET_ADMIN to change the network.

git clone https://github.com/zyvorai/netctl.git
cd netctl
cargo build --release
sudo cp target/release/netctl /usr/local/bin/
sudo netctl show
sudo netctl link set eth0 state up
sudo netctl addr add eth0 192.168.1.100/24
netctl show --json

Declarative apply:

sudo netctl apply config/network-config.example.yaml

Features

  • Link, address, route, DNS, and hostname management
  • Declarative YAML/TOML apply, profiles, backup/restore, diff, and doctor diagnostics
  • JSON output, watch mode, TUI, shell completions, and dry-run previews

Installation

git clone https://github.com/zyvorai/netctl.git
cd netctl
cargo build --release
sudo cp target/release/netctl /usr/local/bin/

Pre-built binaries: GitHub Releases.

Docker:

docker build -t netctl:latest .
docker run --rm netctl:latest --help

Static musl build:

cargo install cross
cross build --release --target x86_64-unknown-linux-musl

Configuration samples

File Description
config/network-config.example.yaml YAML network profile
config/network-config.example.toml TOML network profile

Development

cargo test --workspace
cargo fmt --all -- --check
cargo clippy --workspace -- -D warnings

Troubleshooting

  • Network changes require root or CAP_NET_ADMIN.
  • D-Bus features need systemd-networkd, systemd-resolved, and systemd-hostnamed running.
  • Debian/Ubuntu build deps: sudo apt install libdbus-1-dev pkg-config

Contributing

Issues and PRs: github.com/zyvorai/netctl.

Enterprise

Enterprise (zyvor.dev)
Support SLA, sales@zyvor.dev, professional services
Scope CLI and declarative apply, Supported rollouts with netevd and cloud-netconfig
Platform Full Zyvor networking and migration stack
Features Link/address/route/DNS/hostname management, declarative YAML/TOML apply, doctor diagnostics, TUI, shell completions; Same feature set, operated at fleet scale with SLA-backed support
Demo zyvor.dev/demo
ROI zyvor.dev/roi
Pricing zyvor.dev/pricing
Contact zyvor.dev/contact · sales@zyvor.dev

Enterprise covers SLAs and the full stack with netevd and cloud-netconfig → contact Zyvor (not GitHub Issues). Details: docs/enterprise.md.

Support the project

netctl is source-available, maintained by Susant Sahani · Zyvor AI Labs


Maturity

netctl is at version 1.1.1 (workspace Cargo.toml), with pre-built binaries on GitHub Releases. Supported fleet rollouts are an Enterprise engagement (docs/enterprise.md).


Part of the Zyvor stack

Product Role next to netctl
netctl Network configuration CLI for Linux: netlink plus systemd over D-Bus
netevd Pairs with netctl: turns netlink and opt-in eBPF events into hook scripts, policy routing, a REST API and metrics
cloud-netconfig Pairs with netctl on cloud VMs: secondary IPs and policy routing from cloud metadata
Netra Next to netctl: eBPF network observability and emergency network control for Linux and Kubernetes

Enterprise rollouts cover netctl together with netevd and cloud-netconfig. All projects: zyvorai.

→ zyvor.dev


Donate

A 30-day trial is available on request from sales@zyvor.dev (a paid evaluation Order at no charge); production and any other use needs a paid Order under the Zyvor Production Licence v2.0. If it helps you, you can donate any amount you like: https://zyvor.dev/donate. A donation is voluntary and supports development and maintenance. It is not a purchase: it buys no support, SLA, features, priority or license, and it is not tax-deductible (Zyvor AI Labs Private Limited is a company, not a charity). Support contracts are separate: sales@zyvor.dev.

License

netctl is source-available under the Zyvor Production Licence v2.0 (SPDX LicenseRef-Zyvor-Production-2.0, also in LICENSES/; see NOTICE).

  • A 30-day trial is available on request from sales@zyvor.dev (a paid evaluation Order at no charge); production and any other use needs a paid Order under the Zyvor Production Licence v2.0. Buy / get a quote: zyvor.dev/buy · sales@zyvor.dev.
  • Price: INR 999 per host per year incl. 18% GST in India; US$10 per host per year excl. tax elsewhere. Buy: zyvor.dev/buy. Orders of USD 5,000 or more and quotes are invoiced in USD through Skydo.

Zyvor Enterprise adds what production teams ask for: supported releases, deployment and upgrade guidance, priority incident triage, a named technical contact and 24x7 critical intake. Plans and terms: docs/SUBSCRIPTION-MODEL.md · Pricing · sales@zyvor.dev.


Make every host network change reviewable

Book a demo 30-day PoC Pricing Contact sales Star on GitHub

About

netctl: async network configuration for Linux, in Rust

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages