Warning
This post was published 57 days ago. The information described in this article may have changed.
Tun-rs 2.2.0 Released: TAP Mode Support for macOS via feth
โ Rust ๐ 2025-06-04 ๐ค surdeus ๐๏ธ 4Hello everyone,
tun-rs
is a pure Rust, cross-platform library for TUN/TAP virtual network devices, widely used in tunneling, VPN, and virtual LAN scenarios. The latest 2.2.0 release brings TAP mode support to macOS.
On macOS, the traditional TAP interface is undocumented and has no standard way to be created. For a long time, only TUN (utun) interfaces were available. With this update, TAP mode is now supported on macOS through the underlying feth deviceโno third-party kernel extensions required. Developers can now enjoy TAP virtual device functionality on macOS similar to Linux and Windows. This greatly improves the cross-platform consistency of tun-rs
and opens up new use cases that require Layer 2 networking.
tun-rs
aims to provide a high-performance, easy-to-use, and safe virtual network interface library for the Rust community. If you need TAP mode on macOS, give version 2.2.0 a try!
Feedback and contributions are always welcome on GitHub.
1 post - 1 participant
๐ท๏ธ rust_feed