Welcome to MGROK

MGROK is for Tuvion internal usage. MGROK sits in the same place as NGROK in our old workflow. MGROK provides a public facing server through which we can expose our local development servers through Reverse SSH Proxies. Additionally, we run NGINX on the MGROK server in order to map ports to subdomains.

Subdomain to Port Mappings

Subdomain Port
firepig-dashboard 8080
firepig-webhook 8081
firepig-scripttag 8082

Adding a Subdomain Mapping

Edit the NGINX configuration in order to add a subdomain to port mapping. For example:

server {
        listen 80;
        server_name <YOUR_SUBDOMAIN>.mgrok.com;
        location / {
                proxy_pass http://localhost:<YOUR_PORT_NUMBER>;

Can be added to /etc/nginx/sites-available/default to add your subdomain to port mapping. Our general convention is to increment the port number to the nearest unclaimed port number greater than 8080.

Connecting from Client

The following example will reverse proxy localhost:8000 to mgrok.com:8082. Because of the NGINX configuration on the server, the proxy will be available under the firepig-scripttag subdomain.

ssh root@mgrok.com -R 8082:
ssh <user>@mgrok.com -R <MGROK_PORT>:<LOCALHOST_PORT>


Setting up NAT Busting (See "Bypassing NAT")
NGINX Subdomain to Port Mapping