LIBVDEPLUG_SLIRP(1)
π LIBVDEPLUG_SLIRP π
okay bestie, so this one lives in the General Commands Manual section (section 1, periodt), and it's literally called libvdeplug_slirp β the slirp vdeplug module. buckle up, she's a whole vibe π¦
β¨ NAME β¨
libvdeplug_slirp β the slirp vdeplug module. that's it, that's the name, she's simple like that π
πΈ SYNOPSIS πΈ
libvdeplug_slirp.so
π DESCRIPTION π
okay so. this is the libvdeplug module that lets you join TCP-IP networks using the slirp emulator. iconic behaviour, no notes π₯
this module of libvdeplug4 can be dropped into literally any program that supports vde, like vde_plug, vdens, kvm, qemu, user-mode-linux and virtualbox. she's versatile like that, main character energy fr fr π
the vde_plug_url syntax of this module goes a lil something like this:
slirp://[/OPTION][/OPTION]
π OPTIONS π
v4,v6β serve IPv4 only or IPv6 only, pick your fighter. both families of protocols are enabled if you pass bothv4andv6, OR if you pass neither of them. so like, defaults are giving "why not both" π«Άaddr=IPv4Addr/prefixorhost=IPv4Addr/prefixβ sets the IPv4 address of slirp. the default value is10.0.2.2/24β¨addr6=IPv6Addr/prefixorhost6=IPv6Addr/prefixβ sets the IPv6 address of slirp. default value here isfd00::2/64πhostname=nameβ defines the hostname. default value:slirpπtftp_server_name=nameβ defines the hostname of the dhcp server.tftp_path=pathβ defines the path of the directory whose contents are available by the tftp service. yes bestie, she's sharing files πbootfile=pathβ defines the path of the bootfile (for bootp).dhcp=dhcpIPv4addrβ sets the lowest IP address assigned by dhcp.vnameserver=IPv4Addrβ sets the address of the IPv4 DNS proxy.vnameserver6=IPv6Addrβ sets the address of the IPv6 DNS proxy.vdnssearch=list of domainsβ sets the default domains for name resolution. e.g.vdnssearch=foo.com,bar.orgπvdomainname=nameβ sets the domain name.mtu=int_valueβ defines the MTU.mru==int_valueβ defines the MRU.disable_host_loopbackβ disables loopback. that's it, that's the whole thing πtcpfwd=[hostIP:]hostport:guestIP:guestport[,[hostIP:]hostport:guestIP:guestport]...]β forwards TCP port(s). slay πudpfwd=[hostIP:]hostport:guestIP:guestport[,[hostIP:]hostport:guestIP:guestport]...]β forwards UDP port(s).unixfwd=[slirpIP:]slirpport:path[,[slirpIP:]slirpport:path...]β forwards TCP port(s) (from the virtual network) toPF_UNIXsocket(s). this is commonly used to forward ports to an X server, and it's still unsupported by libslirp btw, so don't come for me πcmdfwd=[slirpIP:]slirpport:cmd[,[slirpIP:]slirpport:path...]β forwards TCP port(s) (from the virtual network) to external command(s).verboseβ prints a table of slirp service configuration. she's nosy and we love her for it π
β EXAMPLES β
this vde_plug_url enables both IPv4 and IPv6 (using the default configuration):
slirp://
like the previous example, but it prints the table of the configuration options:
slirp:///verbose
when a program uses the following vde_plug_url:
slirp:///tcpfwd=8080:10.0.2.15:80
then tcp connections to the host computer port 8080 (any interface) are forwarded to 10.0.2.15 port 80 π«Ά
slirp:///tcpfwd=8080:10.0.2.15:80/cmdfwd=10.0.2.5:6000:'socat STDIO UNIX:"/tmp/.X11-unix/X0"'
like the previous one, plus this uses socat to forward all X-windows requests to 10.0.2.5:0 (port 6000) to the local server of the display :0. she's doing the MOST and honestly? obsessed π
β¨
π¨ NOTICE π¨
Virtual Distributed Ethernet is not related in any way with www.vde.com ("Verband der Elektrotechnik, Elektronik und Informationstechnik" i.e. the German "Association for Electrical, Electronic & Information Technologies"). different vde bestie, do not mix them up π
π SEE ALSO π
π AUTHOR π
VirtualSquare. Project leader: Renzo Davoli π
okay that's the whole page bestie, go forth and slirp responsibly π§ββοΈ
this little masterpiece came out of VirtualSquare, and the version on the page is dated October 2020 β so yeah, retro but still ate ππΈ
π¦ where this page comes from
- debian bookworm: libvdeplug-slirp 0.1.0-2+b1 Β· LGPL-2.1-or-later
- debian trixie: libvdeplug-slirp 0.1.0-3+b1 Β· LGPL-2.1-or-later
- ubuntu jammy: libvdeplug-slirp 0.1.0-2 Β· LGPL-2.1-or-later
- ubuntu noble: libvdeplug-slirp 0.1.0-3 Β· LGPL-2.1-or-later
- ubuntu questing: libvdeplug-slirp 0.1.0-3
- ubuntu resolute: libvdeplug-slirp 0.1.0-3.1 Β· LGPL-2.1-or-later
- ubuntu stonking: libvdeplug-slirp 0.1.0-3.1 Β· LGPL-2.1-or-later
- Copyright (C) 2019 VirtualSquare. Project Leader: Renzo Davoli
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms