An HTTP proxy tunnel for both HTTP and HTTPS traffic.
http
url
net
$ git clone https://github.com/gl14916/nodejs-forward-proxy-server.git
$ cd nodejs-forward-proxy-server
$ npm install
$ npm start
or $ node proxy.js
By default, this proxy server listens on port 2560
, it can be changed by modifying the last line of code (proxy.js:75
)
If you wish to use a port number under 1024
, you need to run this proxy server as root:
$ sudo npm start
or $ sudo node proxy.js
MIT