WG-USERSPACE(8) System Manager's Manual WG-USERSPACE(8)

wg-userspacemanipulate wg userspace instances (EXPERIMENTAL)

id command [arguments]

wg-userspace is used to create, destroy and configure wg(4) userspace instances.

wg-userspace is experimental.

The following commands are supported:

Create an interface. The interface will appear as tunid to the rest of the system, and will be served by a rump server in whose context the interface appears as wgid.
Destroy an interface and stop the rump server behind it.
wgN args...
Run ifconfig(8) in the context of the interface's rump server. For example,
	# wg-userspace 0 ifconfig wg0 10.0.1.0/24
will set the interface's IP address.
wgN args...
Run wgconfig(8) in the context of the interface's rump server. For example,
	# wg-userspace 0 wgconfig wg0 set listen-port 1234
will set the interface's listening port.
command [args...]
Run an arbitrary command in the context of the interface's rump server, using rumphijack(3).

wg(4), wg-keygen(8), wgconfig(8)

The wg-userspace command first appeared in NetBSD 10.0.

The wg-userspace command is written by Ryota Ozaki ⟨ozaki.ryota@gmail.com⟩.

August 20, 2020 NetBSD 10.99