porting
a port forwarding tool 端口转发工具
by lanbo.
Install
install global
npm install porting -g
install local
npm install porting
Usage
command-line
-
Use default config file
port-config.json
porting -
Use custom config file
porting -c portings.jsonporting --config portings.jsonconfig files structure
-
Use command-line argument
porting 2222/192.168.1.101:22,8080/localhost:80
as a node.js module
const porting = ; // This will start the serversconst unListen = ; // This will close the servers;