How to Install Inlets on POP!_OS Latest

Inlets is software that creates secure and fast tunnels between public networks and your private infrastructure. The following steps will guide you on how to get started with installing Inlets on your POP!_OS Latest.

Prerequisites

Step 1: Download Inlets Client

To download Inlets, run the following command:

$ curl -sLS https://get.inlets.dev | sh

After the command has run successfully, you will have the inlets binary located in your current working directory. You can move it to the /usr/local/bin directory so that it is available in the system path.

$ sudo mv inlets /usr/local/bin/

Step 2: Create Inlets Server

To create an Inlets server, you will need a public IP address and a Kubernetes cluster running on it. If you do not have a Kubernetes cluster running yet, you can follow the official Kubernetes documentation on how to deploy a cluster on your server.

Once you have the Kubernetes cluster up and running, you can create the Inlets server using the following command:

$ kubectl apply -f https://raw.githubusercontent.com/inlets/inletsctl/main/hack/sample.yaml

This will create an Inlets server with a default configuration.

Step 3: Connect to Inlets Server

To connect to the Inlets server, run the following command:

$ inlets connect --remote "ws://<PUBLIC_IP>:8080" --upstream "http://127.0.0.1:80"

Replace <PUBLIC_IP> with your server's public IP address.

This command will create a secure tunnel between your server and your local machine.

Step 4: Test Your Connection

To test your connection, you can run the following command on your local machine:

$ curl http://127.0.0.1:8080

This should return the contents of the web server running on your Kubernetes cluster.

Congratulations! You have successfully installed Inlets on your POP!_OS Latest and created a secure tunnel to your Kubernetes cluster. Now you can use your local machine to access resources on your Kubernetes cluster without exposing them to the public.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!