A simple reverse proxy that runs like a webserver and support HTTP, WebSocket and VHosts.
This is a CLI version of Magic Reverse Proxy package. You can create your HTTP, HTTPS, WS and WSS tunnels for differents domains, configure your own certificate and adjust your settings to allow unknown hosts, HSTS policy, HTTPS, HTTP, SNI proxy rules and specific users to access your custom settings using credentials, like a router system.
You must run the following terminal command.
npm install -g magic-proxy-cli --save
To enable all features and access Magic Proxy panel you just need to run the command:
magicproxy
After type and run the command, the Magic Proxy will start one webserver running locally in port 3000. When it start at first time, you will receive a welcome message and get a special account with name admin and a security token in UUID format. You should save it and access the panel to create your own account in users page. The message looks like:
NOTE: if you have any problems with Magic Proxy credentials generation or proxy not working, you can try run it using a privileged user, specially when setting low ports like 80, 443 because they are privileged ports. See Why are ports below 1024 privileged? for more informations.