ngrok
ngrok copied to clipboard
Allow ngrok to work behind an HTTP Proxy #7
I am receiving error messages when running ./ngrok http 5000 on a 16.4 ubuntu machine. There is a proxy running that is presumably the culprit of ngrok not running successfully first try. Here are the error messages:
$(x509: certificate signed by unknown authority) $Reconnecting (invalid character ‘<’ looking for beginning of value) $Reconnecting ([read udp . . . . :-> . . . : i/o timeout dial udp . . . : : i/o timeout])
I have compiled knowledge from available ngrok articles and sources for this topic. I have compiled the possible solutions I know about below:
- Export environment variable value for http_proxy. (Syntax for this variable would be appreciated)
- Then run ./ngrok –proxyAddr="user:password@http://proxy.example.com:3128" 80
- After running the commands above there is a ‘>’ just waiting in the terminal and I am able to type, but not sure what to type here. I typed help and nothing appeared.
Second solution pasted in quotes from forum. 4. “ngrok will not send through forward proxy requests (just as you wouldn't expect haproxy or nginx to do that either). you can do it with a TCP tunnel though: ngrok tcp 8888”
I have attempted the steps above, but with no success and my syntax may be an issue as I am new. Can someone please offer any detailed explanations of using ngrok with a proxy? @inconshreveable
Here are the titles of articles I have looked at: x509: certificate signed by unknown authority https://github.com/inconshreveable/ngrok/issues/418 Not using https proxy https://github.com/inconshreveable/ngrok/issues/439 Is it possible to expose an HTTP proxy on localhost via ngrok? https://github.com/inconshreveable/ngrok/issues/379 How can I use the Windows version of NGROK from behind a corporate proxy? https://stackoverflow.com/questions/25630566/how-can-i-use-the-windows-version-of-ngrok-from-behind-a-corporate-proxy
@inconshreveable
Any help will be appreciated - thanks,
in your windows command prompt set the proxy in an environment variable before running install
C:\Users\<myself>\src\>set HTTPS_PROXY=http://<username>:<password>@<proxy-host>:<proxy-port>/
C:\Users\<myself>\src\>npm i popper
npm v 4.6.1 node v6.10.3
@converge0 setting your environment variable http_proxy
should do the trick.
https://github.com/inconshreveable/ngrok/blob/a8e7fa486348f391f4bdf241344d798297f953bc/src/ngrok/client/config.go#L80
I'm also seeing that whatever you're using is also trying to use UDP. This may mean that it won't work period, as NGROK will never support UDP as of #26. I wish it weren't so, but that's what it is.
@craigsdennis how to set the environment variable? any particular format?
Thank you for opening this issue! As of April 2016, the ngrok service has permanently moved to https://ngrok.com/. To join the community and file bug reports or feature enhancements for the ngrok agent, please go to https://github.com/ngrok/ngrok.
This repository is no longer actively maintained and will be archived soon to reduce confusion with the latest ngrok versions. We thank you for the continued support of ngrok and look forward to seeing you over at ngrok.com and the ngrok Community Repo.