Inlets is a tool that creates a secure and fast tunnel between your server and a public endpoint, allowing you to expose local services to the public. In this tutorial, we will guide you through the installation process of Inlets on Arch Linux.
Inlets can be downloaded as a binary file from the official website or can be installed from the AUR. We recommend installing it from the AUR using a package manager like pacman.
Open a terminal window.
Update the system package list by running the following command.
sudo pacman -Syu
Install the base-devel
package group by running the following command.
sudo pacman -S base-devel
Install the git
package by running the following command.
sudo pacman -S git
Install yay
, which is a popular AUR helper tool. Run the following command to install yay
.
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
Now, install Inlets from the AUR by running the following command.
yay -S inlets
The installation process may take some time to complete. Once it finishes, you can use the inlets
command to start using Inlets.
Create a configuration file for Inlets. Run the following command to create the file.
sudo nano /etc/inlets/config.toml
Add the following contents to the file. Replace your_domain
with your actual domain name and your_token
with a secure token of your choice.
[http]
domain = "your_domain"
token = "your_token"
[server]
auto-tls = true
Save and close the file.
Start the Inlets server by running the following command.
sudo inlets server --config /etc/inlets/config.toml
Inlets server is now running and ready to accept connections from clients.
Install the Inlets client on your local machine by following the instructions on the official website.
Run the following command on your local machine to create a tunnel.
inlets client connect --remote "https://your_domain" --token "your_token" --upstream "http://localhost:8080"
This will create a tunnel between your local machine and the Inlets server running on your server.
Test the tunnel by accessing your local service using the URL https://your_domain
. You should be able to access your local service in the browser.
Congratulations! You have successfully installed and configured Inlets on Arch Linux, and you can now expose your local services to the public securely and efficiently.
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!