#networking #nat #arc-box #network-stack #vm #port-forwarding

arcbox-net

High-performance network stack for ArcBox

1 unstable release

Uses new Rust 2024

0.0.1-alpha.1 Jan 7, 2026

#13 in #arc-box


Used in 4 crates (via arcbox-core)

MIT/Apache

570KB
13K SLoC

arcbox-net

High-performance network stack for ArcBox.

This crate provides networking capabilities for VMs including:

  • NAT networking: Default shared network with host
  • Bridge networking: Direct L2 connectivity
  • Host-only networking: Isolated VM networks
  • Port forwarding: Expose guest services to host

Performance Features

  • Zero-copy packet handling via shared memory
  • Kernel bypass using vmnet.framework (macOS)
  • Multi-queue virtio-net support
  • Hardware checksum offload

Architecture

┌─────────────────────────────────────────────────┐
│                  arcbox-net                     │
│  ┌─────────────────────────────────────────┐   │
│  │            NetworkManager               │   │
│  │  - Network lifecycle                    │   │
│  │  - IP allocation                        │   │
│  └─────────────────────────────────────────┘   │
│  ┌──────────┐ ┌──────────┐ ┌──────────────┐   │
│  │  NAT     │ │  Bridge  │ │  Port Forward │   │
│  │ Network  │ │ Network  │ │    Service    │   │
│  └──────────┘ └──────────┘ └──────────────┘   │
│  ┌─────────────────────────────────────────┐   │
│  │              TAP/vmnet                   │   │
│  └─────────────────────────────────────────┘   │
└─────────────────────────────────────────────────┘

Dependencies

~12–27MB
~263K SLoC