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 ✨


✨ 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 πŸ’–βœ¨πŸŒΈ