Registry / networking / wireguard-tun-netstack

wireguard-tun-netstack

JSON →
library0.0.0-20220703234212-c31a7b1ab478gogounverified

A Go library providing a userspace network stack for WireGuard TUN devices.

go get golang.zx2c4.com/wireguard/tun/netstack
INSTALL
IMPORT
SIG · WIREGUARD-TUN-NETS
W
wireguard-tun-netstack
networkinggov0.0.0-20220703234212-c31a7b1ab478
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

netstack
✓ golang.zx2c4.com/wireguard/tun/netstack

Creates a virtual TUN network interface using a userspace netstack.

package main import ( "golang.zx2c4.com/wireguard/tun/netstack" ) func main() { net, err := netstack.CreateNetTUN([]netip.Addr{netip.MustParseAddr("10.0.0.1")}, []netip.Addr{netip.MustParseAddr("10.0.0.2")}, 1420) if err != nil { panic(err) } _ = net }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20220703234212-c31a7b1ab478latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
OpenAI (training)
1
Resources
wireguard-tun-netstack — go get wireguard-tun-netstack · libregistry