Websockets TAP proxy for jor1k Linux emulator

gdm85
Where do we Go now
Published in
1 min readApr 4, 2016

If you have never heard of jor1k, you should give a look now because it will likely surprise you. We have been used to old consoles emulators running in browsers, but Sebastian Macke managed to port a fully-fledged Linux to it, by implementing the OR1K architecture.

Edit: the original hypnotically looping gif has been replaced with something nicer on the eyes.

This Linux-in-a-browser has network support thanks to a smart trick: it will relay ethernet frames via websockets to a relay server that are in turn injected in a TAP interface of the relay server. Brilliant.

My small contribution to this awesome emulation project is a Go implementation of the original python version, called go-websockproxy, with some features added:

Now it should be fairly simple for anybody to run their own network-backed Linux-in-a-browser and also secure it by using the authentication key feature.

--

--

gdm85
Where do we Go now

Thinker, software developer, cryptography passionate and an avid reader of science and technology.