noit-connection

Noit Reverse Connection

Usage no npm install needed!

<script type="module">
  import noitConnection from 'https://cdn.skypack.dev/noit-connection';
</script>

README

'lite' version which only contains the reverse tunnel

var noit = require('noit-connection');
var creds = noit.utils.hashToCreds({ ca: cafile });
var proxy = new noit.connection(43191, host, creds, cn || host);
var tgt_host = '127.0.0.1', tgt_port = 2609;
proxy.reverse('check/' + uuid, tgt_host, tgt_port);