https://github.com/montyanderson/node-tcp-passthrough
A TCP passthrough written in Node.JS.
https://github.com/montyanderson/node-tcp-passthrough
Last synced: 3 months ago
JSON representation
A TCP passthrough written in Node.JS.
- Host: GitHub
- URL: https://github.com/montyanderson/node-tcp-passthrough
- Owner: montyanderson
- Created: 2015-03-22T16:56:15.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-09T22:23:58.000Z (about 10 years ago)
- Last Synced: 2025-01-18T00:40:25.886Z (4 months ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-tcp-passthrough
A TCP passthrough written in Node.JS.Installation (Debian/Ubuntu)
----------------------------
**Step 1:** Download packages and repo.sudo apt-get update
sudo apt-get install nodejs
git clone https://github.com/montyanderson/node-tcp-passthrough.git
cd node-tcp-passthrough**Step 2:** Edit config.js in your text editor of choice.
$ cat config.js
exports.ip = "localhost"; // It will pass-through to this IP
exports.port = 80; // It will pass-through to this port
exports.listen = 5000; // It will listen to incoming connections on this port
**Step 3:** Run and enjoy!$ node main.js
#-- Node.JS TCP Pass-through --#
#------------------------------#
Connecting to localhost:80.
Listening on port 5000