VDE_TUNCTL(8)
π VDE_TUNCTL(8) π
okay so bestie, this is a page from the System Manager's Manual β pull up a chair, we're doing TUN/TAP devices and honestly? it's giving main character energy π
β¨ NAME β¨
vde_tunctl</pura> β create and manage persistent TUN/TAP interfaces π¦
β¨ SYNOPSIS β¨
vde_tunctl [-f clone-dev] [-u owner] [-g group] [-n] [-t dev-name]
vde_tunctl [-f clone-dev] -d dev-name
β¨ DESCRIPTION β¨
So like, vde_tunctl lets the host sysadmin (that's you, queen π) preconfigure a TUN/TAP device for use by a particular user. That user can open the device and use it β slay β but they cannot change any aspects of the host side of the interface. Boundaries, periodt. π
vde_tunctl is an extension of tunctl. It's the glow-up, fr fr. β¨
And here's the lil rule about what kind of interface you get: vde_tunctl defines tap interfaces unless dev-name begins by "tun" or the option -n appears in the command line. iykyk π§
β¨ USAGE β¨
Wanna create an interface for a particular user? Invoke tunctl without the -d option:
# vde_tunctl -u someuser
Set 'tap0' persistent and owned by uid 500
Then, configure the interface as normal β like, business as usual bestie:
# ifconfig tap0 192.168.0.254 up
# route add -host 192.168.0.253 dev tap0
# bash -c 'echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp'
# arp -Ds 192.168.0.253 eth0 pub
To delete the interface, use the -d option:
# vde_tunctl -d tap0
Set 'tap0' nonpersistent
And to create or destroy a tun interface (instead of tap), it's this:
# vde_tunctl -n -u someuser
Set 'tun0' persistent and owned by uid 500
# vde_tunctl -d tun0
Set 'tun0' nonpersistent
heads up bestie β those commands go in exactly as written, no cap. Copy them character for character π
β¨ SEE ALSO β¨
vde_switch(1)πvde_plug2tap(1)π
β¨ AUTHOR β¨
tunctl was written by Jeff Dike jdike@karaya.com π
This manual page is based on the tunctl manual page written by Matt Zimmerman mdz@debian.org for the Debian GNU/Linux system. π«Ά
okay that's the whole vibe check, you're officially a TUN/TAP girlie now π
this lil sign-off comes to you from the System Manager's Manual, page VDE_TUNCTL(8) β mwah, go forth and slay πβ¨πΈ
π¦ where this page comes from
- alpine 3.24: vde2-doc 2.3.3-r7 Β· GPL
- arch rolling: vde2 2.3.3-10 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- debian bookworm: vde2 2.3.2+r586-8+b1 Β· GPL-2.0-only
- debian trixie: vde2 2.3.2+r586-11 Β· GPL-2.0-only
- nixos 26.05: vde2 2.3.3
- nixpkgs unstable: vde2 2.3.3
- opensuse-leap 16.0: vde2 2.3.2+svn587-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: vde2 2.3.2+svn587-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: vde2 2.3.2+svn587-160000.2.2 Β· GPL-2.0-only
- opensuse-leap 16.0: vde2 2.3.2+svn587-160000.2.2 Β· GPL-2.0-only
- ubuntu jammy: vde2 2.3.2+r586-8 Β· GPL-2.0-only
- ubuntu noble: vde2 2.3.2+r586-10 Β· GPL-2.0-only
- ubuntu questing: vde2 2.3.2+r586-11
- ubuntu resolute: vde2 2.3.2+r586-12.2 Β· GPL-2.0-only
- ubuntu stonking: vde2 2.3.2+r586-12.2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms