aiortc WebRTC VPN Tunnel

This project demonstrates a robust point-to-point VPN tunnel over WebRTC using Python’s aiortc and TAP devices. It includes a signaling server and two peer scripts (offerer and answerer) that relay TAP device traffic over a single WebRTC data channel, mimicking a VPN tunnel.

Features

  • Single Data Channel: Uses only one data channel (vpntap) for VPN traffic.
  • TAP Device Relay: Relays TAP device traffic over WebRTC, with logic adapted from vpn.py.
  • Automatic IP Assignment: Assigns static IPs to TAP interfaces after setup.
  • MTU Configuration: Sets MTU to 1300 on both peers for optimal VPN performance.
  • Robust Reconnection: Handles reconnection and signaling failures gracefully.
  • Cloudflare Tunnel Support: Connect…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help