ngrok diagnose
which will produce a report that will help you identify connection issues.
- Work with the network team in charge of the corporate firewall to provide exceptions that allow ngrok to make the necessary outbound connections.
- Set up a custom Connect URL.
- Connect URLs (our default is connect.ngrok-agent.com, but there is one for each region), so that the ngrok agent can connect with our servers
- Our update URL (the default is update.equinox.io), so that the ngrok agent can quickly update itself
- Set up a custom Connect URL in your ngrok Dashboard
- Edit your ngrok agent configuration file with a
connect_url
parameter, set to your custom Connect URL
Certificate Revocation List
One of the steps in agent connection is checking the certificate revocation list. This requires an outbound connection on port 80 to the CRL URL (crl.ngrok.com
for agent versions 3.9.0 and before, crl.ngrok-agent.com
for agent version 3.10.0 and after).If you are unable to connect to this URL, it is possible to skip the CRL check by setting crl_noverify: true
in your configuration file. However, disabling the CRL check does expose you to the possibility of using a certificate that has been revoked which could mean that a third party could intercept and view your traffic.
Testing in a Kubernetes Cluster
If you are using ngrok from within a Kubernetes Cluster, you may need to diagnose the network connectivity from the cluster to the ngrok cloud. To do this, you can run the previously mentionedngrok diagnose
command using the pre-built docker images for the agent as a Job
in Kubernetes.
Create a manifest file (for example ngrok-manifest.yaml
):
diagnose
command’s output:
args
with the -w
flag and file location: