• Stars
    star
    100
  • Rank 339,459 (Top 7 %)
  • Language
    JavaScript
  • License
    BSD 2-Clause "Sim...
  • Created over 12 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tunnel TCP connections over Secure WebSocket

#TCP over WebSocket

This tool allows you to tunnel TCP connections over WebSocket protocol using SSL. It consists of a server agent and a client console. If the server agent is running on a remote machine you can use it as a middle-man to route connections securely to any network host even through firewalls and proxies.

##Example use cases:

  • You are on a restricted network that only allows traffic on ports 80 and 443
  • You wish to connect securely to a service from a public access point, and cannot use SSH

Due to WebSocket connections starting out as normal HTTPS, this can be used to tunnel connections through certain restrictive firewalls that do not even allow SSH or OpenVPN over port 443.

##Usage

On a server, run server.js specifying optional port and address to bind to (defaults to 0.0.0.0:443):

node server.js 74.125.227.148:443

On a client, run connect.js specifying remote host and optional port (defaults to 443):

node connect.js 74.125.227.148

You will be prompted for username/password which the server will verify against users.txt and then you are presented with a command shell where you can create and destroy tunnels.

> tunnel 3306 8.12.44.238:3306

This will listen on port 3306 on the client (localhost) and forward connections to remote host 8.12.44.238 via the WebSocket server. Destination port, if omitted, will default to source port.

The server uses SSL key files present in keys/ and users listed in users.txt (in which passwords are md5 hashed).

More Repositories

1

react-rte

Pure React rich text WYSIWYG editor based on draft-js.
JavaScript
2,862
star
2

draft-js-utils

DraftJS: import/export ContentState to and from HTML/Markdown
JavaScript
884
star
3

jinja-js

JavaScript templating engine based on Jinja2
JavaScript
167
star
4

js2php

JavaScript to PHP source transformation
PHP
151
star
5

draft-js-import-html

62
star
6

ck-dragresize

CKEditor dragable image resizing
JavaScript
59
star
7

nbit

A zero-dependency, strongly-typed web framework for Bun, Node and Cloudflare workers
TypeScript
58
star
8

draft-js-import-markdown

57
star
9

draft-js-export-markdown

DraftJS: Export ContentState to Markdown
55
star
10

draft-js-import-element

28
star
11

shopify-ftp

FTP Proxy for Shopify
JavaScript
25
star
12

draft-js-utils-deprecated

Useful utilities to speed up development with draft.js
19
star
13

ckeditor-ui

CKEditor Skin Design
JavaScript
11
star
14

xcurl

A curl clone in Node
TypeScript
10
star
15

node-jetbrains

Command Line tools for JetBrains projects (IntelliJ/WebStorm/etc)
JavaScript
4
star
16

hux-api

This is a Prisma-based REST API for Hux, an app for photo sharing.
TypeScript
3
star
17

node-frontend

Nginx-style server in Node
JavaScript
3
star
18

assembler

Assemble and minify your assets for deployment
JavaScript
2
star
19

hux-rn

Hux, an app for photo sharing. Built with React Native.
TypeScript
1
star
20

synthetic-dom

1
star
21

supports

Basic JS functions to determine environment support
JavaScript
1
star
22

hello-rn

TypeScript
1
star
23

lean-package

A tool for cleaning package.json before publishing
TypeScript
1
star
24

hux-flutter

Hux, an app for photo sharing. Built with Flutter.
Dart
1
star
25

pres-fibers

Presentation for BrisJS 2012/06/04
JavaScript
1
star
26

rn-demo

TypeScript
1
star