https://github.com/cyrilluce/tcp-over-https-proxy
Use https proxy create tcp tunnel, forward local port to server behind proxy.
https://github.com/cyrilluce/tcp-over-https-proxy
Last synced: 10 months ago
JSON representation
Use https proxy create tcp tunnel, forward local port to server behind proxy.
- Host: GitHub
- URL: https://github.com/cyrilluce/tcp-over-https-proxy
- Owner: cyrilluce
- License: mit
- Created: 2020-03-02T06:46:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-02T08:27:36.000Z (almost 6 years ago)
- Last Synced: 2025-02-26T19:27:36.707Z (10 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tcp-over-https-proxy
Use https proxy create tcp tunnel, forward local port to server behind proxy.
## Usage
### cli
Install
```
npm i -g tcp-over-https-proxy
```
Establish port forwarding
```
#tcp-over-https-proxy remoteHost:remotePort localPort httpsProxy
tcp-over-https-proxy 10.0.0.111:3306 3306 http://123.123.123.123:8080
# map 10.0.0.111:3306 to localhost:3306 via https proxy http://123.123.123.123:8080
```
### lib
Install
```
npm i tcp-over-https-proxy
```
Use
```javascript
const { createTcpTunnel } = require("tcp-over-https-proxy");
createTcpTunnel("10.0.0.111:3306", 3306, "http://123.123.123.123:8080");
```