Get the latest tech news

Can You Grok It – Hacking together my own dev tunnel service


My friend sent me a tunnel link where he had to manually set it up with socat and his nginx ingress controller in his k8s cluster. He made an offhand comment about needing a better way to setup tunnels and it got me thinking. This post is the result of a long night of hacking away at my own tunnel solution. If you want to jump into the nitty gritty of how it works, you can skip to Roll Your Own Tunnel.

I’ve been a free tier user for over a year now, setting it up is incredibly easy, and I can use the Wireguard mesh network to easily connect my phone to my home services while I’m on the go. Create a wildcard TLS certificate with Lets Encrypt – you’ll want to make sure this can auto-renew, which will require some extra work on your part. If the socket stays behind on the remote host, our tunnel will fail next time and we have to manually connect in and delete it, then disconnect and reconnect our ssh session.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Grok

Grok

Photo of dev tunnel service

dev tunnel service

Related news:

News photo

How do machines ‘grok’ data?

News photo

The latest version of xAI's Grok can process images

News photo

X makes Grok chatbot available to premium subscribers