Tun-rs 2.2.0 Released: TAP Mode Support for macOS via feth

โš“ rust    ๐Ÿ“… 2025-06-04    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 2      

surdeus

Hello 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.

Key Updates

1. TAP Mode Support for macOS via feth

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.

2. Links

Conclusion

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

Read full topic

๐Ÿท๏ธ rust_feed