How to Install Inlets on Fedora CoreOS Latest

Inlets is an open-source project that enables you to create an encrypted HTTP/S tunnel to connect your local or private network services to the public internet. In this tutorial, you will learn how to install Inlets on Fedora CoreOS Latest.

Prerequisites

Step 1: Download the Inlets package

Log in to your Fedora CoreOS instance via SSH. First, download the latest Inlets binary to your home directory using the following command:

$ curl -SLfO https://github.com/inlets/inlets/releases/download/2.7.1/inlets-pro-linux-amd64

Step 2: Install Inlets

Once the Inlets package is downloaded, open a terminal and navigate to the directory where the Inlets binary file is downloaded. Give the executable permission to the package.

$ chmod +x inlets-pro-linux-amd64

Now copy the Inlets binary to /usr/bin/ directory.

$ sudo cp inlets-pro-linux-amd64 /usr/bin/inlets-pro

Step 3: Create a systemd service for Inlets

Create the Inlets systemd service file using the following command:

$ sudo nano /etc/systemd/system/inlets.service

Add the following lines in the file.

[Unit]
Description=Inlets Server
After=network-online.target

[Service]
Type=simple
User=inlets
ExecStart=/usr/bin/inlets-pro server \
             --port=8080 \
             --token=<YOUR_TOKEN> \
             --auto-tls=true \
             --auto-tls-san=<YOUR_DOMAIN> \
             --upstream=http://127.0.0.1:80

[Install]
WantedBy=multi-user.target

You need to replace <YOUR_TOKEN> with your Inlets authentication token and <YOUR_DOMAIN> with your domain name.

Step 4: Enable and start the Inlets service

Finally, enable the Inlets systemd service and start it.

$ sudo systemctl enable inlets.service
$ sudo systemctl start inlets.service

To check the status of the Inlets service, use the following command:

$ sudo systemctl status inlets.service

Step 5: Test Inlets

To test Inlets, go to another machine and install Inlets on that machine. Use the following command to expose a local web server over Inlets:

$ inlets-pro client \
      --remote=<IP_ADDRESS_OR_DOMAIN_OF_FEDORA_COS_SERVER> \
      --port=8080 \
      --token=<YOUR_TOKEN> \
      --upstream=http://localhost:8000

Make sure to replace <IP_ADDRESS_OR_DOMAIN_OF_FEDORA_COS_SERVER> with the IP address or domain name of your Fedora CoreOS server and <YOUR_TOKEN> with the Inlets authentication token.

Now open a browser and navigate to <YOUR_DOMAIN>; you should see the content of the local web server that is exposed over Inlets.

Congratulations! You have successfully installed and tested Inlets on Fedora CoreOS Latest. You can use Inlets to connect your local or private network services with the public internet securely.

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!

Alternatively, for the best virtual desktop, try Shells!