OS Manuals

/usr/bin/slirp4netns

User-mode networking for unprivileged network namespaces

From slirp4netns 1.3.7-r0 (os), captured 2026-11-05 by running slirp4netns --help (exit 0). permalink

Usage: /usr/bin/slirp4netns [OPTION]... PID|PATH|FD [TAPNAME]
User-mode networking for unprivileged network namespaces.

-c, --configure          bring up the interface
-e, --exit-fd=FD         specify the FD for terminating slirp4netns
-r, --ready-fd=FD        specify the FD to write to when the network is configured
-m, --mtu=MTU            specify MTU (default=1500, max=65521)
-6, --enable-ipv6        enable IPv6 (experimental)
-a, --api-socket=PATH    specify API socket path
--cidr=CIDR              specify network address CIDR (default=10.0.2.0/24)
--disable-host-loopback  prohibit connecting to 127.0.0.1:* on the host namespace
--netns-type=TYPE 	 specify network namespace type ([path|pid|tapfd], default=pid)
--userns-path=PATH	 specify user namespace path
--enable-sandbox         create a new mount namespace (and drop all caps except CAP_NET_BIND_SERVICE if running as the root)
--enable-seccomp         enable seccomp to limit syscalls (experimental)
--outbound-addr=IPv4     sets outbound ipv4 address to bound to (experimental)
--outbound-addr6=IPv6    sets outbound ipv6 address to bound to (experimental)
--disable-dns            disables 10.0.2.3 (or configured internal ip) to host dns redirect (experimental)
--macaddress=MAC         specify the MAC address of the TAP (only valid with -c)
--target-type=TYPE       specify the target type ([netns|bess], default=netns)
-h, --help               show this help and exit
-v, --version            show version and exit
Options (19)
OptionDescriptionSource
-c, --configurebring up the interfacehelp
-e, --exit-fd FDspecify the FD for terminating slirp4netnshelp
-r, --ready-fd FDspecify the FD to write to when the network is configuredhelp
-m, --mtu MTUspecify MTU (default=1500, max=65521)help + man
-6, --enable-ipv6 (sinceenable IPv6 (experimental)help + man
-a, --api-socket PATHspecify API socket pathhelp + man
--cidr CIDRspecify network address CIDR (default=10.0.2.0/24)help + man
--disable-host-loopback (sinceprohibit connecting to 127.0.0.1:* on the host namespacehelp + man
--netns-type TYPEIf the namespace type is tapfd, the first positional argument is expected to be an inherited file descriptor that corresponds to a /dev/net/tun connection.help + man
--userns-path PATHspecify user namespace pathhelp + man
--enable-sandbox (sincecreate a new mount namespace (and drop all caps except CAP_NET_BIND_SERVICE if running as the root)help + man
--enable-seccompenable seccomp to limit syscalls (experimental)help
--outbound-addr IPv4sets outbound ipv4 address to bound to (experimental)help + man
--outbound-addr6 IPv6sets outbound ipv6 address to bound to (experimental)help + man
--disable-dns (sincedisables 10.0.2.3 (or configured internal ip) to host dns redirect (experimental)help + man
--macaddress MACspecify the MAC address of the TAP (only valid with -c)help + man
--target-type TYPEThe bess mode (since v1.2.0, EXPERIMENTAL) is expected to be used with User Mode Linux.help + man
-h, --help (sinceshow this help and exithelp + man
-v, --version (sinceshow version and exithelp + man
Examples (6) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.