Re:Ngrok – Expose any local server behind a NAT or firewall ...
by synthmeat on Tuesday August 18, 2015 @06:08AM
(#10078336)
As my use case for 7-8 years demanded reverse tunnelling daily during development, and last 2 me switching to ngrok, let me just point out that it's not "the same".
Giving you full benefit of doubt that you just haven't fully explored ngrok, instead of just listing the features here myself, I'll just urge you to check it out in more detail.
It's awesome little tool, and the author has always been enthusiastically responsive through #ngrok on freenode.
Re:Ngrok – Expose any local server behind a NAT or firewall ...
by abglassman on Tuesday August 18, 2015 @06:15AM
(#10078355)
I use ngrok a fair bit, often for handling OAuth and other webhooks. One really nice feature is the ability to record, inspect, and play back incoming HTTP requests. It's not space magic or anything but it's a really handy, convenient tool.
Re:Ngrok – Expose any local server behind a NAT or firewall ...
by leni536 on Tuesday August 18, 2015 @05:13AM
(#10078192)
Minor nitpick: you want to allow other clients to connect too other then yourserver, so enable GatewayPorts in sshd_config and specify * as bind address for -R.
Re:Ngrok – Expose any local server behind a NAT or firewall ...
by jgroszko on Tuesday August 18, 2015 @10:08AM
(#10079239)
This approach, at least for my setup, would require opening up a port in my server's firewall as well.
The other benefit is that ngrok provides a nice web interface so you can watch and inspect web requests as they go by.
`ssh [email protected] -R [remoteport]:localhost:[localport]`
Where 'yourserver.com' is a server you own, such that accessing 'http://yourserver.com:[remoteport]' tunnels to 'http://localhost:[localport]'.