New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tcpr

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tcpr

TCP proxy using modern Node.js APIs and zero dependencies

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

tcpr

A simple TCP proxy using modern Node.js APIs and zero dependencies.

Requires Node.js v18.4.0 or higher.

Usage

tcpr --listen [HOST]:PORT --connect HOST:PORT

For example, to forward a VNC port from Tailscale to a virtual machine:

tcpr --listen 100.xx.xx.xx:5901 --connect 192.168.64.xx:5900

Every megabyte of data transferred is logged:

[2022-06-16T17:20:58.463Z] Server is listening on port 5901
[2022-06-16T17:21:13.367Z] Handling connection #1 from 100.xx.xx.xx
[2022-06-16T17:21:33.266Z] Connection #1: 1.04 MB <=> 0.00 MB
[2022-06-16T17:24:33.599Z] Connection #1: 2.00 MB <=> 0.00 MB
[2022-06-16T17:24:34.296Z] Connection #1: 3.03 MB <=> 0.00 MB
[2022-06-16T17:25:16.794Z] Connection #1: 3.99 MB <=> 0.01 MB
[2022-06-16T17:25:20.425Z] Connection #1: 5.02 MB <=> 0.02 MB

Modern Node.js APIs used

  • ECMAScript modules (.mjs)
  • Streams with async generators
  • stream/promises’s pipeline()
  • util.parseArgs

FAQs

Package last updated on 16 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc