0.0.10 • Published 2 years ago

tcp-tunnel-forward v0.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Tcp Tunnel Forward

Forward localhost port with tunnel to server port using socket

Install

$ npm install -g tcp-tunnel-forward

Version

$ ttf version

config

$ ttf configs get
$ # ttf configs set [host] [port] [secret]
$ # ttf config set host [host]
$ # EX.
$ ttf configs set 127.0.0.1 9001 abc123
$ ttf config set secret abc123

Server

$ ttf server

client

$ # ttf client [name] [remotePort] [forwardPort] [forwardHost]?
$ ttf client ssh 2222 22
$ ttf client ssh 2222 22 127.0.0.1
$ ttf client web 80 8080 127.0.0.1

code

const {Client,Server} = require('tcp-tunnel-forward');

const server = new Server(
    port,
    secret
);

const client = new Client(
    secret,
    host,
    port,
    name,
    remotePort,
    forwardPort,
    forwardHost
);
0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago