zlacker

Show HN: Serveo–Expose local servers using only SSH

submitted by trevor+(OP) on 2017-07-24 21:38:16 | 62 points 17 comments
[view article] [source] [go to bottom]

NOTE: showing posts with links only show all posts
1. trevor+02[view] [source] 2017-07-24 21:53:36
>>trevor+(OP)
Inspired by https://medium.com/@shazow/ssh-how-does-it-even-9e43586e4ffc and ngrok, I made this SSH server that assigns a public url for each remote port forwarding request you make. Start a web server on 8080, then try this:

ssh -R 80:localhost:8080 serveo.net

It's an attempt to make port forwarding as easy as ngrok or localtunnel, but using the SSH client you already have.

Also includes HTTP inspection and replay like ngrok.

◧◩
7. trevor+5R[view] [source] [discussion] 2017-07-25 08:54:24
>>fishnc+bL
The public Serveo web server supports HTTPS. You'll get a URL like https://exussum.serveo.net.

Do you mean something like https://ngrok.com/docs#tls, so TLS isn't terminated until it reaches the user's machine? Should be doable; haven't considered it yet!

◧◩
9. trevor+iS[view] [source] [discussion] 2017-07-25 09:14:54
>>chaz6+WK
I'm using the stock Go HTTP and TLS stack. When I connect with Chrome, I see HTTP/2 and TLS 1.2, which is the version Go implements according to https://golang.org/pkg/crypto/tls/.
◧◩
13. trevor+r71[view] [source] [discussion] 2017-07-25 12:46:51
>>thinxe+y51
You can only get certificates for up to 2000 new subdomains per week, but you can renew many more than that, so I can work my up to a few tens of thousands of subdomains if needed.

From https://letsencrypt.org/docs/rate-limits/:

"The main limit is Certificates per Registered Domain (20 per week)...

"If you have a lot of subdomains, you may want to combine them into a single certificate, up to a limit of 100 Names per Certificate. Combined with the above limit, that means you can issue certificates containing up to 2,000 unique subdomains per week...

"To make sure you can always renew your certificates when you need to, we have a Renewal Exemption to the Certificates per Registered Domain limit. Even if you’ve hit the limit for the week, you can still issue new certificates that count as renewals...

"Note that the Renewal Exemption also means you can gradually increase the number of certificates available to your subdomains. You can issue 20 certificates in week 1, 20 more certificates in week 2, and so on, while not interfering with renewals of existing certificates."

A wildcard certificate would be far more convenient! I'm looking forward to that.

[go to top]