Skip to content

tun/tap service controllable over standard input/output because the lord knows im not touching node-gyp with a 39+1/2' poll

Notifications You must be signed in to change notification settings

RepComm/stdiotuntap

Repository files navigation

stdiotuntap

Configure tun / tap devices using nothing but json over stdio!

libs

State

Operational!

Can now both send and receive IP traffic thru tunnel to standard input/output over JSON/base64 strings. See protocol.d.ts for typescript definitions of JSON format and some example JSON messages to talk to this software over terminal

Minimum viable product is here and ready for testing!

Implemented so far:

  • json commands input / response output thru stdio
  • json stringify lib impl
  • tun device create, up, down, destroy commands
  • origin and destination IP packets decoded

TODO

  • json commands:
    • device subscribe/unsubscribe (all on by default currently)
  • fix device pool non-refreshable behaviour
  • rewrite b64.c to not be so weird

what

tf is this?

This program allows creation and usage of tun (and later on, tap) devices using a standard input output aka terminal connection.

What is tun/tap you ask? Essentially a fake router connected to the machine running the tun/tap service, but all the traffic is forwarded to the software running tun/tap fake network device.

A tun/tap device will show up in ifconfig/ipconfig/ip a commands like one of your other network devices, but is not a physical device with a real MAC address.

About

tun/tap service controllable over standard input/output because the lord knows im not touching node-gyp with a 39+1/2' poll

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published