node-forward

0.0.3 • Public • Published

node-forward

Simple forward proxy for node.

Install

> npm -g i node-forward

Usage

CLI

> forward 8080:80 # forward local 8080 port to local 80 port 
 
> forward 8080:google.com:80 # forward local 8080 port to google.com 80 port 
 
> forward 8080:google.com:80 # forward local 8080 port to google.com 80 port 
 
> forward 127.0.0.1:8080:google.com:80 # forward local 8080 port to google.com 80 port, only accept requests from 127.0.0.1 
 
> forward '[::]:8080:ipv6.google.com:80' # forward ipv6 connections 
# reverse forward, it still is dangerous now! 
# useful when you need intranet penetration 
 
1. forward -l 8080 # on your server (maybe my_server.com) 
2. forward -r my_server.com:8080 8010:1080 # on your computer 
 
# then forward my_server.com:8010 to localhost:1080 

ENV

> NODE_FORWARD=8080:80 node index.js
 
# ...same as above 

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i node-forward

      Weekly Downloads

      1

      Version

      0.0.3

      License

      ISC

      Unpacked Size

      8.91 kB

      Total Files

      9

      Last publish

      Collaborators

      • conwnet