An stunnel like program that utilizes the Noise protocol.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
John-Mark Gurney 95afbe5737 This should make things work now! both client and server can be run... 5 years ago
.gitignore first code that implements a simple echo server for noise in twisted 5 years ago
LICENSE.txt add license text.. 5 years ago
Makefile don't need twisted as moving to asyncio... allow the python binary to be set to 5 years ago
NOTES.md first code that implements a simple echo server for noise in twisted 5 years ago
README.md This should make things work now! both client and server can be run... 5 years ago
ntunnel.py This should make things work now! both client and server can be run... 5 years ago
requirements.txt move the function locally since it looks like this is the way forward.. 5 years ago
twistednoise.py last bit of work on the twisted version before I stopped... 5 years ago

README.md

ntunnel

The ntunnel program is designed to tunnel Unix domain sockets over TCP, using the Noise Protocol. The goal is to be secure and simple to use and setup.

Running Tests

Currently this requires Python 3.x for some of the libraries. If the default virtualenv is not 3.x, you can set the VIRTUALENV variable to specify which one to use, such as: make env VIRTUALENV=virtualenv-3.6

If you want to use an alternate version of python, you can specify VIRTUALENVARGS, such as: make env VIRTUALENV=virtualenv-3.6 VIRTUALENVARGS="-p $(which pypy3)"

Note that I have not tested this w/ pypy3, as when compiling the cryptography libraries, it would pick the wrong ones, despite setting CFLAGS and LDFLAGS. It is likely I could make this work, but do not know how to.

TODO

  • DoS protection. Limiting number of connections. Limit resource consumption by opening connection and starting negotiation but not completing it, etc.