Skip to content

Commit e20843f

Browse files
feat: add TUN/TAP and netfilter to Linux kernel config
Enable CONFIG_TUN and iptables/netfilter support in the vz Linux guest kernel. Required for running Firecracker microVMs with tap networking and NAT masquerade inside the vz host VM. Bump vz-cli to v0.3.1. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 72dc9a2 commit e20843f

3 files changed

Lines changed: 14 additions & 2 deletions

File tree

crates/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/vz-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "vz-cli"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "CLI for managing containers and macOS VM sandboxes"
55
edition.workspace = true
66
rust-version.workspace = true

linux/vz-linux.config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ CONFIG_NET_NS=y
3636
CONFIG_VETH=y
3737
CONFIG_BRIDGE=y
3838

39+
# TUN/TAP (Firecracker uses tap devices for guest networking)
40+
CONFIG_TUN=y
41+
42+
# Netfilter / iptables (required for NAT masquerade in proxy VMs)
43+
CONFIG_NETFILTER=y
44+
CONFIG_NF_CONNTRACK=y
45+
CONFIG_NF_NAT=y
46+
CONFIG_IP_NF_IPTABLES=y
47+
CONFIG_IP_NF_FILTER=y
48+
CONFIG_IP_NF_NAT=y
49+
CONFIG_IP_NF_TARGET_MASQUERADE=y
50+
3951
# Cgroups / namespaces
4052
CONFIG_NAMESPACES=y
4153
CONFIG_CGROUPS=y

0 commit comments

Comments
 (0)