Setup and installation
The current DNS setup that I have for the demo server is the following one. Do note that I did this with trial and error, so the setup may be overcomplicated or may have issues. If you are more knowledgeable feel free to open an issue.
For the frontend, the file "index.html" can be hosted on the webserver of your choice. Make sure that the WebSocket URL points to your server.
forever start index.js
The client script requires "dnspython" to be installed on both end. Whether you are sending or receiving data, you must first start the script on the machine that's outside of the restricted zone. The script will provide you with a unique token that you must pass when running the script on the machine that's inside of the restricted zone.
Example sending data
echo test12345 | python main.py -f- -d out -t-
python main.py -f- -d in -t TOKEN_THE_FIRST_COMMAND_GAVE_YOU
python main.py -f- -d in -t-
echo test12345 | python main.py -f- -d out -t TOKEN_THE_FIRST_COMMAND_GAVE_YOU
Дата: 2018-05-16 14:37:57