I built a small experiment that creates a peer-to-peer tunnel between two Windows machines using the Wintun driver.
The tunnel uses UDP hole punching so two peers behind NATs can discover each other and communicate directly. Packets from the virtual interface are captured, encapsulated inside UDP, sent to the remote peer, and then injected back into the remote Wintun interface.
The repo contains a minimal STUN-like server and the peer implementation.
The tunnel uses UDP hole punching so two peers behind NATs can discover each other and communicate directly. Packets from the virtual interface are captured, encapsulated inside UDP, sent to the remote peer, and then injected back into the remote Wintun interface. The repo contains a minimal STUN-like server and the peer implementation.