Socket
Socket
Sign inDemoInstall

github.com/artyom/grok

Package Overview
Dependencies
5
Maintainers
0
Alerts
File Explorer

Install Socket

Protect your apps from supply chain attacks

Install

github.com/artyom/grok

Command grok provides standalone server terminating https and proxying requests in plain http over reverse ssh tunnels. Its main use-case is the same as of the ngrok tool from <https://ngrok.com>. Command grok listens https and ssh endpoints. On ssh connections it's looking for "tcpip-forward" request (RFC 4254, Section 7.1), once received, it establishes reverse proxy for domain derived from public key of the client. When receiving request over https, grok inspects request domain name, if matching active tunnel is found, request is proxied over found tunnel as plain HTTP/1.1 request. Certificates for matched domains are automatically obtained from https://letsencrypt.org authority as required. Domains are either derived from public key md5 fingerprint: hash.base.tld (where base.tld domain is set with -domain flag) or defined per-key in authorized_keys file as key option specification in form of domain=name.tld: Once set, developer may then connect to this service with ssh client setting up reverse port forwarding (i.e. to localhost:8080): Note the notation for -R used by ssh: When connecting to grok only host:hostport pair is significant, since they specify where ssh client will connect on forwarded connection, the first port can be set to arbitrary value and is ignored by the server.

    v0.0.0-20220912095720-29c85e7d7a20

Version published
Maintainers
0

Readme

Command grok provides standalone server terminating https and proxying
requests in plain http over reverse ssh tunnels.

The main goal is the same as for ngrok tool from https://ngrok.com:

> I want to expose a local server behind a NAT or firewall to the internet.

See <https://pkg.go.dev/github.com/artyom/grok#section-documentation> for details.

FAQs

Last updated on 12 Sep 2022

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc