Self-use remote encryped http proxy forwarder using socket.io
. You know what
it is used for.
You will need two Linux hosts. One for the remote server, another for the local http proxy server(I call it client).
The server and the client use two copies of one config, stored in a json file.
The default configuration is stored in default_config.json
, you can override it
with you own json file.
There are 6 fields you can config.
- server: address of the remote server
- client: address of the http proxy server (the client), used in PAC generating
- remote_port: port the remote server will listen on
- local_port: port the local http proxy server will listen on
- password
- algorithm: all the algorithms availible for crypto.createCipher are ok
- timeout: in seconds. time to clear dead requests
node server.js [/path/to/config.json]
node client.js [/path/to/config.json]
And then set you proxy server to < client >:< local_port >
Or set auto proxy to < client >:< local_port >/proxy.pac
NOTE: if you use Safari, you need to host the client on localhost, or Safari will not use proxy.pac