Anazoa tunnels point-to-point IP traffic over a WebRTC video call on Russia's government-pushed Max platform. Both ends impersonate an Android Max client. IP packets are carried as tunnel frames embedded in the VP9 video bitstream, paced by Google Chrome libwebrtc's internal scheduler.
Inspired by the Protozoa work.
Expected tunneling bandwidth for a 720p video call is around 2 Mbps.
Two peers need to be configured, A and B.
- Use
anazoa.toml.sampleas a template for creating twoanazoa.tomlconfiguration files (it's advised to tweakfingerprintsection) and for each peer run
cp anazoa.toml.sample anazoa.toml
edit anazoa.toml
anazoa-auth -c anazoa.toml login --phone +71234567890
Phone numbers must be different for the two peers.
Update both configuration files with:
token,signaling-user-idandremote-peer-idparameters you got after successful authentication,mediaparameter pointing to an Opus audio file -- some audiobook will do.
- Run on both sides
anazoa-tun -c anazoa.toml
and then configure newly created tun0 (the name chosen via tun-name parameter) network interfaces (see scripts/setup-tun-test.sh for a sample).
- Allow to answer a call for peer A
anazoa-ctl -s /run/anazoa.sock answer always
Explicit answer permission is needed to mitigate active probing. In a real deployment, you may want to send an order for a callback via an independent channel (for example, e-mail) and allow answering for a short time period only:
anazoa-ctl -s /run/anazoa.sock answer 120
See scripts/callback.py for a ready-made e-mail based workflow.
- Make a call from peer B
anazoa-ctl -s /run/anazoa.sock call
After a WebRTC connection establishes, the tunnel is ready to be used.
To hang up the call, run on any side
anazoa-ctl -s /run/anazoa.sock hangup
