How to install ngrok
on Red Hat Enterprise Linux

ngrok

Khiem Doan (khiemdoan)

ngrok secure introspectable tunnels to localhost

ngrok - secure introspectable tunnels to localhost ([homepage](https://ngrok.com)) "I want to expose a local server behind a NAT or firewall to the Internet."

What is ngrok? ngrok is a reverse proxy that creates a secure tunnel from a public endpoint to a locally running web service. ngrok captures and analyzes all traffic over the tunnel for later inspection and replay.

What can I do with ngrok?

  • Expose any http service behind a NAT or firewall to the internet on a subdomain of ngrok.com.
  • Expose any tcp service behind a NAT or firewall to the internet on a random port of ngrok.com.
  • Inspect all http requests/responses that are transmitted over the tunnel.
  • Replay any request that was transmitted over the tunnel.

What is ngrok useful for?

  • Temporarily sharing a website that is only running on your development machine.
  • Demoing an app at a hackathon without deploying.
  • Developing any services which consume webhooks (HTTP callbacks) by allowing you to replay those requests.
  • Debugging and understanding any web service by inspecting the HTTP traffic.
  • Running networked services on machines that are firewalled off from the Internet.

Details for ngrok

License
Unlicense
Last updated
6 November 2019

Enable snaps on Red Hat Enterprise Linux and install ngrok

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully.

Snaps are discoverable and installable from the Snap Store, an app store with an audience of millions.

Enable snapd

Snap is available for Red Hat Enterprise Linux (RHEL) 7, from the 7.6 release onward, from the Extra Packages for Enterprise Linux (EPEL) repository.

It is not yet available in the EPEL 8 repository, and consequently, not yet available for RHEL 8 unless you build the RPM yourself.

The EPEL repository can be added to your system with the following command:

Adding the optional and extras repositories is also recommended:

sudo subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms" sudo yum update

Snap can now be installed as follows:

Once installed, the systemd unit that manages the main snap communication socket needs to be enabled:

To enable classic snap support, enter the following to create a symbolic link between /var/lib/snapd/snap and /snap:

Either log out and back in again or restart your system to ensure snap’s paths are updated correctly.

Install ngrok

To install ngrok, simply use the following command:

Other popular snaps…

See more...
See more in Featured

More things to do…

Get the snap store

Browse and find snaps from the convenience of your desktop using the snap store snap.

Learn more about snaps

Interested to find out more about snaps? Want to publish your own application? Visit snapcraft.io now.