localhost-tunnel-websocket

所属分类:Websocket编程
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-08-29 06:10:23
上 传 者sh-1993
说明:  通过WebSocket隧道将本地主机网络公开给公共网络。本地服务器和公共服务器之间的TCP数据交换...,
(Exposing the localhost network to the public network through a WebSocket tunnel. TCP data exchange between the local server and the public server is routed through a WebSocket connection with additional AES 256 encryption.)

文件列表:
LICENSE (1507, 2023-08-30)
client/ (0, 2023-08-30)
client/config.js (222, 2023-08-30)
client/package-lock.json (4461, 2023-08-30)
client/package.json (391, 2023-08-30)
client/tunnel-client.js (2354, 2023-08-30)
image.png (8628, 2023-08-30)
server/ (0, 2023-08-30)
server/config.js (185, 2023-08-30)
server/core/ (0, 2023-08-30)
server/core/authentication.js (368, 2023-08-30)
server/core/decrypt.js (420, 2023-08-30)
server/core/encrypt.js (422, 2023-08-30)
server/core/socket.js (518, 2023-08-30)
server/core/tcp-id.js (822, 2023-08-30)
server/core/tcp.js (272, 2023-08-30)
server/core/tunneling.js (2364, 2023-08-30)
server/package-lock.json (30753, 2023-08-30)
server/package.json (384, 2023-08-30)
server/tunnel-server.js (814, 2023-08-30)

# localhost-tunnel-websocket Exposing the localhost network to the public network through a WebSocket tunnel. TCP data exchange between the local server and the public server is routed through a WebSocket connection with additional AES 256 encryption. ![Image](https://github.com/maskodingku/localhost-tunnel-websocket/blob/master/image.png) This can be used to expose local networks such as SSH, RDP, web servers (HTTP), and other networks that use the TCP protocol. This script uses one of the following packages: - [Socket.io](https://github.com/maskodingku/localhost-tunnel-websocket/blob/master/https://www.npmjs.com/package/socket.io) - [express](https://github.com/maskodingku/localhost-tunnel-websocket/blob/master/https://www.npmjs.com/package/express) # How to Use: ## Server Tunnel Installation: 1. Clone the repository. 2. CD into the `server` directory. 3. Perform the installation: `npm install` 4. Open the `config.js` file. 5. Perform the configuration. - `port-tunnel`: The port used for the connection between the server tunnel and the client tunnel. - `port-tcp`: The port used to receive TCP connections on the server side. - `tcp-traffic-encryption`: Do you want to encrypt the flow of TCP data? `"key"` is the encryption key that will be used on the server tunnel and client. - `tunnel-authentication`: Used for authentication to the client. The `"token"` value between the server and client must be the same. 6. After that, run: `node tunnel-server.js` Make sure to follow the above steps correctly to successfully install and run the server tunnel. Note: - Ensure that you have installed Node.js and npm before running the `npm install` command. ## Client Tunnel Installation: 1. Please clone the repository. 2. CD into the `client` directory. 3. Perform the installation: `npm install` 4. Open the `config.js` file. 5. Perform the configuration. - `host-tunnel`: IP address of the tunnel server. - `port-tunnel`: The port used to establish a connection to the tunnel server. - `host-tcp`: IP address of the localhost or local server you want to expose to the public. - `port-tcp`: The port of the localhost. - `tcp-traffic-encryption-key`: The encryption key to be used in the server tunnel. - `tunnel-authentication`: Used for authentication to the server tunnel. The `"token"` value between the server and client must be the same. 6. After that, run: `node tunnel-client.js` Make sure to follow the above steps correctly to successfully install and run the client tunnel. Note: - Ensure that you have installed Node.js and npm before running the `npm install` command.

近期下载者

相关文件


收藏者